From: Alexandre Alapetite Date: Thu, 17 May 2018 07:31:29 +0000 (+0200) Subject: Rebuild PO to strings X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=102377f19fecba3c1ea5bfeedf36f0df67e1063d;p=friendica.git Rebuild PO to strings ```sh for i in view/lang/*/messages.po; do bin/console po2php $i; done ``` --- diff --git a/view/lang/bg/strings.php b/view/lang/bg/strings.php index 8d3bf4d5cd..b70ac3b1ab 100644 --- a/view/lang/bg/strings.php +++ b/view/lang/bg/strings.php @@ -2,6 +2,7 @@ if(! function_exists("string_plural_select_bg")) { function string_plural_select_bg($n){ + $n = intval($n); return ($n != 1);; }} ; diff --git a/view/lang/ca/strings.php b/view/lang/ca/strings.php index 5e891565c6..dbf3919c63 100644 --- a/view/lang/ca/strings.php +++ b/view/lang/ca/strings.php @@ -2,6 +2,7 @@ if(! function_exists("string_plural_select_ca")) { function string_plural_select_ca($n){ + $n = intval($n); return ($n != 1);; }} ; diff --git a/view/lang/cs/strings.php b/view/lang/cs/strings.php index 8237019ee9..efc9ecd34a 100644 --- a/view/lang/cs/strings.php +++ b/view/lang/cs/strings.php @@ -2,6 +2,7 @@ if(! function_exists("string_plural_select_cs")) { function string_plural_select_cs($n){ + $n = intval($n); return ($n==1) ? 0 : ($n>=2 && $n<=4) ? 1 : 2;; }} ; diff --git a/view/lang/de/strings.php b/view/lang/de/strings.php index 32e3f8f150..9cb9559fb9 100644 --- a/view/lang/de/strings.php +++ b/view/lang/de/strings.php @@ -2,6 +2,7 @@ if(! function_exists("string_plural_select_de")) { function string_plural_select_de($n){ + $n = intval($n); return ($n != 1);; }} ; diff --git a/view/lang/en-gb/strings.php b/view/lang/en-gb/strings.php index a2c1a944f1..50333b15be 100644 --- a/view/lang/en-gb/strings.php +++ b/view/lang/en-gb/strings.php @@ -2,6 +2,7 @@ if(! function_exists("string_plural_select_en_gb")) { function string_plural_select_en_gb($n){ + $n = intval($n); return ($n != 1);; }} ; diff --git a/view/lang/en-us/strings.php b/view/lang/en-us/strings.php index f737179263..377ad314a6 100644 --- a/view/lang/en-us/strings.php +++ b/view/lang/en-us/strings.php @@ -2,6 +2,7 @@ if(! function_exists("string_plural_select_en_us")) { function string_plural_select_en_us($n){ + $n = intval($n); return ($n != 1);; }} ; diff --git a/view/lang/eo/strings.php b/view/lang/eo/strings.php index c7dbcb4fff..3704fd32fc 100644 --- a/view/lang/eo/strings.php +++ b/view/lang/eo/strings.php @@ -2,6 +2,7 @@ if(! function_exists("string_plural_select_eo")) { function string_plural_select_eo($n){ + $n = intval($n); return ($n != 1);; }} ; diff --git a/view/lang/es/strings.php b/view/lang/es/strings.php index f12d61b7a8..530ea979c8 100644 --- a/view/lang/es/strings.php +++ b/view/lang/es/strings.php @@ -2,6 +2,7 @@ if(! function_exists("string_plural_select_es")) { function string_plural_select_es($n){ + $n = intval($n); return ($n != 1);; }} ; diff --git a/view/lang/fi-fi/strings.php b/view/lang/fi-fi/strings.php index 16c3e9539f..7e96af9b44 100644 --- a/view/lang/fi-fi/strings.php +++ b/view/lang/fi-fi/strings.php @@ -2,6 +2,7 @@ if(! function_exists("string_plural_select_fi_fi")) { function string_plural_select_fi_fi($n){ + $n = intval($n); return ($n != 1);; }} ; diff --git a/view/lang/fr/strings.php b/view/lang/fr/strings.php index 34c805e990..67d4038885 100644 --- a/view/lang/fr/strings.php +++ b/view/lang/fr/strings.php @@ -2,6 +2,7 @@ if(! function_exists("string_plural_select_fr")) { function string_plural_select_fr($n){ + $n = intval($n); return ($n > 1);; }} ; diff --git a/view/lang/is/strings.php b/view/lang/is/strings.php index fda0c85bf3..d67b45816a 100644 --- a/view/lang/is/strings.php +++ b/view/lang/is/strings.php @@ -2,6 +2,7 @@ if(! function_exists("string_plural_select_is")) { function string_plural_select_is($n){ + $n = intval($n); return ($n % 10 != 1 || $n % 100 == 11);; }} ; diff --git a/view/lang/it/strings.php b/view/lang/it/strings.php index 91c74d77a9..e4548eb249 100644 --- a/view/lang/it/strings.php +++ b/view/lang/it/strings.php @@ -2,6 +2,7 @@ if(! function_exists("string_plural_select_it")) { function string_plural_select_it($n){ + $n = intval($n); return ($n != 1);; }} ; diff --git a/view/lang/nb-no/strings.php b/view/lang/nb-no/strings.php index 18351bada3..6f1c49a224 100644 --- a/view/lang/nb-no/strings.php +++ b/view/lang/nb-no/strings.php @@ -2,6 +2,7 @@ if(! function_exists("string_plural_select_nb_no")) { function string_plural_select_nb_no($n){ + $n = intval($n); return ($n != 1);; }} ; diff --git a/view/lang/nl/strings.php b/view/lang/nl/strings.php index 5b74f580a2..878ede7cba 100644 --- a/view/lang/nl/strings.php +++ b/view/lang/nl/strings.php @@ -2,6 +2,7 @@ if(! function_exists("string_plural_select_nl")) { function string_plural_select_nl($n){ + $n = intval($n); return ($n != 1);; }} ; diff --git a/view/lang/pl/strings.php b/view/lang/pl/strings.php index 27b381f930..6d4d6ed09f 100644 --- a/view/lang/pl/strings.php +++ b/view/lang/pl/strings.php @@ -2,6 +2,7 @@ if(! function_exists("string_plural_select_pl")) { function string_plural_select_pl($n){ + $n = intval($n); return ($n==1 ? 0 : ($n%10>=2 && $n%10<=4) && ($n%100<12 || $n%100>14) ? 1 : $n!=1 && ($n%10>=0 && $n%10<=1) || ($n%10>=5 && $n%10<=9) || ($n%100>=12 && $n%100<=14) ? 2 : 3);; }} ; diff --git a/view/lang/pt-br/strings.php b/view/lang/pt-br/strings.php index 1c3d47bc03..5df9b3a2ec 100644 --- a/view/lang/pt-br/strings.php +++ b/view/lang/pt-br/strings.php @@ -2,6 +2,7 @@ if(! function_exists("string_plural_select_pt_br")) { function string_plural_select_pt_br($n){ + $n = intval($n); return ($n > 1);; }} ; diff --git a/view/lang/ro/strings.php b/view/lang/ro/strings.php index fcbbfa5d12..50e963b08c 100644 --- a/view/lang/ro/strings.php +++ b/view/lang/ro/strings.php @@ -2,6 +2,7 @@ if(! function_exists("string_plural_select_ro")) { function string_plural_select_ro($n){ + $n = intval($n); return ($n==1?0:((($n%100>19)||(($n%100==0)&&($n!=0)))?2:1));; }} ; diff --git a/view/lang/sv/strings.php b/view/lang/sv/strings.php index e25c03293a..f7276ce620 100644 --- a/view/lang/sv/strings.php +++ b/view/lang/sv/strings.php @@ -2,6 +2,7 @@ if(! function_exists("string_plural_select_sv")) { function string_plural_select_sv($n){ + $n = intval($n); return ($n != 1);; }} ; diff --git a/view/lang/zh-cn/strings.php b/view/lang/zh-cn/strings.php index 4747c791ba..3868fda99e 100644 --- a/view/lang/zh-cn/strings.php +++ b/view/lang/zh-cn/strings.php @@ -2,6 +2,7 @@ if(! function_exists("string_plural_select_zh_cn")) { function string_plural_select_zh_cn($n){ + $n = intval($n); return 0;; }} ;