X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/bc66c8adeb20b4332c01e093f83ac4fc9bd0aa5a..ba19bc0bed6fecf0d6cebc65e90ed89652bff5ce:/app/helpers/browse_helper.rb?ds=sidebyside diff --git a/app/helpers/browse_helper.rb b/app/helpers/browse_helper.rb index 879d516ef..aed0c518f 100644 --- a/app/helpers/browse_helper.rb +++ b/app/helpers/browse_helper.rb @@ -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