[OpenStreetMap] #4968: "%{variable} ago" cannot be translated to some languages (incl. Hungarian)
OpenStreetMap
trac at noreply.openstreetmap.org
Wed Aug 28 21:22:49 UTC 2013
#4968: "%{variable} ago" cannot be translated to some languages (incl. Hungarian)
----------------------+-------------------------
Reporter: kempelen | Owner: rails-dev@…
Type: defect | Status: new
Priority: minor | Milestone:
Component: website | Version:
Keywords: |
----------------------+-------------------------
There are several strings for OpenStreetMap.org website GUI that use a
combination of "{variable}" for a time period and followed by word "ago".
The strings related to changes to NOTES:
2 hours ago
The string related to license acceptance:
2 years ago
"hours ago" is a single modified word of "hours" in Hungarian, so it
cannot be translated separately. Also "years ago", "minutes ago" and so
on.
2 hours -> 2 óra
ago -> óta
2 hours ago -> 2 órája
While current resulting string: "2 óra óta", that means "since 2 o'clock"
which is totally false.
Some of the affected strings:
{{PLURAL|one=1 hour|%{count} hours}}
%{when} ago
Created %{when} ago
Accepted %{ago} ago
Recommended solution:
Possible solution 1:
Created %{when} hours ago
Created %{when} minutes ago
Created %{when} years ago
Or another solution:
%{count} hours ago
%{count} hours (if this format is also needed, make separate string)
%{count} years ago
%{count} years
But the first might be more secure for more languages, as that also allows
to freely modify the order of words and so on.
--
Ticket URL: <https://trac.openstreetmap.org/ticket/4968>
OpenStreetMap <http://www.openstreetmap.org/>
OpenStreetMap is a free editable map of the whole world
More information about the rails-dev
mailing list