From: Michael Dale Date: Thu, 29 Oct 2009 10:57:02 +0000 (+0000) Subject: * stubs for larger lang test X-Git-Tag: 1.31.0-rc.0~39042 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=0a29a2902ec98720bb0e1d9d97358dc28a3d8e2d;p=lhc%2Fweb%2Fwiklou.git * stubs for larger lang test * updated compressed cortado --- diff --git a/js2/mwEmbed/binPlayers/cortado/cortado-ovt-stripped-0.5.0.jar b/js2/mwEmbed/binPlayers/cortado/cortado-ovt-stripped-0.5.0.jar index 209fe56852..02c541f44b 100644 Binary files a/js2/mwEmbed/binPlayers/cortado/cortado-ovt-stripped-0.5.0.jar and b/js2/mwEmbed/binPlayers/cortado/cortado-ovt-stripped-0.5.0.jar differ diff --git a/js2/mwEmbed/mv_embed.js b/js2/mwEmbed/mv_embed.js index 2ed21749be..7bf7d4cecf 100644 --- a/js2/mwEmbed/mv_embed.js +++ b/js2/mwEmbed/mv_embed.js @@ -59,9 +59,10 @@ function lcCssPath( cssSet ) { * * Right now the PHP AutoLoader only reads this mv_embed.js file. * In the future we could have multiple lcPath calls that PHP reads - * (if our autoloading class list becomes too long) just have to add those - * files to the jsAutoLoader file list. - * (ie extensions that want to use the autoloader) + * (if our autoloading class list becomes too long) + * or + * we could support direct file requests to the script loader instead + * of shared class names read from a central location. */ lcPaths({ "mv_embed" : "mv_embed.js", @@ -75,7 +76,9 @@ lcPaths({ "$j.Jcrop" : "libClipEdit/Jcrop/js/jquery.Jcrop.js", "$j.fn.simpleUploadForm" : "libAddMedia/simpleUploadForm.js", - "$mw.proxy" : "libMwApi/mw.proxy.js", + "$mw.proxy" : "libMwApi/mw.proxy.js", + + "$mw.testLang" : "tests/testLang.js", "ctrlBuilder" : "skins/ctrlBuilder.js", "kskinConfig" : "skins/kskin/kskin.js", diff --git a/js2/mwEmbed/php/languages/cldrConverter.php b/js2/mwEmbed/php/languages/cldrConverter.php index 612f4cabd9..fc187b37aa 100644 --- a/js2/mwEmbed/php/languages/cldrConverter.php +++ b/js2/mwEmbed/php/languages/cldrConverter.php @@ -76,11 +76,13 @@ class cldrConverter { 'one' => 1, //n is 0 OR n is not 1 AND n mod 100 in 1..19 'few' => array( - array( 'is' => 0), - 'or', - array( - array( 'not' => 1), - array( 'mod' => 100, 'is'=>'1-19') + 'or'=> array( + array( 'is' => 0), + array( + array( 'not' => 1), + //and + array( 'mod' => 100, 'is'=>'1-19') + ) ) ) ) @@ -113,11 +115,11 @@ class cldrConverter { ), //n mod 10 is 0 or n mod 10 in 5..9 or n mod 100 in 11..14 'many' => array( - array( 'mod'=> 10, 'is' => 0), - 'or', - array( 'mod'=> 10, 'is' => '5-9'), - 'or', - array( 'mod'=> 100, 'is' => '11-14') + 'or'=>array( + array( 'mod'=> 10, 'is' => 0), + array( 'mod'=> 10, 'is' => '5-9'), + array( 'mod'=> 100, 'is' => '11-14') + ) ), ) ), diff --git a/js2/mwEmbed/tests/testLang.html b/js2/mwEmbed/tests/testLang.html index 30840e3177..1f10058da5 100644 --- a/js2/mwEmbed/tests/testLang.html +++ b/js2/mwEmbed/tests/testLang.html @@ -2,15 +2,178 @@ Test Plural Conversions (should match php) -