stk-code_catmod/src/tinygettext
Deve a40fd4cde9 Handle new Polish format in tinygettext.
It's PITA because they broke it at it doesn't look that they are going to do something with it.

The plural form for number 14 is broken because the condition is bad. It should be n%100>14 instead of n%100>=14. In the past it was using 3rd form for numbers 12, 13, 14 and it's the proper form for these numbers. The new format uses 2nd form for number 14.

Moreover the condition for third form is just a negation of the first and second form, so that the 4th form actually never happens.

Also the condition for 3rd form is ambiguous. Should it be
(n!=1 && (n%10>=0 && n%10<=1)) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14)
or maybe
n!=1 && ((n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14))

Based on Unicode plural rules, the 4th form should be used for floating point numbers, but it's not supported by tinygettext anyway.

In short, handle the new format in the same way as it was before, so that the 4th form is useless, but at least everything works properly.
2017-02-06 20:39:30 +01:00
..
dictionary_manager.cpp Restore using unique_ptr instead of auto_ptr in tinygettext. 2015-08-06 13:54:11 +02:00
dictionary_manager.hpp Restore using unique_ptr instead of auto_ptr in tinygettext. 2015-08-06 13:54:11 +02:00
dictionary.cpp Fixed names utf8ToWide and wideToUtf8; added convenience functions 2015-11-26 08:56:03 +11:00
dictionary.hpp Basic render of text using freetype 2015-10-04 11:59:44 +08:00
file_system.hpp Restore using unique_ptr instead of auto_ptr in tinygettext. 2015-08-06 13:54:11 +02:00
language.cpp Remove the hard-coded localized name in language.cpp 2016-03-13 10:25:26 +08:00
language.hpp Remove the hard-coded localized name in language.cpp 2016-03-13 10:25:26 +08:00
plural_forms.cpp Handle new Polish format in tinygettext. 2017-02-06 20:39:30 +01:00
plural_forms.hpp Updated (c) year to include 2015. 2015-03-30 11:42:50 +11:00
po_parser.cpp Fixed compiler warning. 2016-07-27 08:26:41 +10:00
po_parser.hpp Removed empty files. 2015-04-03 00:05:47 +11:00
stk_file_system.cpp Restore using unique_ptr instead of auto_ptr in tinygettext. 2015-08-06 13:54:11 +02:00
stk_file_system.hpp Restore using unique_ptr instead of auto_ptr in tinygettext. 2015-08-06 13:54:11 +02:00
tinygettext.cpp Updated (c) year to include 2015. 2015-03-30 11:42:50 +11:00
tinygettext.hpp Updated (c) year to include 2015. 2015-03-30 11:42:50 +11:00