nutso / redmine-plugin-recurring-tasks

Plugin for Redmine project management software to configure recurring tasks
GNU General Public License v2.0
62 stars 42 forks source link

Pluralize problem in Russian #94

Closed insspb closed 9 years ago

insspb commented 9 years ago

I am finishing updated translation to Russian. But I faced several issues like this one: image

Some function just add English "s" to Russian word. How can i fix it? Or I need to delete pluralize function from code?

dominch commented 9 years ago

same for polish :( also there is a problem with field_recurrence field, that one is pluralized in English way too, so we needed to find word ending with "s" for that! ;)

nutso commented 9 years ago

You can provide explicit pluralization by providing a :count attribute in the locale file (:count: 1 for the singular form and :count: 2 for the plural form).

From http://guides.rubyonrails.org/i18n.html#pluralization --

"The :count interpolation variable has a special role in that it both is interpolated to the translation and used to pick a pluralization from the translations according to the pluralization rules defined by CLDR"

dominch commented 9 years ago

There is error when pluralization is added to translation files:

  field_recurrence:
    one: "Cykl"
    other: "Cykle"

gives error: ERROR: undefined method `pluralize' for {:one=>"cykl", :other=>"cykle"}:Hash it works when code inside template is changed to <%= t("field_recurrence", count: 2) %> how can I make pluralize function to work?

It gives error just by simply editing language ymls :(

Kozzi11 commented 7 years ago

Why this is closed? Error is still there

nutso commented 7 years ago

The original issue was closed; looks like a separate issue was added after the issue was closed. Need to be opened as a new issue.

Kozzi11 commented 7 years ago

make sense :)