r39171 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r39170‎ | r39171 | r39172 >
Date:19:51, 11 August 2008
Author:siebrand
Status:old
Tags:
Comment:
(bug 13056) Fix for awkward message usage (patch by Lejonel)
* remove eol whitespace
* use $wgExtensionAliasesFiles for special page localisation, change the default special page name in the process, with backward compatibility for 1.13+
* bump version
Modified paths:
  • /trunk/extensions/UsageStatistics/SpecialUserStats.alias.php (added) (history)
  • /trunk/extensions/UsageStatistics/SpecialUserStats.i18n.php (modified) (history)
  • /trunk/extensions/UsageStatistics/SpecialUserStats.php (modified) (history)
  • /trunk/extensions/UsageStatistics/SpecialUserStats_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/UsageStatistics/SpecialUserStats_body.php
@@ -3,14 +3,14 @@
44 {
55 function SpecialUserStats() {
66 SpecialPage::SpecialPage("SpecialUserStats");
7 -
 7+
88 # the standard method for LoadingExtensionMessages was apparently broken in several versions of MW
99 # so, to make this work with multiple versions of MediaWiki, let's load the messages nicely
1010 if (function_exists('wfLoadExtensionMessages'))
1111 wfLoadExtensionMessages( 'UserStats' );
1212 else
1313 self::loadMessages();
14 -
 14+
1515 return true;
1616 }
1717
@@ -137,16 +137,16 @@
138138 $gnuplot_pdata .= "$date $p\n";
139139 }
140140 $gnuplot .= "e\n$gnuplot_pdata\ne</gnuplot>";
141 -
 141+
142142 //$wgOut->addHTML($gnuplot);
143143 $wgOut->addWikiText("<center>$gnuplot</center>");
144144
145 -
 145+
146146 if (!in_array($wgUserStatsGlobalRight, $wgUser->getRights()))
147147 return;
148 -
 148+
149149 # plot overall usage statistics
150 - $wgOut->addWikiText(wfMsg('usagestatisticsfor', wfMsg('usagestatisticsallusers')));
 150+ $wgOut->addWikiText(wfMsg( 'usagestatisticsforallusers' ));
151151 $gnuplot ="<gnuplot>
152152 set xdata time
153153 set xtics rotate by 90
@@ -188,7 +188,7 @@
189189 $gnuplot_pdata .= "$date $pages\n";
190190 }
191191 $gnuplot .= "e\n$gnuplot_pdata\ne</gnuplot>";
192 -
 192+
193193 //$wgOut->addHTML($gnuplot);
194194 $wgOut->addWikiText("<center>$gnuplot</center>");
195195
@@ -231,25 +231,25 @@
232232 else {
233233 $nature = wfMsg ('usagestatisticsincremental-text');
234234 }
235 -
 235+
236236 $wgOut->addHtml('<div class="NavFrame" style="padding:0px;border-style:none;">');
237237 $wgOut->addHtml('<div class="NavHead" style="background: #ffffff; text-align: left; font-size:100%;">');
238238 $wgOut->addWikiText(wfMsg ('usagestatistics-editindividual', $nature));
239 - $wgOut->addHtml('</div><div class="NavContent" style="display:none; font-size:normal; text-align:left">');
 239+ $wgOut->addHtml('</div><div class="NavContent" style="display:none; font-size:normal; text-align:left">');
240240 $wgOut->AddWikiText("<pre>$csv$csv_edits</pre></div></div><br>");
241 -
 241+
242242 $wgOut->addHtml('<div class="NavFrame" style="padding:0px;border-style:none;">');
243243 $wgOut->addHtml('<div class="NavHead" style="background: #ffffff; text-align: left; font-size:100%;">');
244244 $wgOut->addWikiText(wfMsg ('usagestatistics-editpages', $nature));
245 - $wgOut->addHtml('</div><div class="NavContent" style="display:none; font-size:normal; text-align:left">');
 245+ $wgOut->addHtml('</div><div class="NavContent" style="display:none; font-size:normal; text-align:left">');
246246 $wgOut->AddWikiText("<pre>$csv$csv_pages</pre></div></div>");
247 -
 247+
