Skip to content

Commit

Permalink
French treat zero as singular (bug #3039777)
Browse files Browse the repository at this point in the history
  • Loading branch information
vrana committed Aug 6, 2010
1 parent 5edbc1e commit cc79e4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adminer/include/lang.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function lang($idf, $number = null) {
global $LANG, $translations;
$translation = $translations[$idf];
if (is_array($translation) && $translation) {
$pos = ($number == 1 ? 0 : ((!$number || $number >= 5) && ereg('cs|sk|ru', $LANG) ? 2 : 1)); // Slavic languages use different form for 2, 3, 4
$pos = ($number == 1 || (!$number && $LANG == 'fr') ? 0 : ((!$number || $number >= 5) && ereg('cs|sk|ru', $LANG) ? 2 : 1)); // French treat zero as singular, Slavic languages use different form for 2, 3, 4
$translation = $translation[$pos];
}
$args = func_get_args();
Expand Down

0 comments on commit cc79e4b

Please sign in to comment.