From ee4a262953f9cd9dfb75f78014a9b64d70b54d21 Mon Sep 17 00:00:00 2001 From: Max Kostikov Date: Sun, 14 Oct 2018 15:21:00 +0200 Subject: Add JS function code for plurals translation --- view/ru/hstrings.php | 1 + 1 file changed, 1 insertion(+) diff --git a/view/ru/hstrings.php b/view/ru/hstrings.php index 0479f4109..0f2554730 100644 --- a/view/ru/hstrings.php +++ b/view/ru/hstrings.php @@ -5,6 +5,7 @@ function string_plural_select_ru($n){ return ($n%10==1 && $n%100!=11 ? 0 : ($n%10>=2 && $n%10<=4 && ($n%100<12 || $n%100>14) ? 1 : 2)); }} App::$rtl = 0; +App::$strings["plural_function_code"] = "return (n%10==1 && n%100!=11 ? 0 : (n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : 2));"; App::$strings["Source channel not found."] = "Канал-источник не найден."; App::$strings["Default"] = "По умолчанию"; App::$strings["Focus (Hubzilla default)"] = "Фокус (по умолчанию Hubzilla)"; -- cgit v1.2.3 From 8af91b0209d83c0973e927b2e135bf4443295b73 Mon Sep 17 00:00:00 2001 From: Max Kostikov Date: Sun, 14 Oct 2018 22:24:36 +0200 Subject: Update hstrings.php --- view/ru/hstrings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view/ru/hstrings.php b/view/ru/hstrings.php index 0f2554730..f536ea963 100644 --- a/view/ru/hstrings.php +++ b/view/ru/hstrings.php @@ -5,7 +5,7 @@ function string_plural_select_ru($n){ return ($n%10==1 && $n%100!=11 ? 0 : ($n%10>=2 && $n%10<=4 && ($n%100<12 || $n%100>14) ? 1 : 2)); }} App::$rtl = 0; -App::$strings["plural_function_code"] = "return (n%10==1 && n%100!=11 ? 0 : (n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : 2));"; +App::$strings["plural_function_code"] = "(n%10==1 && n%100!=11 ? 0 : (n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : 2))"; App::$strings["Source channel not found."] = "Канал-источник не найден."; App::$strings["Default"] = "По умолчанию"; App::$strings["Focus (Hubzilla default)"] = "Фокус (по умолчанию Hubzilla)"; -- cgit v1.2.3