r108943 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r108942‎ | r108943 | r108944 >
Date:22:32, 14 January 2012
Author:amire80
Status:ok
Tags:
Comment:
A bit of documentation.
Modified paths:
  • /trunk/phase3/languages/classes/LanguageHe.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/classes/LanguageHe.php
@@ -39,7 +39,7 @@
4040 $word = substr( $word, 2 );
4141 }
4242
43 - # Add a hyphen if non-Hebrew letters
 43+ # Add a hyphen (maqaf) if non-Hebrew letters
4444 if ( substr( $word, 0, 2 ) < "א" || substr( $word, 0, 2 ) > "ת" ) {
4545 $word = "־" . $word;
4646 }
@@ -60,11 +60,11 @@
6161 $forms = $this->preConvertPlural( $forms, 3 );
6262
6363 if ( $count == '1' ) {
64 - return $forms[0];
 64+ return $forms[0]; // Singular
6565 } elseif ( $count == '2' && isset( $forms[2] ) ) {
66 - return $forms[2];
 66+ return $forms[2]; // Dual
6767 } else {
68 - return $forms[1];
 68+ return $forms[1]; // Plural
6969 }
7070 }
7171 }

Status & tagging log