mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-16 16:53:59 +00:00
86de95f77b
Thanks to the work of طاهر, Farida Khalaf, محمد أحمد, abidin toumi, Abdullah Alsabi, ButterflyOfFire and ominds the translation of Friendica into Arabic has crossed the magic 50% progress mark, so we now include their work into the addons repository.
7 lines
320 B
PHP
7 lines
320 B
PHP
<?php
|
|
|
|
if(! function_exists("string_plural_select_ar")) {
|
|
function string_plural_select_ar($n){
|
|
$n = intval($n);
|
|
if ($n==0) { return 0; } else if ($n==1) { return 1; } else if ($n==2) { return 2; } else if ($n%100>=3 && $n%100<=10) { return 3; } else if ($n%100>=11 && $n%100<=99) { return 4; } else { return 5; }
|
|
}}
|