r23710 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23709‎ | r23710 | r23711 >
Date:13:07, 4 July 2007
Author:erik
Status:old
Tags:
Comment:
- All special pages now have names
- Hide Special:Select, since it's only called from JS
- Consistently begin names with "Wikidata:"
Modified paths:
  • /trunk/extensions/Wikidata/OmegaWiki/SpecialAddCollection.php (modified) (history)
  • /trunk/extensions/Wikidata/OmegaWiki/SpecialConceptMapping.php (modified) (history)
  • /trunk/extensions/Wikidata/OmegaWiki/SpecialImportLangNames.php (modified) (history)
  • /trunk/extensions/Wikidata/OmegaWiki/SpecialNeedsTranslation.php (modified) (history)
  • /trunk/extensions/Wikidata/OmegaWiki/SpecialSelect.php (modified) (history)
  • /trunk/extensions/Wikidata/OmegaWiki/SpecialTransaction.php (modified) (history)
  • /trunk/extensions/Wikidata/SpecialLanguages.i18n.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Wikidata/SpecialLanguages.i18n.php
@@ -9,21 +9,21 @@
1010
1111 $wgLanguageManagerMessages['en'] = array(
1212 'langman_title' => 'Language manager',
13 - 'languages'=>'Language manager',
 13+ 'languages'=>'Wikidata: Language manager',
1414 );
1515 $wgLanguageManagerMessages['de'] = array(
1616 'langman_title' => 'Sprachmanager',
1717 );
1818 $wgLanguageManagerMessages['fr'] = array(
1919 'langman_title' => 'Gestion des langues',
20 - 'languages' => 'Gestion des langues',
 20+ 'languages' => 'Wikidata: Gestion des langues',
2121 );
2222 $wgLanguageManagerMessages['he'] = array(
2323 'langman_title' => 'מנהל שפות',
2424 );
2525 $wgLanguageManagerMessages['id'] = array(
2626 'langman_title' => 'Pengelola bahasa',
27 - 'languages'=>'Pengelola bahasa',
 27+ 'languages'=>'Wikidata: Pengelola bahasa',
2828 );
2929 $wgLanguageManagerMessages['kk-kz'] = array(
3030 'langman_title' => 'Тілдерді меңгеру',
Index: trunk/extensions/Wikidata/OmegaWiki/SpecialImportLangNames.php
@@ -9,7 +9,7 @@
1010 function wfSpecialImportLangNames() {
1111
1212 global $wgMessageCache;
13 - $wgMessageCache->addMessages(array('importlangnames'=>'Import language names'),'en');
 13+ $wgMessageCache->addMessages(array('importlangnames'=>'Wikidata: Import language names'),'en');
1414
1515 class SpecialImportLangNames extends SpecialPage {
1616 function SpecialImportLangNames() {
Index: trunk/extensions/Wikidata/OmegaWiki/SpecialAddCollection.php
@@ -9,6 +9,9 @@
1010 $wgExtensionFunctions[] = 'wfSpecialAddCollection';
1111
1212 function wfSpecialAddCollection() {
 13+ global $wgMessageCache;
 14+ $wgMessageCache->addMessages(array('addcollection'=>'Wikidata: Add collection'),'en');
 15+
1316 class SpecialAddCollection extends SpecialPage {
1417 function SpecialAddCollection() {
1518 SpecialPage::SpecialPage('AddCollection');
Index: trunk/extensions/Wikidata/OmegaWiki/SpecialNeedsTranslation.php
@@ -7,7 +7,7 @@
88
99 function wfSpecialNeedsTranslation() {
1010 global $wgMessageCache;
11 - $wgMessageCache->addMessages(array('needstranslation'=>'Expressions needing translation'),'en');
 11+ $wgMessageCache->addMessages(array('needstranslation'=>'Wikidata: Expressions needing translation'),'en');
1212
1313 class SpecialNeedsTranslation extends SpecialPage {
1414 function SpecialNeedsTranslation() {
Index: trunk/extensions/Wikidata/OmegaWiki/SpecialSelect.php
@@ -9,7 +9,7 @@
1010 function wfSpecialSelect() {
1111 class SpecialSelect extends SpecialPage {
1212 function SpecialSelect() {
13 - SpecialPage::SpecialPage('Select');
 13+ SpecialPage::SpecialPage('Select','UnlistedSpecialPage');
1414 }
1515
1616 function execute( $par ) {
Index: trunk/extensions/Wikidata/OmegaWiki/SpecialTransaction.php
@@ -8,7 +8,7 @@
99
1010 function wfSpecialTransaction() {
1111 global $wgMessageCache;
12 - $wgMessageCache->addMessages(array('transaction'=>'Transaction log'),'en');
 12+ $wgMessageCache->addMessages(array('transaction'=>'Wikidata: Transaction log'),'en');
1313
1414 class SpecialTransaction extends SpecialPage {
1515 function SpecialTransaction() {
Index: trunk/extensions/Wikidata/OmegaWiki/SpecialConceptMapping.php
@@ -21,6 +21,9 @@
2222 # Add messages
2323 #require_once "$IP/includes/SpecialPage.php";
2424
 25+ global $wgMessageCache;
 26+ $wgMessageCache->addMessages(array('conceptmapping'=>'Wikidata: Concept mapping'),'en');
 27+
2528 require_once("Wikidata.php");
2629 require_once("WikiDataAPI.php");
2730 class SpecialConceptMapping extends SpecialPage {

Status & tagging log