Index: trunk/src/org/openstreetmap/josm/data/osm/DefaultNameFormatter.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/osm/DefaultNameFormatter.java	(revision 18807)
+++ trunk/src/org/openstreetmap/josm/data/osm/DefaultNameFormatter.java	(revision 18808)
@@ -166,4 +166,29 @@
             name.append(tr(" [v{0}]", version));
         }
+    }
+
+    /**
+     * Decorates the name of primitive with nodes count
+     *
+     * @param name the name without the nodes count
+     * @param primitive the primitive
+     * @since 18808
+     */
+    protected void decorateNameWithNodes(StringBuilder name, IWay way) {
+        char mark;
+        // If current language is left-to-right (almost all languages)
+        if (ComponentOrientation.getOrientation(Locale.getDefault()).isLeftToRight()) {
+            // will insert Left-To-Right Mark to ensure proper display of text in the case when object name is right-to-left
+            mark = '\u200E';
+        } else {
+            // otherwise will insert Right-To-Left Mark to ensure proper display in the opposite case
+            mark = '\u200F';
+        }
+        int nodesNo = way.getRealNodesCount();
+        /* note: length == 0 should no longer happen, but leave the bracket code
+            nevertheless, who knows what future brings */
+        /* I18n: count of nodes as parameter */
+        String nodes = trn("{0} node", "{0} nodes", nodesNo, nodesNo);
+        name.append(mark).append(" (").append(nodes).append(')');
     }
 
@@ -273,10 +298,5 @@
             }
 
-            int nodesNo = way.getRealNodesCount();
-            /* note: length == 0 should no longer happen, but leave the bracket code
-               nevertheless, who knows what future brings */
-            /* I18n: count of nodes as parameter */
-            String nodes = trn("{0} node", "{0} nodes", nodesNo, nodesNo);
-            name.append(mark).append(" (").append(nodes).append(')');
+            decorateNameWithNodes(name, way);
         }
         decorateNameWithId(name, way);
