r73638 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r73637‎ | r73638 | r73639 >
Date:20:12, 23 September 2010
Author:tomasz
Status:deferred
Tags:
Comment:
Syncing to head of trunk at r73633
Modified paths:
  • /branches/wmf/1.16wmf4/extensions/VariablePage (modified) (history)
  • /branches/wmf/1.16wmf4/extensions/VariablePage/VariablePage.alias.php (added) (history)
  • /branches/wmf/1.16wmf4/extensions/VariablePage/VariablePage.body.php (modified) (history)
  • /branches/wmf/1.16wmf4/extensions/VariablePage/VariablePage.i18n.php (modified) (history)
  • /branches/wmf/1.16wmf4/extensions/VariablePage/VariablePage.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.16wmf4/extensions/VariablePage/VariablePage.alias.php
@@ -0,0 +1,15 @@
 2+<?php
 3+/**
 4+ * Aliases for special pages of VariablePage extension.
 5+ *
 6+ * @file
 7+ */
 8+
 9+$specialPageAliases = array();
 10+
 11+/** English
 12+ * @author Nike
 13+ */
 14+$specialPageAliases['en'] = array(
 15+ 'VariablePage' => array( 'VariablePage' ),
 16+);
Property changes on: branches/wmf/1.16wmf4/extensions/VariablePage/VariablePage.alias.php
___________________________________________________________________
Added: svn:eol-style
117 + native
Index: branches/wmf/1.16wmf4/extensions/VariablePage/VariablePage.body.php
@@ -11,7 +11,7 @@
1212 }
1313 }
1414
15 - public function execute() {
 15+ public function execute( $par ) {
1616 global $wgOut, $wgRequest;
1717 global $wgVariablePagePossibilities;
1818
@@ -51,7 +51,7 @@
5252 * We use a # larger than 100 to increase 'randomness'
5353 */
5454 $random_number = mt_rand( 0, 100*100 );
55 - $offset = 0;
 55+ $offset = 0;
5656
5757 foreach ( $page_possibilities as $url => $probability ) {
5858 $offset += $probability * 100;
Index: branches/wmf/1.16wmf4/extensions/VariablePage/VariablePage.i18n.php
@@ -29,6 +29,8 @@
3030 * @author Kghbln
3131 */
3232 $messages['de'] = array(
 33+ 'variablepage' => 'VariablePage',
 34+ 'variablepage-navlink_text' => 'Spenden',
3335 'variablepage-desc' => 'Ermöglicht ressourcenschonende variable Weiterleitungen von Wikiseiten',
3436 );
3537
@@ -43,6 +45,8 @@
4446 * @author Toliño
4547 */
4648 $messages['gl'] = array(
 49+ 'variablepage' => 'Páxina variable',
 50+ 'variablepage-navlink_text' => 'Doar',
4751 'variablepage-desc' => 'Redirección lixeira de páxina variable',
4852 );
4953
@@ -85,6 +89,8 @@
8690 * @author Bjankuloski06
8791 */
8892 $messages['mk'] = array(
 93+ 'variablepage' => 'ПроменливаСтраница',
 94+ 'variablepage-navlink_text' => 'Донирајте',
8995 'variablepage-desc' => 'Леко променливо пренасочување на страници',
9096 );
9197
@@ -92,6 +98,8 @@
9399 * @author Siebrand
94100 */
95101 $messages['nl'] = array(
 102+ 'variablepage' => 'Variabele pagina',
 103+ 'variablepage-navlink_text' => 'Donaties',
96104 'variablepage-desc' => "Lichtgewicht variabele doorverwijzing voor pagina's",
97105 );
98106
@@ -99,6 +107,8 @@
100108 * @author Sp5uhe
101109 */
102110 $messages['pl'] = array(
 111+ 'variablepage' => 'Zmienna strona',
 112+ 'variablepage-navlink_text' => 'Darowizny',
103113 'variablepage-desc' => 'Prosta strona przekierowująca losowo',
104114 );
105115
@@ -106,6 +116,8 @@
107117 * @author Dragonòt
108118 */
109119 $messages['pms'] = array(
 120+ 'variablepage' => 'PàginaVariabla',
 121+ 'variablepage-navlink_text' => 'Doné',
110122 'variablepage-desc' => 'Rediression ëd pàgina variàbila ëd peis linger',
111123 );
112124
@@ -113,6 +125,8 @@
114126 * @author Hamilton Abreu
115127 */
116128 $messages['pt'] = array(
 129+ 'variablepage' => 'Página Variável',
 130+ 'variablepage-navlink_text' => 'Donativo',
117131 'variablepage-desc' => 'Redireccionamento ligeiro de páginas variáveis',
118132 );
119133
@@ -120,6 +134,8 @@
121135 * @author Giro720
122136 */
123137 $messages['pt-br'] = array(
 138+ 'variablepage' => 'VariablePage',
 139+ 'variablepage-navlink_text' => 'Doar',
124140 'variablepage-desc' => 'Redirecionamento ligeiro de páginas variáveis',
125141 );
126142
@@ -127,6 +143,8 @@
128144 * @author Александр Сигачёв
129145 */
130146 $messages['ru'] = array(
 147+ 'variablepage' => 'ПеременнаяСтраница',
 148+ 'variablepage-navlink_text' => 'Пожертвовать',
131149 'variablepage-desc' => 'Простое перенаправление на различные страницы',
132150 );
133151
Index: branches/wmf/1.16wmf4/extensions/VariablePage/VariablePage.php
@@ -12,7 +12,7 @@
1313 exit( 1 );
1414 }
1515
16 -$wgExtensionCredits[ 'VariablePage' ][] = array(
 16+$wgExtensionCredits['specialpage'][] = array(
1717 'path' => __FILE__,
1818 'name' => 'VariablePage',
1919 'version' => '0.1',
@@ -66,6 +66,7 @@
6767
6868 $wgAutoloadClasses[ 'SpecialVariablePage' ] = $dir . 'VariablePage.body.php';
6969 $wgExtensionMessagesFiles[ 'VariablePage' ] = $dir . 'VariablePage.i18n.php';
 70+$wgExtensionAliasesFiles[ 'VariablePage' ] = $dir . 'VariablePage.alias.php';
7071 $wgSpecialPages[ 'VariablePage' ] = 'SpecialVariablePage';
7172 $wgSpecialPageGroups[ 'VariablePage' ] = 'contribution';
7273
@@ -78,10 +79,10 @@
7980
8081 // make sure that we should be showing a sidebar link
8182 if ( $wgVariablePageShowSidebarLink ) {
82 - $url = Title::makeTitle( NS_SPECIAL, wfMsg( 'variablepage' ) )->getLocalUrl();
 83+ $title = SpecialPage::getTitleFor( 'VariablePage' );
8384 $bar['navigation'][] = array(
8485 'text' => wfMsg( 'variablepage-navlink_text' ),
85 - 'href' => wfAppendQuery( $url, $wgVariablePageSidebarLinkQuery ),
 86+ 'href' => $title->getLocalUrl( $wgVariablePageSidebarLinkQuery ),
8687 'id' => 'n-variablepage',
8788 'active' => true,
8889 );
Property changes on: branches/wmf/1.16wmf4/extensions/VariablePage
___________________________________________________________________
Modified: svn:mergeinfo
8990 Merged /trunk/extensions/VariablePage:r73622-73633

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r73633Follow-up r73631: Add alias file to Translate...raymond19:38, 23 September 2010

Status & tagging log