Commit graph

16 commits

Author SHA1 Message Date
awjrichards
c29fd59775 Big oops - merged to wrong branch.
Revert "Revert to arbitrarily old point before initial remote branch creation to help clean up"

This reverts commit ee0d3d330f
2012-06-05 22:58:54 +00:00
awjrichards
ee0d3d330f Revert to arbitrarily old point before initial remote branch creation to help clean up
Change-Id: I41a3d1e55d3ea9dffa42451237fe065f9334361d
2012-06-02 08:43:04 -07:00
Santhosh Thottingal
4c6c50f206 Reverse the dependency for mediawiki.language.data
* Previously mediawiki.language.data depended on mediawiki.language,
  making any module using langauge data having to explicitly define
  it as a dependency. This is not good. We should abstract the data
  generation part and for the users of the module.
  mediawiki.language should take care of having the required data.

* So, reversing the dependency so that mediawiki.language depends on
  mediawiki.language.data. Then a simple dependency declaration with
  "mediawiki.language" is enough to have associated data available.

This supersedes change set I810fb0a5

Change-Id: Iede836bb3e2fd700cb7c58caeebe9ec2e0043dfb
2012-06-05 15:54:27 +02:00
Santhosh Thottingal
931c31c7bd (bug 33658) support for {{GRAMMAR:}} in jqueryMsg
This add GRAMMAR support to the mediawiki.jqueryMsg module:

1. make jqueryMsg understand GRAMMAR(case insensitive)
2. mw.language get convertGrammar, can be overridden per language as in
   php
3. Introduce resourceloader module ResourceLoaderLanguageDataModule
4. Language.php get a method to filter wgGrammerForms for the current
   contentLanguage.
5. Qunit tests
6. This code was originally written in jsgrammar branch of svn and had
   reviewed during the last slush time.

Change-Id: I90dd0b2f0cb30fd30539896c292829adc4fc7364
2012-04-10 11:47:39 +02:00
Santhosh Thottingal
7739f06b97 Parser can take mw.user too along with male, female for {{gender:$1|..}}
If the parameter passed is mw.user, use the gender from mw.user.options. If not, use the passed gender.
Update the qunit tests.
Update the documentation.
Followup r107811
2012-01-02 12:21:34 +00:00
Santhosh Thottingal
7f3212ece3 Use strict comparison for length property.
Follow up r107808
2012-01-02 09:21:03 +00:00
Santhosh Thottingal
df4c6f4611 Add gender support. This method is useful only if we have parser that can understand gender at client side.
Test cases and mw.jqueryMsg changes in next commit.
2012-01-02 09:08:23 +00:00
Antoine Musso
6dffe95599 parseInt with base 10, update comment (number -> num)
follow up r83619
2011-03-17 20:37:32 +00:00
Neil Kandalgaonkar
70c354feb0 fixed some parseInts to have a base, renamed a var from number -> num since number is reserved 2011-03-10 00:14:36 +00:00
Krinkle
bc0f9cac32 Wrapping core modules (FIXME from r79929)
(Touch: r74088, r73046)
2011-01-31 19:33:16 +00:00
Sam Reed
a1d9af3a06 Start fixing up javascript function documentation
Switching order, renaming parameters in documentation
2010-11-30 18:19:27 +00:00
Krinkle
836dbd7bfd whitespace commit (removing trailing space) 2010-11-22 23:55:37 +00:00
Krinkle
c563312d90 clean-up trailing spaces and tabs in js/css resources 2010-11-12 23:10:58 +00:00
Tim Starling
e2cf4b81db * Break long lines
* For readability, rewrote ResourceLoaderFileModule::readScriptFiles() to use a loop instead of an excessively cute nested array_map() construction.
* In ResourceLoaderFileModule, check file_get_contents() result for errors. Golden rule of error checking: always check fopen(). Every call to fopen will fail some day for some user.
* In mediaWiki.loader.filter(): broke up a complex multi-line conditional into multiple commented if statements, for readability.
* Possessive "its" has no apostrophe.
2010-11-05 06:53:14 +00:00
Roan Kattouw
e31ed04b16 Whitespace fixes for r75486 2010-10-27 15:51:31 +00:00
Trevor Parscal
77d71f743d Introducing mediaWiki.language, and mediaWiki.message which are modeled after their PHP counterparts Language and wfMessage respectively. 2010-10-26 23:40:26 +00:00