You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Odin: dev-2024-05-nightly:2250eb3e7
OS: Linux Mint 21.3, Linux 5.15.0-106-generic
CPU: Intel(R) Core(TM) i5-6400 CPU @ 2.70GHz
RAM: 15913 MiB
Backend: LLVM 17.0.6
Expected Behaviour
In .mo files, the number of untranslated plural forms for pluralised messages files is fixed to 2 (for non pluralised messages is fixed to 1).
The number of translated plural forms can be any number from 1 (for languages without any plural, like Chinese) to any conventional limit; the documented maximum is 6 for Welsh (and other languages); the maximum acceptable number of plural forms hard coded in core:text/i18n is 10.
The procedure should properly parse .mo files in which the number of untranslated (always 2) and translated (1 - 10) plural forms is different.
Current Behaviour
The procedure rejects .mo files in which entries have a different number of plural forms between translated and untranslated messages, as it can be seen here.
Steps to Reproduce
Compile the provided main.odin source file (in the attached ZIP file) in the same directory as the provided .mo file.
Run the compiled executable:
it will report an Error parsing message catalogue: MO_File_Incorrect_Plural_Count
Note: the attached ZIP file contains the main.odin source code, a .mo file and the .po file from which it has been compiled via PoEdit. i18n_num_of_plur_bug.zip
The text was updated successfully, but these errors were encountered:
as the number of untranslated string can only be 1 or 2 and the number of translated string can be any as long as it does not exceed the accepted maximum.
Context
Odin: dev-2024-05-nightly:2250eb3e7
OS: Linux Mint 21.3, Linux 5.15.0-106-generic
CPU: Intel(R) Core(TM) i5-6400 CPU @ 2.70GHz
RAM: 15913 MiB
Backend: LLVM 17.0.6
Expected Behaviour
In
.mo
files, the number of untranslated plural forms for pluralised messages files is fixed to 2 (for non pluralised messages is fixed to 1).The number of translated plural forms can be any number from 1 (for languages without any plural, like Chinese) to any conventional limit; the documented maximum is 6 for Welsh (and other languages); the maximum acceptable number of plural forms hard coded in
core:text/i18n
is 10.The procedure should properly parse
.mo
files in which the number of untranslated (always 2) and translated (1 - 10) plural forms is different.Current Behaviour
The procedure rejects
.mo
files in which entries have a different number of plural forms between translated and untranslated messages, as it can be seen here.Steps to Reproduce
main.odin
source file (in the attached ZIP file) in the same directory as the provided.mo
file.Error parsing message catalogue: MO_File_Incorrect_Plural_Count
Note: the attached ZIP file contains the
main.odin
source code, a.mo
file and the.po
file from which it has been compiled via PoEdit.i18n_num_of_plur_bug.zip
The text was updated successfully, but these errors were encountered: