output. Makes e.g. "#{name}, v#{object.version.to_s}" which is used in
the changeset browser translatable.
I'm still not happy with how the anchor is constructed. we're linking
from /browse/changeset/1234 to e.g. node "[[
366672999, v1]]" even
though the page we're linking to might take us to that node at version
2. The link should be "[[
366672999]], v1" instead.
But that's something to solve later.
end
def printable_name(object, version=false)
end
def printable_name(object, version=false)
+ name = t 'printable_name.with_id', :id => object.id.to_s
- name = "#{name}, v#{object.version.to_s}"
+ name = t 'printable_name.with_version', :id => name, :version => object.version.to_s
end
if object.tags.include? 'name'
end
if object.tags.include? 'name'
- name = "#{object.tags['name'].to_s} (#{name})"
+ name = t 'printable_name.with_name', :name => object.tags['name'].to_s, :id => name
description: "Description"
languages: "Languages"
pass_crypt: "Password"
description: "Description"
languages: "Languages"
pass_crypt: "Password"
+ printable_name:
+ with_id: "{{id}}"
+ with_version: "{{id}}, v{{version}}"
+ with_name: "{{name}} ({{id}})"
map:
view: View
edit: Edit
map:
view: View
edit: Edit
description: "Lýsing"
languages: "Tungumál"
pass_crypt: "Lykilorð"
description: "Lýsing"
languages: "Tungumál"
pass_crypt: "Lykilorð"
+ printable_name:
+ with_id: "{{id}}"
+ with_version: "{{id}}, útgáfa {{version}}"
+ with_name: "{{name}} ({{id}})"
map:
view: "Kort"
edit: "Breyta"
map:
view: "Kort"
edit: "Breyta"