Open dusan-smolnikar opened 7 months ago
There are two issues here:
Regarding no. 1 - Not sure if this info is helpful at all, but in the Unicode CLDR the language is defined as sr-Latn-ME. The plural rules are the same as for Serbian (sr). Is there a way I can configure language aliases to make Weblate believe this is Serbian language? However, I do have Serbian language separate though, and they shouldn't be mixed.
For no. 2 - It's not just a display issue. I entered all 3 values in Weblate and committed - But this resulted in translations being deleted in my git repository. The only workaround was to manually return the key/value pair and not touch this translation in Weblate.
Writing is again caused by missing definitions in the translate-toolkit.
https://github.com/translate/translate/pull/5212 should address saving/loading part, let's keep this issue open for the display issue.
Great, thanks!
We also met the similar issue : We found that :
“aaaa”:"aaaa", “aaaa_one”:"aaaa", “aaaa_two”:"aaaa", will keep the key “aaaa” stay only .
“aaaa”:"aaaa", “aaaa_other”:"aaaa", will keep the key “aaaa” stay only .
Is there any way to disable Plural rules ?
@gs-xpeng You can use "JSON file" instead, it will load all keys as they are.
The plural fix got finally released today at translate-toolkit: https://github.com/translate/translate/releases/tag/3.13.0
Describe the issue
I am using i18next v4 json files for my translations. Among the languages I also have Montengrin (me.js)
In the file me.js I had a plural form of the following translation: "episode_one": "{number} epizoda", "episode_other": "{number} epizoda", "episode_few": "{number} epizode",
However, Weblate for some reason requires the forms one, few, many:
When I save this translation string I lose the episode_few key from my source file, but episode_one and episode_other are kept.
I already tried
Steps to reproduce the behavior
Weblate requires me to write entries:
Expected behavior
Weblate requires entering of
Screenshots
Exception traceback
No response
How do you run Weblate?
Other
Weblate versions
Weblate 5.3.1
Weblate deploy checks
No response
Additional context
No response