r111929 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r111928‎ | r111929 | r111930 >
Date:14:04, 20 February 2012
Author:nikerabbit
Status:ok
Tags:i18nreview 
Comment:
Whitespace and comment fixes
Modified paths:
  • /branches/jsgrammar/resources/mediawiki.language/mediawiki.language.js (modified) (history)
  • /branches/jsgrammar/resources/mediawiki/mediawiki.jqueryMsg.js (modified) (history)

Diff [purge]

Index: branches/jsgrammar/resources/mediawiki/mediawiki.jqueryMsg.js
@@ -423,7 +423,7 @@
424424 var templateContents = choice( [
425425 function() {
426426 var res = sequence( [
427 - choice( [ templateWithReplacement, templateWithOutReplacement ] ) ,
 427+ choice( [ templateWithReplacement, templateWithOutReplacement ] ),
428428 nOrMore( 0, templateParam )
429429 ] );
430430 return res === null ? null : res[0].concat( res[1] );
@@ -650,7 +650,7 @@
651651 /**
652652 * Transform parsed structure into gender
653653 * Usage {{gender:[gender| mw.user object ] | masculine|feminine|neutral}}.
654 - * @param {Array} of nodes, [ {String|mw.User}, {String}, {String} , {String} ]
 654+ * @param {Array} of nodes, [ {String|mw.User}, {String}, {String}, {String} ]
655655 * @return {String} selected gender form according to current language
656656 */
657657 gender: function( nodes ) {
@@ -672,7 +672,7 @@
673673 grammar: function( nodes ) {
674674 var form = nodes[0];
675675 var word = nodes[1];
676 - return this.language.convertGrammar( word , form );
 676+ return this.language.convertGrammar( word, form );
677677 }
678678 };
679679
Index: branches/jsgrammar/resources/mediawiki.language/mediawiki.language.js
@@ -141,9 +141,9 @@
142142 },
143143 /**
144144 * Grammatical transformations, needed for inflected languages.
145 - * Invoked by putting {{grammar:form|word}} in a message
 145+ * Invoked by putting {{grammar:form|word}} in a message.
146146 * The rules can be defined in wgGrammarForms global or grammar
147 - * forms can be dynamically calculated by overriding this per language
 147+ * forms can be computed dynamically by overriding this method per language
148148 *
149149 * @param word string
150150 * @param form string

Status & tagging log