mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[fix] Update hardcoded gettext workaround for Romanian (#5718)
Fixes #5661.
This commit is contained in:
@@ -211,8 +211,8 @@ function GetText_mt.__index.changeLang(new_lang)
|
||||
local plurals = plural_forms:match("plural=%((.*)%);")
|
||||
|
||||
-- Hardcoded workaround for Romanian which has 3 plural forms.
|
||||
if plurals == "n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1)" then
|
||||
plurals = "n==1 ? 0 : (n%100>19) || ((n%100==0) && (n!=0)) ? 2 : 1"
|
||||
if plurals == "n == 1) ? 0 : ((n == 0 || n != 1 && n % 100 >= 1 && n % 100 <= 19) ? 1 : 2" then
|
||||
plurals = "n == 1 ? 0 : (n == 0 || n != 1 && n % 100 >= 1 && n % 100 <= 19) ? 1 : 2"
|
||||
end
|
||||
|
||||
if not plurals then
|
||||
|
||||
Reference in New Issue
Block a user