248248 return;
249249 }
250250
251251 function DisplayForm($start,$end) {
252252 global $wgOut;
253 -
 253+
254254 $wgOut->addHTML("
255255 <script type='text/javascript'>document.write(getCalendarStyles());</SCRIPT>
256256 <form id=\"userstats\" method=\"post\">
@@ -318,8 +318,8 @@
319319 for($i = 1; $i <= 7; $i++)
320320 $daynames .= "'" . $wgContLang->getWeekdayAbbreviation($i) . "',";
321321 $daynames = substr($daynames, 0, -1);
322 -
323 -
 322+
 323+
324324 $wgOut->addScript(<<<END
325325 <script type="text/javascript">
326326 // ===================================================================
@@ -335,7 +335,7 @@
336336 // use. That means, you can include it in your product, or your web
337337 // site, or any other form where the code is actually being used. You
338338 // may not put the plain javascript up on your site for download or
339 -// include it in your javascript libraries for download.
 339+// include it in your javascript libraries for download.
340340 // If you wish to share this code with others, please just point them
341341 // to the URL instead.
342342 // Please DO NOT link directly to my .js files from your site. Copy
@@ -345,7 +345,7 @@
346346
347347 /* SOURCE FILE: AnchorPosition.js */
348348
349 -/*
 349+/*
350350 AnchorPosition.js
351351 Author: Matt Kruse
352352 Last modified: 10/11/02
@@ -354,7 +354,7 @@
355355 so other elements can be positioned relative to it.
356356
357357 COMPATABILITY: Netscape 4.x,6.x,Mozilla, IE 5.x,6.x on Windows. Some small
358 -positioning errors - usually with Window positioning - occur on the
 358+positioning errors - usually with Window positioning - occur on the
359359 Macintosh platform.
360360
361361 FUNCTIONS:
@@ -368,16 +368,16 @@
369369
370370 NOTES:
371371
372 -1) For popping up separate browser windows, use getAnchorWindowPosition.
 372+1) For popping up separate browser windows, use getAnchorWindowPosition.
373373 Otherwise, use getAnchorPosition
374374
375 -2) Your anchor tag MUST contain both NAME and ID attributes which are the
 375+2) Your anchor tag MUST contain both NAME and ID attributes which are the
376376 same. For example:
377377 <A NAME="test" ID="test"> </A>
378378
379 -3) There must be at least a space between <A> </A> for IE5.5 to see the
 379+3) There must be at least a space between <A> </A> for IE5.5 to see the
380380 anchor tag correctly. Do not do <A></A> with no space.
381 -*/
 381+*/
382382
383383 // getAnchorPosition(anchorname)
384384 // This function returns an object having .x and .y properties which are the coordinates
@@ -463,7 +463,7 @@
464464 }
465465 function AnchorPosition_getWindowOffsetLeft (el) {
466466 return AnchorPosition_getPageOffsetLeft(el)-document.body.scrollLeft;
467 - }
 467+ }
468468 function AnchorPosition_getPageOffsetTop (el) {
469469 var ot=el.offsetTop;
470470 while((el=el.offsetParent) != null) { ot += el.offsetTop; }
@@ -480,14 +480,14 @@
481481 // May 17, 2003: Fixed bug in parseDate() for dates <1970
482482 // March 11, 2003: Added parseDate() function
483483 // March 11, 2003: Added "NNN" formatting option. Doesn't match up
484 -// perfectly with SimpleDateFormat formats, but
 484+// perfectly with SimpleDateFormat formats, but
485485 // backwards-compatability was required.
486486
487487 // ------------------------------------------------------------------
488 -// These functions use the same 'format' strings as the
 488+// These functions use the same 'format' strings as the
489489 // java.text.SimpleDateFormat class, with minor exceptions.
490490 // The format string consists of the following abbreviations:
491 -//
 491+//
492492 // Field | Full Form | Short Form
493493 // -------------+--------------------+-----------------------
494494 // Year | yyyy (4 digits) | yy (2 digits), y (2 or 4 digits)
@@ -610,7 +610,7 @@
611611 }
612612 return result;
613613 }
614 -
 614+
615615 // ------------------------------------------------------------------
616616 // Utility functions for parsing in getDateFromFormat()
617617 // ------------------------------------------------------------------
@@ -629,12 +629,12 @@
630630 }
631631 return null;
632632 }
633 -
 633+
634634 // ------------------------------------------------------------------
635635 // getDateFromFormat( date_string , format_string )
636636 //
637637 // This function takes a date string and a format string. It matches
638 -// If the date string matches the format string, it returns the
 638+// If the date string matches the format string, it returns the
