]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/browse_helper.rb
When displaying objects in /browse/* and in the JavaScript "Data"
[rails.git] / app / helpers / browse_helper.rb
index 879d516eff7b5643f4bd79ca4383ad7088a7c967..aed0c518f4ce46255f0597d47b1f8772abfd7472 100644 (file)
@@ -8,7 +8,9 @@ module BrowseHelper
     if version
       name = t 'printable_name.with_version', :id => name, :version => object.version.to_s
     end
-    if object.tags.include? 'name'
+    if object.tags.include? "name:#{I18n.locale}"
+      name = t 'printable_name.with_name',  :name => object.tags["name:#{I18n.locale}"].to_s, :id => name
+    elsif object.tags.include? 'name'
       name = t 'printable_name.with_name',  :name => object.tags['name'].to_s, :id => name
     end
     return name