Alexander Artemenko svetlyak40wt

svetlyak40wt pushed to fix-russian-ukranian-serbian-crotian-plural at svetlyak40wt/cl-i18n

  • a8346af8fb Fix Russian, Ukranian, Serbian and Crotian plural forms for "zero" According to https://docs.translatehouse.org/projects/localization-guide/en/latest/l10n/pluralforms.html (russian-plural-form 0) should return 2 instead of 0. Here is how pluralization should work. Language file: ``` "russian-plural-form" ( id "foo" translation "яблоко" plurals-form "яблока" status :TRANSLATED plurals ("яблока" "яблок") ) ``` With this config and after the patch results should be: ``` CL-I18N> (loop for i upto 30 for tr = (cl-i18n:ntranslate "apple" "apples" i) do (format t "~A: ~A~%" i tr)) 0: яблок 1: яблоко 2: яблока 3: яблока 4: яблока 5: яблок 6: яблок ... 19: яблок 20: яблок 21: яблоко 22: яблока 23: яблока 24: яблока 25: яблок 26: яблок ... ``` but without the patch it will start with: ``` 0: яблоко 1: яблоко 2: яблока 3: яблока ```
  • a802f1eb74 - updated changelog and NEWS.org.
  • 2786ed945c - increased version number.
  • 0e80f913cc - removed declaration in 'fuzzy-match'.
  • 18219c15b1 - updated documentation.

1 year ago

svetlyak40wt forked a repository to svetlyak40wt/cl-i18n

1 year ago