639639 // getTime() of the date. If it does not match, it returns 0.
640640 // ------------------------------------------------------------------
641641 function getDateFromFormat(val,format) {
@@ -654,7 +654,7 @@
655655 var mm=now.getMinutes();
656656 var ss=now.getSeconds();
657657 var ampm="";
658 -
 658+
659659 while (i_format < format.length) {
660660 // Get next token from format string
661661 c=format.charAt(i_format);
@@ -793,7 +793,7 @@
794794
795795 /* SOURCE FILE: PopupWindow.js */
796796
797 -/*
 797+/*
798798 PopupWindow.js
799799 Author: Matt Kruse
800800 Last modified: 02/16/04
@@ -803,20 +803,20 @@
804804 window.
805805
806806 COMPATABILITY: Works with Netscape 4.x, 6.x, IE 5.x on Windows. Some small
807 -positioning errors - usually with Window positioning - occur on the
808 -Macintosh platform. Due to bugs in Netscape 4.x, populating the popup
 807+positioning errors - usually with Window positioning - occur on the
 808+Macintosh platform. Due to bugs in Netscape 4.x, populating the popup
809809 window with <STYLE> tags may cause errors.
810810
811811 USAGE:
812812 // Create an object for a WINDOW popup
813 -var win = new PopupWindow();
 813+var win = new PopupWindow();
814814
815815 // Create an object for a DIV window using the DIV named 'mydiv'
816 -var win = new PopupWindow('mydiv');
 816+var win = new PopupWindow('mydiv');
817817
818 -// Set the window to automatically hide itself when the user clicks
 818+// Set the window to automatically hide itself when the user clicks
819819 // anywhere else on the page except the popup
820 -win.autoHide();
 820+win.autoHide();
821821
822822 // Show the window relative to the anchor name passed in
823823 win.showPopup(anchorname);
@@ -827,7 +827,7 @@
828828 // Set the size of the popup window (only applies to WINDOW popups
829829 win.setSize(width,height);
830830
831 -// Populate the contents of the popup window that will be shown. If you
 831+// Populate the contents of the popup window that will be shown. If you
832832 // change the contents while it is displayed, you will need to refresh()
833833 win.populate(string);
834834
@@ -847,18 +847,18 @@
848848 NOTES:
849849 1) Requires the functions in AnchorPosition.js
850850
851 -2) Your anchor tag MUST contain both NAME and ID attributes which are the
 851+2) Your anchor tag MUST contain both NAME and ID attributes which are the
852852 same. For example:
853853 <A NAME="test" ID="test"> </A>
854854
855 -3) There must be at least a space between <A> </A> for IE5.5 to see the
 855+3) There must be at least a space between <A> </A> for IE5.5 to see the
856856 anchor tag correctly. Do not do <A></A> with no space.
857857
858858 4) When a PopupWindow object is created, a handler for 'onmouseup' is
859859 attached to any event handler you may have already defined. Do NOT define
860860 an event handler for 'onmouseup' after you define a PopupWindow object or
861861 the autoHide() will not work correctly.
862 -*/
 862+*/
863863
864864 // Set the position of the popup window based on the anchor
865865 function PopupWindow_getXYPosition(anchorname) {
@@ -897,11 +897,11 @@
898898 if (this.use_gebi) {
899899 document.getElementById(this.divName).innerHTML = this.contents;
900900 }
901 - else if (this.use_css) {
 901+ else if (this.use_css) {
902902 document.all[this.divName].innerHTML = this.contents;
903903 }
904 - else if (this.use_layers) {
905 - var d = document.layers[this.divName];
 904+ else if (this.use_layers) {
 905+ var d = document.layers[this.divName];
906906 d.document.open();
907907 d.document.writeln(this.contents);
908908 d.document.close();
@@ -1076,7 +1076,7 @@
10771077 this.populated = false;
10781078 this.visible = false;
10791079 this.autoHideEnabled = false;
1080 -
 1080+
10811081 this.contents = "";
10821082 this.url="";
10831083 this.windowProperties="toolbar=no,location=no,status=no,menubar=no,scrollbars=auto,resizable,alwaysRaised,dependent,titlebar=no";
@@ -1125,13 +1125,13 @@
11261126 // CSS prefix.
11271127 // August 19, 2003: Renamed the function to get styles, and made it
11281128 // work correctly without an object reference
1129 -// August 18, 2003: Changed showYearNavigation and
 1129+// August 18, 2003: Changed showYearNavigation and
11301130 // showYearNavigationInput to optionally take an argument of
11311131 // true or false
11321132 // July 31, 2003: Added text input option for year navigation.
1133 -// Added a per-calendar CSS prefix option to optionally use
 1133+// Added a per-calendar CSS prefix option to optionally use
11341134 // different styles for different calendars.
1135 -// July 29, 2003: Fixed bug causing the Today link to be clickable
 1135+// July 29, 2003: Fixed bug causing the Today link to be clickable
11361136 // even though today falls in a disabled date range.
11371137 // Changed formatting to use pure CSS, allowing greater control
11381138 // over look-and-feel options.
@@ -1139,35 +1139,35 @@
11401140 // under certain cases when some days of week are disabled
11411141 // March 14, 2003: Added ability to disable individual dates or date
11421142 // ranges, display as light gray and strike-through
1143 -// March 14, 2003: Removed dependency on graypixel.gif and instead
 1143+// March 14, 2003: Removed dependency on graypixel.gif and instead
11441144 /// use table border coloring
11451145 // March 12, 2003: Modified showCalendar() function to allow optional
11461146 // start-date parameter
11471147 // March 11, 2003: Modified select() function to allow optional
11481148 // start-date parameter
1149 -/*
 1149+/*
11501150 DESCRIPTION: This object implements a popup calendar to allow the user to
11511151 select a date, month, quarter, or year.
11521152
11531153 COMPATABILITY: Works with Netscape 4.x, 6.x, IE 5.x on Windows. Some small
1154 -positioning errors - usually with Window positioning - occur on the
 1154+positioning errors - usually with Window positioning - occur on the
11551155 Macintosh platform.
1156 -The calendar can be modified to work for any location in the world by
 1156+The calendar can be modified to work for any location in the world by
11571157 changing which weekday is displayed as the first column, changing the month
11581158 names, and changing the column headers for each day.
11591159
11601160 USAGE:
11611161 // Create a new CalendarPopup object of type WINDOW
1162 -var cal = new CalendarPopup();
 1162+var cal = new CalendarPopup();
11631163
11641164 // Create a new CalendarPopup object of type DIV using the DIV named 'mydiv'
1165 -var cal = new CalendarPopup('mydiv');
 1165+var cal = new CalendarPopup('mydiv');
11661166
1167 -// Easy method to link the popup calendar with an input box.
 1167+// Easy method to link the popup calendar with an input box.
11681168 cal.select(inputObject, anchorname, dateFormat);
11691169 // Same method, but passing a default date other than the field's current value
11701170 cal.select(inputObject, anchorname, dateFormat, '01/02/2000');
1171 -// This is an example call to the popup calendar from a link to populate an
 1171+// This is an example call to the popup calendar from a link to populate an
11721172 // input box. Note that to use this, date.js must also be included!!
11731173 <A HREF="#" onClick="cal.select(document.forms[0].date,'anchorname','MM/dd/yyyy'); return false;">Select</A>
11741174
@@ -1204,7 +1204,7 @@
12051205 // Show month and year dropdowns, for quicker selection of month of dates
12061206 cal.showNavigationDropdowns();
12071207
1208 -// Set the text to be used above each day column. The days start with
 1208+// Set the text to be used above each day column. The days start with
12091209 // sunday regardless of the value of WeekStartDay
12101210 cal.setDayHeaders("S","M","T",...);
12111211
@@ -1231,7 +1231,7 @@
12321232 // Pass two dates to disable all dates inbetween and including the two
12331233 cal.addDisabledDates("January 01, 2003", "Dec 31, 2003");
12341234
1235 -// When the 'year' select is displayed, set the number of years back from the
 1235+// When the 'year' select is displayed, set the number of years back from the
12361236 // current year to start listing years. Default is 2.
12371237 // This is also used for year drop-down, to decide how many years +/- to display
12381238 cal.setYearSelectStartOffset(2);
@@ -1264,21 +1264,21 @@
12651265 NOTES:
12661266 1) Requires the functions in AnchorPosition.js and PopupWindow.js
12671267
1268 -2) Your anchor tag MUST contain both NAME and ID attributes which are the
 1268+2) Your anchor tag MUST contain both NAME and ID attributes which are the
12691269 same. For example:
12701270 <A NAME="test" ID="test"> </A>
12711271
1272 -3) There must be at least a space between <A> </A> for IE5.5 to see the
 1272+3) There must be at least a space between <A> </A> for IE5.5 to see the
12731273 anchor tag correctly. Do not do <A></A> with no space.
12741274
12751275 4) When a CalendarPopup object is created, a handler for 'onmouseup' is
12761276 attached to any event handler you may have already defined. Do NOT define
1277 - an event handler for 'onmouseup' after you define a CalendarPopup object
 1277+ an event handler for 'onmouseup' after you define a CalendarPopup object
12781278 or the autoHide() will not work correctly.
1279 -
 1279+
12801280 5) The calendar popup display uses style sheets to make it look nice.
12811281
1282 -*/
 1282+*/
12831283
12841284 // CONSTRUCTOR for the CalendarPopup Object
12851285 function CalendarPopup() {
@@ -1345,7 +1345,7 @@
13461346 return c;
13471347 }
13481348 function CP_copyMonthNamesToWindow() {
1349 - // Copy these values over to the date.js
 1349+ // Copy these values over to the date.js
13501350 if (typeof(window.MONTH_NAMES)!="undefined" && window.MONTH_NAMES!=null) {
13511351 window.MONTH_NAMES = new Array();
13521352 for (var i=0; i<this.monthNames.length; i++) {
@@ -1357,23 +1357,23 @@
13581358 }
13591359 }
13601360 // Temporary default functions to be called when items clicked, so no error is thrown
1361 -function CP_tmpReturnFunction(y,m,d) {
 1361+function CP_tmpReturnFunction(y,m,d) {
13621362 if (window.CP_targetInput!=null) {
13631363 var dt = new Date(y,m-1,d,0,0,0);
13641364 if (window.CP_calendarObject!=null) { window.CP_calendarObject.copyMonthNamesToWindow(); }
13651365 window.CP_targetInput.value = formatDate(dt,window.CP_dateFormat);
13661366 }
13671367 else {
1368 - alert('Use setReturnFunction() to define which function will get the clicked results!');
 1368+ alert('Use setReturnFunction() to define which function will get the clicked results!');
13691369 }
13701370 }
1371 -function CP_tmpReturnMonthFunction(y,m) {
 1371+function CP_tmpReturnMonthFunction(y,m) {
13721372 alert('Use setReturnMonthFunction() to define which function will get the clicked results!You clicked: year='+y+' , month='+m);
13731373 }
1374 -function CP_tmpReturnQuarterFunction(y,q) {
 1374+function CP_tmpReturnQuarterFunction(y,q) {
13751375 alert('Use setReturnQuarterFunction() to define which function will get the clicked results!You clicked: year='+y+' , quarter='+q);
13761376 }
1377 -function CP_tmpReturnYearFunction(y) {
 1377+function CP_tmpReturnYearFunction(y) {
13781378 alert('Use setReturnYearFunction() to define which function will get the clicked results!You clicked: year='+y);
13791379 }
13801380
@@ -1421,7 +1421,7 @@
14221422 this.disabledWeekDays = new Object();
14231423 for (var i=0; i<arguments.length; i++) { this.disabledWeekDays[arguments[i]] = true; }
14241424 }
1425 -
 1425+
14261426 // Disable individual dates or ranges
14271427 // Builds an internal logical test which is run via eval() for efficiency
14281428 function CP_addDisabledDates(start, end) {
@@ -1434,15 +1434,15 @@
14351435 else if (end ==null) { this.disabledDatesExpression+="(ds>="+start+")"; }
14361436 else { this.disabledDatesExpression+="(ds>="+start+"&&ds<="+end+")"; }
14371437 }
1438 -
 1438+
14391439 // Set the text to use for the "Today" link
14401440 function CP_setTodayText(text) {
14411441 this.todayText = text;
14421442 }
14431443
14441444 // Set the prefix to be added to all CSS classes when writing output
1445 -function CP_setCssPrefix(val) {
1446 - this.cssPrefix = val;
 1445+function CP_setCssPrefix(val) {
 1446+ this.cssPrefix = val;
14471447 }
14481448
14491449 // Show the navigation as an dropdowns that can be manually changed
@@ -1460,7 +1460,7 @@
14611461 // Refresh the contents of the calendar display
14621462 function CP_refreshCalendar(index) {
14631463 var calObject = window.popupWindowObjects[index];
1464 - if (arguments.length>1) {
 1464+ if (arguments.length>1) {
14651465 calObject.populate(calObject.getCalendar(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]));
14661466 }
14671467 else {
@@ -1494,8 +1494,8 @@
14951495 alert("calendar.select: This function can only be used with displayType 'date' or 'week-end'");
14961496 return;
14971497 }
1498 - if (inputobj.type!="text" && inputobj.type!="hidden" && inputobj.type!="textarea") {
1499 - alert("calendar.select: Input object passed is not a valid form input object");
 1498+ if (inputobj.type!="text" && inputobj.type!="hidden" && inputobj.type!="textarea") {
 1499+ alert("calendar.select: Input object passed is not a valid form input object");
15001500 window.CP_targetInput=null;
15011501 return;
15021502 }
@@ -1517,7 +1517,7 @@
15181518 window.CP_dateFormat = format;
15191519 this.showCalendar(linkname);
15201520 }
1521 -
 1521+
15221522 // Get style block needed to display the calendar correctly
15231523 function getCalendarStyles() {
15241524 var result = "";
@@ -1577,7 +1577,7 @@
15781578 var display_date = 1;
15791579 var weekday= current_month.getDay();
15801580 var offset = 0;
1581 -
 1581+
15821582 offset = (weekday >= this.weekStartDay) ? weekday-this.weekStartDay : 7-this.weekStartDay+weekday ;
15831583 if (offset > 0) {
15841584 display_month--;
@@ -1714,7 +1714,7 @@
17151715 // ------------------------------------
17161716 if (this.displayType=="month" || this.displayType=="quarter" || this.displayType=="year") {
17171717 if (arguments.length > 0) { var year = arguments[0]; }
1718 - else {
 1718+ else {
17191719 if (this.displayType=="year") { var year = now.getFullYear()-this.yearSelectStartOffset; }
17201720 else { var year = now.getFullYear(); }
17211721 }
@@ -1727,8 +1727,8 @@
17281728 result += '</TR></TABLE>';
17291729 }
17301730 }
1731 -
1732 - // Code for MONTH display
 1731+
 1732+ // Code for MONTH display
17331733 // ----------------------
17341734 if (this.displayType=="month") {
17351735 // If POPUP, write entire HTML document
@@ -1743,7 +1743,7 @@
17441744 }
17451745 result += '</TABLE></CENTER></TD></TR></TABLE>';
17461746 }
1747 -
 1747+
17481748 // Code for QUARTER display
17491749 // ------------------------
17501750 if (this.displayType=="quarter") {
@@ -1789,4 +1789,3 @@
17901790 );
17911791 }
17921792 }
1793 -?>
Index: trunk/extensions/UsageStatistics/SpecialUserStats.i18n.php
@@ -12,7 +12,7 @@
1313 'usagestatistics' => 'Usage statistics',
1414 'usagestatistics-desc' => 'Show individual user and overall wiki usage statistics',
1515 'usagestatisticsfor' => '<h2>Usage statistics for [[User:$1|$1]]</h2>',
16 - 'usagestatisticsallusers' => 'All users',
 16+ 'usagestatisticsforallusers' => '<h2>Usage statistics for all users</h2>',
1717 'usagestatisticsinterval' => 'Interval',
1818 'usagestatisticstype' => 'Type',
1919 'usagestatisticsstart' => 'Start date',
@@ -66,7 +66,6 @@
6767 * @author Naudefj
6868 */
6969 $messages['af'] = array(
70 - 'usagestatisticsallusers' => 'Alle gebruikers',
7170 'usagestatisticsinterval' => 'Interval',
7271 'usagestatisticstype' => 'Tipe',
7372 'usagestatisticsstart' => 'Begindatum',
@@ -85,7 +84,6 @@
8685 'usagestatistics' => 'إحصاءات الاستخدام',
8786 'usagestatistics-desc' => 'يعرض إحصاءات الاستخدام لمستخدم منفرد وللويكي ككل',
8887 'usagestatisticsfor' => '<h2>إحصاءات الاستخدام ل[[User:$1|$1]]</h2>',
89 - 'usagestatisticsallusers' => 'كل المستخدمين',
9088 'usagestatisticsinterval' => 'مدة',
9189 'usagestatisticstype' => 'نوع',
9290 'usagestatisticsstart' => 'تاريخ البدء',
@@ -113,7 +111,6 @@
114112 'specialuserstats' => "Estadístiques d'usu",
115113 'usagestatistics' => "Estadístiques d'usu",
116114 'usagestatisticsfor' => "<h2>Estadístiques d'usu de [[User:$1|$1]]</h2>",
117 - 'usagestatisticsallusers' => 'Tolos usuarios',
118115 'usagestatisticsinterval' => 'Intervalu',
119116 'usagestatisticstype' => 'Triba',
120117 'usagestatisticsstart' => 'Fecha inicial',
@@ -131,7 +128,6 @@
132129 'specialuserstats' => 'Faverenkopaceem',
133130 'usagestatistics' => 'Faverenkopaceem',
134131 'usagestatisticsfor' => '<h2>Faverenkopaceem ke [[User:$1|$1]]</h2>',
135 - 'usagestatisticsallusers' => 'Favesikeem',
136132 'usagestatisticsinterval' => 'Waluk',
137133 'usagestatisticstype' => 'Ord',
138134 'usagestatisticsstart' => 'Tozevla',
@@ -154,7 +150,6 @@
155151 */
156152 $messages['bg'] = array(
157153 'usagestatistics-desc' => 'Показване на статистика за отделни потребители или за цялото уики',
158 - 'usagestatisticsallusers' => 'Всички потребители',
159154 'usagestatisticsinterval' => 'Интервал',
160155 'usagestatisticstype' => 'Вид',
161156 'usagestatisticsstart' => 'Начална дата',
@@ -177,7 +172,6 @@
178173 'usagestatistics' => 'ব্যবহার পরিসংখ্যান',
179174 'usagestatistics-desc' => 'একজন নির্দিষ্ট ব্যবহারকারী এবং সামগ্রিক উইকি ব্যবহার পরিসংখ্যান দেখানো হোক',
180175 'usagestatisticsfor' => '<h2>ব্যবহারকারী [[User:$1|$1]]-এর জন্য ব্যবহার পরিসংখ্যান</h2>',
181 - 'usagestatisticsallusers' => 'সব ব্যবহারকারী',
182176 'usagestatisticsinterval' => 'ব্যবধান',
183177 'usagestatisticstype' => 'ধরন',
184178 'usagestatisticsstart' => 'শুরুর তারিখ',
@@ -206,7 +200,6 @@
207201 'usagestatistics' => 'Stadegoù implijout',
208202 'usagestatistics-desc' => 'Diskouez a ra stadegoù personel an implijerien hag an implij war ar wiki en e bezh',
209203 'usagestatisticsfor' => '<h2>Stadegoù implijout evit [[User:$1|$1]]</h2>',
210 - 'usagestatisticsallusers' => 'An holl implijerien',
211204 'usagestatisticsinterval' => 'Esaouenn',
212205 'usagestatisticstype' => 'Seurt',
213206 'usagestatisticsstart' => 'Deiziad kregiñ',
@@ -235,7 +228,6 @@
236229 'usagestatistics' => "Estadístiques d'ús",
237230 'usagestatistics-desc' => "Mostrar estadístiques d'ús d'usuaris individuals i globals del wiki",
238231 'usagestatisticsfor' => "<h2>Estadístiques d'ús de [[User:$1|$1]]</h2>",
239 - 'usagestatisticsallusers' => 'Tots els usuaris',
240232 'usagestatisticsinterval' => 'Interval',
241233 'usagestatisticstype' => 'Tipus',
242234 'usagestatisticsstart' => "Data d'inici",
@@ -273,7 +265,6 @@
274266 'usagestatistics' => 'Nutzungs-Statistik',
275267 'usagestatistics-desc' => 'Zeigt individuelle Benutzer- und allgemeine Wiki-Nutzungsstatistiken an',
276268 'usagestatisticsfor' => '<h2>Nutzungs-Statistik für [[User:$1|$1]]</h2>',
277 - 'usagestatisticsallusers' => 'Alle Nutzer',
278269 'usagestatisticsinterval' => 'Zeitraum',
279270 'usagestatisticstype' => 'Berechnungsart',
280271 'usagestatisticsstart' => 'Start-Datum',
@@ -297,7 +288,6 @@
298289 'usagestatistics' => 'Wužywańska statistika',
299290 'usagestatistics-desc' => 'Wužywańsku statistiku jadnotliwego wužywarja a cełego wikija pokazaś',
300291 'usagestatisticsfor' => '<h2>Wužywańska statistika za [[User:$1|$1]]</h2>',
301 - 'usagestatisticsallusers' => 'Wše wužywarje',
302292 'usagestatisticsinterval' => 'Casowy interwal',
303293 'usagestatisticstype' => 'Typ',
304294 'usagestatisticsstart' => 'Zachopny datum',
@@ -337,7 +327,6 @@
338328 'usagestatistics' => 'Statistiko de uzado',
339329 'usagestatistics-desc' => 'Montru individuan uzanton kaj ĉiun statistikon pri uzado de vikio',
340330 'usagestatisticsfor' => '<h2>Statistiko pri uzado por [[User:$1|$1]]</h2>',
341 - 'usagestatisticsallusers' => 'Ĉiuj uzantoj',
342331 'usagestatisticsinterval' => 'Intervalo',
343332 'usagestatisticstype' => 'Speco',
344333 'usagestatisticsstart' => 'Komenco-dato',
@@ -363,7 +352,6 @@
364353 'specialuserstats' => 'Käyttäjäkohtaiset tilastot',
365354 'usagestatistics' => 'Käyttäjäkohtaiset tilastot',
366355 'usagestatisticsfor' => '<h2>Käyttäjäkohtaiset tilastot ([[User:$1|$1]])</h2>',
367 - 'usagestatisticsallusers' => 'Kaikki käyttäjät',
368356 'usagestatisticsinterval' => 'Aikaväli',
369357 'usagestatisticstype' => 'Tyyppi',
370358 'usagestatisticsstart' => 'Aloituspäivä',
@@ -383,7 +371,7 @@
384372 'usagestatistics' => 'Statistiques Utilisation',
385373 'usagestatistics-desc' => 'Affiche les statistiques individuelles des utilisateurs ainsi que l’utilisation sur l’ensemble du wiki.',
386374 'usagestatisticsfor' => '<h2>Statistiques Utilisation pour [[User:$1|$1]]</h2>',
387 - 'usagestatisticsallusers' => 'Tous les utilisateurs',
 375+ 'usagestatisticsforallusers' => '<h2>Statistiques utilisation pour tous les utilisateurs</h2>',
388376 'usagestatisticsinterval' => 'Intervalle',
389377 'usagestatisticstype' => 'Type',
390378 'usagestatisticsstart' => 'Date de début',
@@ -414,7 +402,6 @@
415403 'usagestatistics' => 'Estatísticas do Uso',
416404 'usagestatistics-desc' => 'Amosar as estatíticas de uso do usuario individual e mais as do wiki en xeral',
417405 'usagestatisticsfor' => '<h2>Estatísticas de uso para [[User:$1|$1]]</h2>',
418 - 'usagestatisticsallusers' => 'Todos os Usuarios',
419406 'usagestatisticsinterval' => 'Intervalo',
420407 'usagestatisticstype' => 'Clase',
421408 'usagestatisticsstart' => 'Data de comezo',
@@ -450,7 +437,6 @@
451438 'specialuserstats' => 'Statistika upotrebe',
452439 'usagestatistics' => 'Statistika upotrebe',
453440 'usagestatisticsfor' => '<h2>Statistika upotrebe za suradnika [[User:$1|$1]]</h2>',
454 - 'usagestatisticsallusers' => 'Svi suradnici',
455441 'usagestatisticsinterval' => 'Razdoblje',
456442 'usagestatisticstype' => 'Vrsta',
457443 'usagestatisticsstart' => 'Početni datum',
@@ -469,7 +455,6 @@
470456 'usagestatistics' => 'Wužiwanska statistika',
471457 'usagestatistics-desc' => 'Statistika jednotliwych wužiwarja a cyłkownu wikijowu statistiku pokazać',
472458 'usagestatisticsfor' => '<h2>Wužiwanska statistika za [[User:$1|$1]]</h2>',
473 - 'usagestatisticsallusers' => 'Wšitcy wužiwarjo',
474459 'usagestatisticsinterval' => 'Interwal',
475460 'usagestatisticstype' => 'Typ',
476461 'usagestatisticsstart' => 'Spočatny datum',
@@ -504,7 +489,6 @@
505490 'specialuserstats' => 'Statistik olèhé nganggo',
506491 'usagestatistics' => 'Statistik olèhé nganggo',
507492 'usagestatisticsfor' => '<h2>Statistik panggunan kanggo [[User:$1|$1]]</h2>',
508 - 'usagestatisticsallusers' => 'Kabèh panganggo',
509493 'usagestatisticsinterval' => 'Interval',
510494 'usagestatisticstype' => 'Jenis',
511495 'usagestatisticsstart' => 'Tanggal wiwitan',
@@ -527,7 +511,6 @@
528512 'usagestatistics' => 'ស្ថិតិ​នៃ​ការប្រើប្រាស់',
529513 'usagestatistics-desc' => 'បង្ហាញ​ស្ថិតិ​អ្នកប្រើប្រាស់​ជាឯកត្តៈបុគ្គល និង ការប្រើប្រាស់វិគីទាំងមូល',
530514 'usagestatisticsfor' => '<h2>ស្ថិតិ​នៃ​ការប្រើប្រាស់​របស់ [[User:$1|$1]]</h2>',
531 - 'usagestatisticsallusers' => 'គ្រប់អ្នកប្រើប្រាស់',
532515 'usagestatisticsinterval' => 'ចន្លោះ',
533516 'usagestatisticstype' => 'ប្រភេទ',
534517 'usagestatisticsstart' => 'ថ្ងៃខែឆ្នាំ ចាប់ផ្តើម',
@@ -546,7 +529,6 @@
547530 'usagestatistics' => 'Benotzungs-Statistiken',
548531 'usagestatistics-desc' => 'Weis Statistike vun den indivudelle Benotzer an der allgemenger Benotzung vun der Wiki',
549532 'usagestatisticsfor' => '<h2>Benotzungs-Statistik fir [[User:$1|$1]]</h2>',
550 - 'usagestatisticsallusers' => 'All Benotzer',
551533 'usagestatisticsinterval' => 'Intervall',
552534 'usagestatisticstype' => 'Typ',
553535 'usagestatisticsstart' => 'Ufanksdatum',
@@ -573,7 +555,6 @@
574556 $messages['ml'] = array(
575557 'specialuserstats' => 'ഉപയോഗത്തിന്റെ സ്ഥിതിവിവരക്കണക്ക്',
576558 'usagestatistics' => 'ഉപയോഗത്തിന്റെ സ്ഥിതിവിവരക്കണക്ക്',
577 - 'usagestatisticsallusers' => 'എല്ലാ ഉപയോക്താക്കളും',
578559 'usagestatisticsinterval' => 'ഇടവേള',
579560 'usagestatisticstype' => 'തരം',
580561 'usagestatisticsstart' => 'തുടങ്ങുന്ന തീയ്യതി',
@@ -596,7 +577,6 @@
597578 'specialuserstats' => 'वापर सांख्यिकी',
598579 'usagestatistics' => 'वापर सांख्यिकी',
599580 'usagestatisticsfor' => '<h2>[[User:$1|$1]] ची वापर सांख्यिकी</h2>',
600 - 'usagestatisticsallusers' => 'सर्व सदस्य',
601581 'usagestatisticsinterval' => 'मध्यंतर',
602582 'usagestatisticstype' => 'प्रकार',
603583 'usagestatisticsstart' => 'सुरुवातीचा दिनांक',
@@ -621,7 +601,6 @@
622602 * @author Slomox
623603 */
624604 $messages['nds'] = array(
625 - 'usagestatisticsallusers' => 'All Brukers',
626605 'usagestatisticsinterval' => 'Tiedruum',
627606 'usagestatisticstype' => 'Typ',
628607 'usagestatisticsintervalday' => 'Dag',
@@ -639,7 +618,6 @@
640619 'usagestatistics' => 'Gebruiksstatistieken',
641620 'usagestatistics-desc' => 'Individuele en totaalstatistieken van wikigebruik weergeven',
642621 'usagestatisticsfor' => '<h2>Gebruikersstatistieken voor [[User:$1|$1]]</h2>',
643 - 'usagestatisticsallusers' => 'Alle gebruikers',
644622 'usagestatisticsinterval' => 'Onderbreking',
645623 'usagestatisticstype' => 'Type',
646624 'usagestatisticsstart' => 'Begindatum',
@@ -668,7 +646,6 @@
669647 'specialuserstats' => 'Statistikk over bruk',
670648 'usagestatistics' => 'Statistikk over bruk',
671649 'usagestatisticsfor' => '<h2>Statistikk over bruk for [[User:$1|$1]]</h2>',
672 - 'usagestatisticsallusers' => 'Alle brukarane',
673650 'usagestatisticsinterval' => 'Intervall',
674651 'usagestatisticstype' => 'Type',
675652 'usagestatisticsstart' => 'Startdato',
@@ -688,7 +665,6 @@
689666 'usagestatistics' => 'Bruksstatistikk',
690667 'usagestatistics-desc' => 'Vis statistikk for individuelle brukere og for hele wikien',
691668 'usagestatisticsfor' => '<h2>Bruksstatistikk for [[User:$1|$1]]</h2>',
692 - 'usagestatisticsallusers' => 'Alle brukere',
693669 'usagestatisticsinterval' => 'Intervall',
694670 'usagestatisticstype' => 'Type',
695671 'usagestatisticsstart' => 'Starttid',
@@ -717,7 +693,6 @@
718694 'usagestatistics' => 'Estatisticas Utilizacion',
719695 'usagestatistics-desc' => 'Aficha las estatisticas individualas dels utilizaires e mai l’utilizacion sus l’ensemble del wiki.',
720696 'usagestatisticsfor' => '<h2>Estatisticas Utilizacion per [[User:$1|$1]]</h2>',
721 - 'usagestatisticsallusers' => 'Totes los utilizaires',
722697 'usagestatisticsinterval' => 'Interval',
723698 'usagestatisticstype' => 'Tipe',
724699 'usagestatisticsstart' => 'Data de començament',
@@ -747,7 +722,6 @@
748723 'usagestatistics' => 'Statystyki',
749724 'usagestatistics-desc' => 'Pokazuje statystyki indywidualne użytkownika oraz statystyki wiki',
750725 'usagestatisticsfor' => '<h2>Statystyki użytkownika [[User:$1|$1]]</h2>',
751 - 'usagestatisticsallusers' => 'Wszyscy użytkownicy',
752726 'usagestatisticsinterval' => 'odstęp',
753727 'usagestatisticstype' => 'Typ',
754728 'usagestatisticsstart' => 'Data początkowa',
@@ -774,7 +748,6 @@
775749 $messages['ps'] = array(
776750 'specialuserstats' => 'د کارونې شمار',
777751 'usagestatistics' => 'د کارونې شمار',
778 - 'usagestatisticsallusers' => 'ټول کارونکي',
779752 'usagestatisticstype' => 'ډول',
780753 'usagestatisticsstart' => 'د پيل نېټه',
781754 'usagestatisticsend' => 'د پای نېټه',
@@ -792,7 +765,6 @@
793766 $messages['pt'] = array(
794767 'specialuserstats' => 'Estatísticas de uso',
795768 'usagestatistics' => 'Estatísticas de uso',
796 - 'usagestatisticsallusers' => 'Todos os Utilizadores',
797769 'usagestatisticsinterval' => 'Intervalo',
798770 'usagestatisticstype' => 'Tipo',
799771 'usagestatisticsstart' => 'Data de Início',
@@ -830,7 +802,6 @@
831803 'usagestatistics' => 'Štatistika používanosti',
832804 'usagestatistics-desc' => 'Zobrazenie štatistík jednotlivého používateľa a celej wiki',
833805 'usagestatisticsfor' => '<h2>Štatistika používanosti pre používateľa [[User:$1|$1]]</h2>',
834 - 'usagestatisticsallusers' => 'Všetci používatelia',
835806 'usagestatisticsinterval' => 'Interval',
836807 'usagestatisticstype' => 'Typ',
837808 'usagestatisticsstart' => 'Dátum začiatku',
@@ -861,7 +832,7 @@
862833 'usagestatistics' => 'Användarstatistik',
863834 'usagestatistics-desc' => 'Visar användningsstatistik för enskilda användare och för wikin som helhet',
864835 'usagestatisticsfor' => '<h2>Användarstatistik för [[User:$1|$1]]</h2>',
865 - 'usagestatisticsallusers' => 'Alla användare',
 836+ 'usagestatisticsforallusers' => '<h2>Användarstatistik för alla användare</h2>',
866837 'usagestatisticsinterval' => 'Intervall',
867838 'usagestatisticstype' => 'Typ',
868839 'usagestatisticsstart' => 'Startdatum',
@@ -890,7 +861,6 @@
891862 'specialuserstats' => 'వాడుక గణాంకాలు',
892863 'usagestatistics' => 'వాడుక గణాంకాలు',
893864 'usagestatisticsfor' => '<h2>[[User:$1|$1]] కు వాడుక గణాంకాలు</h2>',
894 - 'usagestatisticsallusers' => 'వాడుకరులందరూ',
895865 'usagestatisticsinterval' => 'సమయాంతరం',
896866 'usagestatisticstype' => 'రకం',
897867 'usagestatisticsstart' => 'ప్రారంభ తేదీ',
@@ -911,7 +881,6 @@
912882 $messages['tg-cyrl'] = array(
913883 'specialuserstats' => 'Омори истифода',
914884 'usagestatistics' => 'Омори истифода',
915 - 'usagestatisticsallusers' => 'Ҳамаи корбарон',
916885 'usagestatisticsinterval' => 'Фосила',
917886 'usagestatisticstype' => 'Навъ',
918887 'usagestatisticsstart' => 'Таърихи оғоз',
@@ -934,7 +903,6 @@
935904 * @author Karduelis
936905 */
937906 $messages['tr'] = array(
938 - 'usagestatisticsallusers' => 'Bütün kullanıcılar',
939907 'usagestatisticsinterval' => 'Zaman',
940908 'usagestatisticsstart' => 'Başlangıç tarihi',
941909 'usagestatisticsend' => 'Bitiş tarihi',
@@ -947,7 +915,6 @@
948916 'specialuserstats' => 'Thống kê sử dụng',
949917 'usagestatistics' => 'Thống kê sử dụng',
950918 'usagestatisticsfor' => '<h2>Thống kê sử dụng về [[User:$1|$1]]</h2>',
951 - 'usagestatisticsallusers' => 'Mọi người dùng',
952919 'usagestatisticstype' => 'Loại',
953920 'usagestatisticsstart' => 'Ngày đầu',
954921 'usagestatisticsend' => 'Ngày cuối',
@@ -962,7 +929,6 @@
963930 * @author Malafaya
964931 */
965932 $messages['vo'] = array(
966 - 'usagestatisticsallusers' => 'Gebans Valik',
967933 'usagestatisticssubmit' => 'Jafön Statitis',
968934 'usagestatisticsintervalday' => 'Del',
969935 'usagestatisticsintervalweek' => 'Vig',
Index: trunk/extensions/UsageStatistics/SpecialUserStats.php
@@ -12,16 +12,15 @@
1313 */
1414
1515 $wgExtensionCredits['specialpage'][] = array(
16 - 'name' => 'UserStats',
17 - 'version' => 'v1.7',
18 - 'author' => 'Paul Grinberg',
19 - 'email' => 'gri6507 at yahoo dot com',
20 - 'url' => 'http://www.mediawiki.org/wiki/Extension:Usage_Statistics',
21 - 'description' => 'Show individual user and overall wiki usage statistics',
22 - 'descriptionmsg' => 'usagestatistics-desc',
 16+ 'name' => 'UserStats',
 17+ 'version' => 'v1.8',
 18+ 'author' => 'Paul Grinberg',
 19+ 'email' => 'gri6507 at yahoo dot com',
 20+ 'url' => 'http://www.mediawiki.org/wiki/Extension:Usage_Statistics',
 21+ 'description' => 'Show individual user and overall wiki usage statistics',
 22+ 'descriptionmsg' => 'usagestatistics-desc',
2323 );
2424
25 -
2625 $wgUserStatsGlobalRight = 'viewsystemstats';
2726 $wgAvailableRights[] = 'viewsystemstats';
2827
@@ -32,6 +31,6 @@
3332
3433 $dir = dirname(__FILE__) . '/';
3534 $wgExtensionMessagesFiles['UserStats'] = $dir . '/SpecialUserStats.i18n.php';
 35+$wgExtensionAliasesFiles['UserStats'] = $dir . 'UserStats.alias.php';
3636 $wgAutoloadClasses['SpecialUserStats'] = $dir . '/SpecialUserStats_body.php';
37 -$wgSpecialPages['SpecialUserStats'] = 'SpecialUserStats';
38 -
 37+$wgSpecialPages['UserStats'] = 'SpecialUserStats';
Index: trunk/extensions/UsageStatistics/SpecialUserStats.alias.php
@@ -0,0 +1,14 @@
 2+<?php
 3+/**
 4+ * Aliases for special pages
 5+ *
 6+ */
 7+
 8+$aliases = array();
 9+
 10+/** English
 11+ * @author Paul Grinberg
 12+ */
 13+$aliases['en'] = array(
 14+ 'UserStats' => array( 'UserStats', 'SpecialUserStats' ),
 15+);
Property changes on: trunk/extensions/UsageStatistics/SpecialUserStats.alias.php
___________________________________________________________________
Added: svn:eol-style
116 + native
Added: svn:keywords
217 + Id

Follow-up revisions

RevisionCommit summaryAuthorDate
r39172Add Dutch translation for special page...siebrand19:56, 11 August 2008

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r39170(bug 13056) Fix for missing message (spotted by Lejonel)...siebrand19:32, 11 August 2008

Status & tagging log