r114679 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r114678‎ | r114679 | r114680 >
Date:00:35, 3 April 2012
Author:raindrift
Status:deferred
Tags:
Comment:
more namespace dropdown formatting
Modified paths:
  • /trunk/extensions/PageTriage/PageTriage.i18n.php (modified) (history)
  • /trunk/extensions/PageTriage/PageTriage.php (modified) (history)
  • /trunk/extensions/PageTriage/SpecialPageTriage.php (modified) (history)

Diff [purge]

Index: trunk/extensions/PageTriage/SpecialPageTriage.php
@@ -186,8 +186,8 @@
187187 var nsOptions = '';
188188 for ( var key in wgFormattedNamespaces ) {
189189 if ( wgFormattedNamespaces[key] == '' ) {
190 - nsOptions += String('<option value="' + String(key) + '">Article</option>');
191 - } else {
 190+ nsOptions += String('<option value="' + String(key) + '">' + gM( 'pagetriage-filter-ns-article' ) + '</option>');
 191+ } else if( key > 0 ) {
192192 nsOptions += String('<option value="' + String(key) + '">' + wgFormattedNamespaces[key] + '</option>');
193193 }
194194 }
Index: trunk/extensions/PageTriage/PageTriage.i18n.php
@@ -51,7 +51,8 @@
5252 'pagetriage-filter-blocked' => 'Are by blocked users',
5353 'pagetriage-filter-set-button' => 'Set Filters',
5454 'pagetriage-stats-untriaged-age' => 'Article Ages: Average: $1, Oldest: $2',
55 - 'pagetriage-stats-less-than-a-day' => 'less than one day'
 55+ 'pagetriage-stats-less-than-a-day' => 'less than one day',
 56+ 'pagetriage-filter-ns-article' => 'Article',
5657 );
5758
5859 /**
@@ -95,5 +96,6 @@
9697 'pagetriage-filter-blocked' => 'Checkbox text for articles by blocked users',
9798 'pagetriage-filter-set-button' => 'Button text for the set filter button',
9899 'pagetriage-stats-untriaged-age' => 'Navigation text displaying triage stats',
99 - 'pagetriage-stats-less-than-a-day' => 'show this message if the article age is less than one day, part of variable $1 and $2 of {{msg-pagetriage|pagetriage-stats-untriaged-age}} '
 100+ 'pagetriage-stats-less-than-a-day' => 'show this message if the article age is less than one day, part of variable $1 and $2 of {{msg-pagetriage|pagetriage-stats-untriaged-age}} ',
 101+ 'pagetriage-filter-ns-article' => 'The name of the main article namespace',
100102 );
Index: trunk/extensions/PageTriage/PageTriage.php
@@ -200,6 +200,7 @@
201201 'ext.pageTriage.views/ext.pageTriage.listStatsNav.css'
202202 ),
203203 'messages' => array(
 204+ 'days',
204205 'pagetriage-hist',
205206 'pagetriage-bytes',
206207 'pagetriage-edits',
@@ -238,7 +239,7 @@
239240 'pagetriage-filter-set-button',
240241 'pagetriage-stats-untriaged-age',
241242 'pagetriage-stats-less-than-a-day',
242 - 'days',
 243+ 'pagetriage-filter-ns-article',
243244 )
244245 );
245246

Status & tagging log