r111927 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r111926‎ | r111927 | r111928 >
Date:13:49, 20 February 2012
Author:nikerabbit
Status:ok
Tags:i18nreview 
Comment:
Whitespace cleanup
Modified paths:
  • /branches/jsgrammar/resources/mediawiki.language/mediawiki.language.js (modified) (history)

Diff [purge]

Index: branches/jsgrammar/resources/mediawiki.language/mediawiki.language.js
@@ -45,7 +45,7 @@
4646 }
4747 // Restore the count into a Number ( if it got converted earlier )
4848 var count = mw.language.convertNumber( template.title, true );
49 - // Do convertPlural call
 49+ // Do convertPlural call
5050 return mw.language.convertPlural( parseInt( count, 10 ), template.parameters );
5151 }
5252 // Could not process plural return first form or nothing
@@ -118,7 +118,7 @@
119119 * Provides an alternative text depending on specified gender.
120120 * Usage {{gender:[gender|user object]|masculine|feminine|neutral}}.
121121 * If second or third parameter are not specified, masculine is used.
122 - *
 122+ *
123123 * These details may be overriden per language.
124124 *
125125 * @param gender string male, female, or anything else for neutral.
@@ -142,7 +142,7 @@
143143 /**
144144 * Grammatical transformations, needed for inflected languages.
145145 * Invoked by putting {{grammar:form|word}} in a message
146 - * The rules can be defined in wgGrammarForms global or grammar
 146+ * The rules can be defined in wgGrammarForms global or grammar
147147 * forms can be dynamically calculated by overriding this per language
148148 *
149149 * @param word string
@@ -152,7 +152,7 @@
153153 convertGrammar: function( word, form ) {
154154 var grammarForms = mw.language.data[mw.config.get( 'wgContentLanguage' )].get( 'grammarForms' );
155155 if ( grammarForms && grammarForms[form] ) {
156 - return grammarForms[form][word] || word ;
 156+ return grammarForms[form][word] || word;
157157 }
158158 return word;
159159 },

Status & tagging log