Message info
 
To:mediawiki-cvs@lists.wikimedia.org From:amire80@svn.wikimedia.org Subject:[MediaWiki-CVS] SVN: [111893] branches/jsgrammar Date:Sun, 19 Feb 2012 22:29:04 +0000
 

https://www.mediawiki.org/wiki/Special:Code/MediaWiki/111893

Revision: 111893
Author: amire80
Date: 2012-02-19 22:29:04 +0000 (Sun, 19 Feb 2012)
Log Message:
-----------
Clearer comments.

Modified Paths:
--------------
branches/jsgrammar/languages/classes/LanguageHe.php
branches/jsgrammar/resources/mediawiki.language/languages/he.js

Modified: branches/jsgrammar/languages/classes/LanguageHe.php
===================================================================
--- branches/jsgrammar/languages/classes/LanguageHe.php 2012-02-19 21:50:17 UTC (rev 111892)
+++ branches/jsgrammar/languages/classes/LanguageHe.php 2012-02-19 22:29:04 UTC (rev 111893)
@@ -28,8 +28,8 @@

switch ( $case ) {
case 'prefixed':
- case 'תחילית':
- # Duplicate the "Waw" if prefixed
+ case 'תחילית': // the same word in Hebrew
+ # Duplicate prefixed "Waw", but only if it's not already double
if ( substr( $word, 0, 2 ) == "ו" && substr( $word, 0, 4 ) != "וו" ) {
$word = "ו" . $word;
}
@@ -39,7 +39,7 @@
$word = substr( $word, 2 );
}

- # Add a hyphen (maqaf) if non-Hebrew letters
+ # Add a hyphen (maqaf) before numbers and non-Hebrew letters
if ( substr( $word, 0, 2 ) < "א" || substr( $word, 0, 2 ) > "ת" ) {
$word = "־" . $word;
}

Modified: branches/jsgrammar/resources/mediawiki.language/languages/he.js
===================================================================
--- branches/jsgrammar/resources/mediawiki.language/languages/he.js 2012-02-19 21:50:17 UTC (rev 111892)
+++ branches/jsgrammar/resources/mediawiki.language/languages/he.js 2012-02-19 22:29:04 UTC (rev 111893)
@@ -20,8 +20,8 @@
}
switch ( form ) {
case 'prefixed':
- case 'תחילית':
- // Duplicate the "Waw" if prefixed
+ case 'תחילית': // the same word in Hebrew
+ // Duplicate prefixed "Waw", but only if it's not already double
if ( word.substr( 0, 1 ) === "ו" && word.substr( 0, 2 ) !== "וו" ) {
word = "ו" + word;
}
@@ -31,7 +31,7 @@
word = word.substr( 1, word.length );
}

- // Add a hyphen (maqaf) if non-Hebrew letters
+ // Add a hyphen (maqaf) before numbers and non-Hebrew letters
if ( word.substr( 0, 1 ) < "א" || word.substr( 0, 1 ) > "ת" ) {
word = "־" + word;
}


_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs