Improved the comment about the two-forms plural shortcut.
[lhc/web/wiklou.git] / languages / classes / LanguageSr.php
index 28651b3..86bfd82 100644 (file)
@@ -238,7 +238,10 @@ class LanguageSr extends LanguageSr_ec {
                        return '';
                }
 
-               // if no number with word, then use $form[0] for singular and $form[1] for plural or zero
+               // If the actual number is not mentioned in the expression, then just two forms are enough:
+               // singular for $count == 1
+               // plural   for $count != 0
+               // For example, "This user belongs to {{PLURAL:$1|one group|several groups}}."
                if ( count( $forms ) === 2 ) {
                        return $count == 1 ? $forms[0] : $forms[1];
                }