summaryrefslogtreecommitdiff
path: root/languages/classes/LanguageHe.php
diff options
context:
space:
mode:
Diffstat (limited to 'languages/classes/LanguageHe.php')
-rw-r--r--languages/classes/LanguageHe.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/languages/classes/LanguageHe.php b/languages/classes/LanguageHe.php
index e65feee9..87483c65 100644
--- a/languages/classes/LanguageHe.php
+++ b/languages/classes/LanguageHe.php
@@ -39,7 +39,7 @@ class LanguageHe extends Language {
$word = substr( $word, 2 );
}
- # Add a hyphen if non-Hebrew letters
+ # Add a hyphen (maqaf) if non-Hebrew letters
if ( substr( $word, 0, 2 ) < "א" || substr( $word, 0, 2 ) > "ת" ) {
$word = "־" . $word;
}
@@ -59,12 +59,12 @@ class LanguageHe extends Language {
if ( !count( $forms ) ) { return ''; }
$forms = $this->preConvertPlural( $forms, 3 );
- if ( $count == '1' ) {
- return $forms[0];
- } elseif ( $count == '2' && isset( $forms[2] ) ) {
- return $forms[2];
+ if ( $count == 1 ) {
+ return $forms[0]; // Singular
+ } elseif ( $count == 2 ) {
+ return $forms[2]; // Dual or plural if dual is not provided (filled in preConvertPlural)
} else {
- return $forms[1];
+ return $forms[1]; // Plural
}
}
}