Closed insspb closed 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! ;)
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"
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 :(
Why this is closed? Error is still there
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.
make sense :)
I am finishing updated translation to Russian. But I faced several issues like this one:
Some function just add English "s" to Russian word. How can i fix it? Or I need to delete pluralize function from code?