Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

railsport uses time_ago_in_words() which can't be translated #1896

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments
Closed

Comments

@openstreetmap-trac
Copy link

Reporter: avarab[at]gmail.com
[Submitted to the original trac issue database at 12.35am, Tuesday, 2nd June 2009]

E.g.:

%= t 'user.view.mapper since' %></b><%= l this_user.creation_time %> <%= t 'user.view.ago', :time_in_words_ago => time_ago_in_words(@this_user.creation_time) %>
@openstreetmap-trac
Copy link
Author

Author: tom[at]compton.nu
[Added to the original trac issue at 7.54am, Tuesday, 2nd June 2009]

The internal rails stuff like that internationalises just fine - we already have translations for many languages from a plugin we added. If I set my language to French for example then I get things like "(environ 23 heures ago)" for that example you gave.

The problem is just that the plugin doesn't have an Icelandic translations ;-)

If you add an is.yml file to vendor/plugins/rails-i18n/locale then you should find it sorts out your problems. If you are feeling generous then you might want to submit it to the upstream authors of that plugin, though I'm struggling right now to find out where Shaun got it from...

@openstreetmap-trac
Copy link
Author

Author: avarab[at]gmail.com
[Added to the original trac issue at 12.57pm, Tuesday, 2nd June 2009]

Replying to [comment:1 tom[at]compton.nu]:

The problem is just that the plugin doesn't have an Icelandic translations ;-)

If you add an is.yml file to vendor/plugins/rails-i18n/locale then you should find it sorts out your problems. If you are feeling generous then you might want to submit it to the upstream authors of that plugin, though I'm struggling right now to find out where Shaun got it from...

It's from the [http://github.com/svenfuchs/rails-i18n/tree/68727a3c549cb29708ad71129e28d0ac32c88a95/rails/locale rails-i18n] repository. I'll submit a translation to upstream.

Closing this as invalid since it's translatable and adding a is.yml file should be done upstream.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant