r73340 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r73339‎ | r73340 | r73341 >
Date:21:17, 19 September 2010
Author:siebrand
Status:deferred
Tags:
Comment:
Heaviliy simplify i18n for messages and special page aliases.
Modified paths:
  • /trunk/extensions/RDFIO/RDFIO.alias.php (added) (history)
  • /trunk/extensions/RDFIO/RDFIO.i18n.php (added) (history)
  • /trunk/extensions/RDFIO/RDFIO.php (modified) (history)
  • /trunk/extensions/RDFIO/specials/SpecialARC2Admin.alias.php (deleted) (history)
  • /trunk/extensions/RDFIO/specials/SpecialARC2Admin.i18n.php (deleted) (history)
  • /trunk/extensions/RDFIO/specials/SpecialARC2Admin_body.php (modified) (history)
  • /trunk/extensions/RDFIO/specials/SpecialRDFImport.alias.php (deleted) (history)
  • /trunk/extensions/RDFIO/specials/SpecialRDFImport.i18n.php (deleted) (history)
  • /trunk/extensions/RDFIO/specials/SpecialRDFImport_body.php (modified) (history)
  • /trunk/extensions/RDFIO/specials/SpecialSPARQLEndpoint.alias.php (deleted) (history)
  • /trunk/extensions/RDFIO/specials/SpecialSPARQLEndpoint.i18n.php (deleted) (history)
  • /trunk/extensions/RDFIO/specials/SpecialSPARQLEndpoint_body.php (modified) (history)
  • /trunk/extensions/Translate/groups/mediawiki-defines.txt (modified) (history)

Diff [purge]

Index: trunk/extensions/RDFIO/RDFIO.alias.php
@@ -0,0 +1,21 @@
 2+<?php
 3+/**
 4+ * Aliases for special pages
 5+ *
 6+ * @file
 7+ * @ingroup Extensions
 8+ */
 9+
 10+$specialPageAliases = array();
 11+
 12+/** English */
 13+$specialPageAliases['en'] = array(
 14+ 'SPARQLEndpoint' => array( 'SPARQLEndpoint' ),
 15+ 'SpecialARC2Admin' => array( 'ARC2Admin' ),
 16+ 'RDFImport' => array( 'RDFImport' ),
 17+);
 18+
 19+/**
 20+ * For backwards compatibility with MediaWiki 1.15 and earlier.
 21+ */
 22+$aliases =& $specialPageAliases;
Property changes on: trunk/extensions/RDFIO/RDFIO.alias.php
___________________________________________________________________
Added: svn:eol-style
123 + native
Added: svn:keywords
224 + Id
Index: trunk/extensions/RDFIO/specials/SpecialARC2Admin.alias.php
@@ -1,7 +0,0 @@
2 -<?php
3 -$aliases = array();
4 -
5 -/** English */
6 -$aliases['en'] = array(
7 - 'SpecialARC2Admin' => array( 'ARC2Admin' ),
8 -);
Index: trunk/extensions/RDFIO/specials/SpecialSPARQLEndpoint.alias.php
@@ -1,8 +0,0 @@
2 -<?php
3 -$aliases = array();
4 -
5 -/** English */
6 -$aliases['en'] = array(
7 - 'SPARQLEndpoint' => array( 'SPARQLEndpoint' ),
8 -);
9 -
Index: trunk/extensions/RDFIO/specials/SpecialARC2Admin.i18n.php
@@ -1,24 +0,0 @@
2 -<?php
3 -$messages = array();
4 -
5 -$messages['en'] = array(
6 - 'specialarc2admin' => 'ARC2 RDF Store admin page',
7 - 'rdfio-arc2admin-desc' => 'Administration page for the ARC2 RDF Store for Semantic MediaWiki',
8 -);
9 -
10 -/** German (Deutsch)
11 - * @author Kghbln
12 - */
13 -$messages['de'] = array(
14 - 'specialarc2admin' => '„ARC2 RDF“-Speicher-Administrationsseite',
15 - 'rdfio-arc2admin-desc' => 'Stellt eine Administrationsseite für den „ARC2 RDF“-Speicher von Semantic MediaWiki zur Verfügung',
16 -);
17 -
18 -/** Macedonian (Македонски)
19 - * @author Bjankuloski06
20 - */
21 -$messages['mk'] = array(
22 - 'specialarc2admin' => 'Администраторска страница на ARC2 RDF Store',
23 - 'rdfio-arc2admin-desc' => 'Административна страница за ARC2 RDF Store за семантички МедијаВики',
24 -);
25 -
Index: trunk/extensions/RDFIO/specials/SpecialRDFImport.alias.php
@@ -1,8 +0,0 @@
2 -<?php
3 -$aliases = array();
4 -
5 -/** English */
6 -$aliases['en'] = array(
7 - 'RDFImport' => array( 'RDFImport' ),
8 -);
9 -
Index: trunk/extensions/RDFIO/specials/SpecialSPARQLEndpoint.i18n.php
@@ -1,25 +0,0 @@
2 -<?php
3 -
4 -$messages = array();
5 -
6 -$messages['en'] = array(
7 - 'sparqlendpoint' => 'SPARQL Endpoint',
8 - 'rdfio-sparqlendpoint-desc' => 'A SPARQL Endpoint provided by the SMWRDFConnector',
9 -);
10 -
11 -/** German (Deutsch)
12 - * @author Kghbln
13 - */
14 -$messages['de'] = array(
15 - 'sparqlendpoint' => 'SPARQL-Anknüpfung',
16 - 'rdfio-sparqlendpoint-desc' => 'Stellt eine SPARQL-Anknüpfung für den SMWRDFConnector bereit',
17 -);
18 -
19 -/** Macedonian (Македонски)
20 - * @author Bjankuloski06
21 - */
22 -$messages['mk'] = array(
23 - 'sparqlendpoint' => 'SPARQL - кориснички дел',
24 - 'rdfio-sparqlendpoint-desc' => 'Кориснички дел на SPARQL со поддршка од SMWRDFConnector',
25 -);
26 -
Index: trunk/extensions/RDFIO/specials/SpecialRDFImport.i18n.php
@@ -1,32 +0,0 @@
2 -<?php
3 -$messages = array();
4 -
5 -$messages['en'] = array(
6 - 'rdfimport' => 'RDF Import',
7 - 'rdfio-rdfimport-desc' => 'A Special page to import semantic data in RDF/XML format',
8 -);
9 -
10 -/** German (Deutsch)
11 - * @author Kghbln
12 - */
13 -$messages['de'] = array(
14 - 'rdfimport' => 'RDF-Import',
15 - 'rdfio-rdfimport-desc' => 'Stellt eine Spezialseite zum Import semantischer Daten im RDF/XML-Format zur Verfügung',
16 -);
17 -
18 -/** Macedonian (Македонски)
19 - * @author Bjankuloski06
20 - */
21 -$messages['mk'] = array(
22 - 'rdfimport' => 'Увоз - RDF',
23 - 'rdfio-rdfimport-desc' => 'Специјална страница за увоз на семантички податоци во RDF/XML формат',
24 -);
25 -
26 -/** Russian (Русский)
27 - * @author MaxSem
28 - */
29 -$messages['ru'] = array(
30 - 'rdfimport' => 'Импорт RDF',
31 - 'rdfio-rdfimport-desc' => 'Специальная страница для импорта семантических данных в формате RDF/XML',
32 -);
33 -
Index: trunk/extensions/RDFIO/specials/SpecialARC2Admin_body.php
@@ -19,7 +19,7 @@
2020 }
2121
2222 parent::__construct( 'SpecialARC2Admin' );
23 - wfLoadExtensionMessages( 'SpecialARC2Admin' );
 23+ wfLoadExtensionMessages( 'RDFIO' );
2424 }
2525
2626 function execute( $par ) {
Index: trunk/extensions/RDFIO/specials/SpecialSPARQLEndpoint_body.php
@@ -20,7 +20,7 @@
2121 global $wgUser, $rdfiogQueryByOrigURI;
2222
2323 parent::__construct( 'SPARQLEndpoint' );
24 - wfLoadExtensionMessages( 'SPARQLEndpoint' );
 24+ wfLoadExtensionMessages( 'RDFIO' );
2525 $this->m_sparqlendpointconfig = $this->getSPARQLEndpointConfig();
2626 $this->m_sparqlendpoint = ARC2::getStoreEndpoint( $this->m_sparqlendpointconfig );
2727 $this->m_sparqlparser = ARC2::getSPARQLPlusParser();
Index: trunk/extensions/RDFIO/specials/SpecialRDFImport_body.php
@@ -22,7 +22,7 @@
2323 $this->m_haswriteaccess = false;
2424 }
2525 parent::__construct( 'RDFImport' );
26 - wfLoadExtensionMessages( 'RDFImport' );
 26+ wfLoadExtensionMessages( 'RDFIO' );
2727 }
2828
2929 function execute( $par ) {
Index: trunk/extensions/RDFIO/RDFIO.i18n.php
@@ -0,0 +1,52 @@
 2+<?php
 3+/**
 4+ * Internationalisation file for extension RDFIO.
 5+ *
 6+ * @file
 7+ * @ingroup Extensions
 8+*/
 9+
 10+$messages = array();
 11+
 12+$messages['en'] = array(
 13+ 'rdfio-desc' => 'Extended RDF Import/Export functionality, including SPARQL endpoint, for Semantic MediaWiki',
 14+ 'rdfimport' => 'RDF Import',
 15+ 'rdfio-arc2admin-desc' => 'Administration page for the ARC2 RDF Store for Semantic MediaWiki',
 16+ 'rdfio-rdfimport-desc' => 'A Special page to import semantic data in RDF/XML format',
 17+ 'rdfio-sparqlendpoint-desc' => 'A SPARQL Endpoint provided by the SMWRDFConnector',
 18+ 'sparqlendpoint' => 'SPARQL Endpoint',
 19+ 'specialarc2admin' => 'ARC2 RDF Store admin page',
 20+);
 21+
 22+/** German (Deutsch)
 23+ * @author Kghbln
 24+ */
 25+$messages['de'] = array(
 26+ 'rdfimport' => 'RDF-Import',
 27+ 'rdfio-arc2admin-desc' => 'Stellt eine Administrationsseite für den „ARC2 RDF“-Speicher von Semantic MediaWiki zur Verfügung',
 28+ 'rdfio-rdfimport-desc' => 'Stellt eine Spezialseite zum Import semantischer Daten im RDF/XML-Format zur Verfügung',
 29+ 'rdfio-sparqlendpoint-desc' => 'Stellt eine SPARQL-Anknüpfung für den SMWRDFConnector bereit',
 30+ 'sparqlendpoint' => 'SPARQL-Anknüpfung',
 31+ 'specialarc2admin' => '„ARC2 RDF“-Speicher-Administrationsseite',
 32+);
 33+
 34+/** Macedonian (Македонски)
 35+ * @author Bjankuloski06
 36+ */
 37+$messages['mk'] = array(
 38+ 'rdfimport' => 'Увоз - RDF',
 39+ 'rdfio-arc2admin-desc' => 'Административна страница за ARC2 RDF Store за семантички МедијаВики',
 40+ 'rdfio-rdfimport-desc' => 'Специјална страница за увоз на семантички податоци во RDF/XML формат',
 41+ 'rdfio-sparqlendpoint-desc' => 'Кориснички дел на SPARQL со поддршка од SMWRDFConnector',
 42+ 'sparqlendpoint' => 'SPARQL - кориснички дел',
 43+ 'specialarc2admin' => 'Администраторска страница на ARC2 RDF Store',
 44+
 45+);
 46+
 47+/** Russian (Русский)
 48+ * @author MaxSem
 49+ */
 50+$messages['ru'] = array(
 51+ 'rdfimport' => 'Импорт RDF',
 52+ 'rdfio-rdfimport-desc' => 'Специальная страница для импорта семантических данных в формате RDF/XML',
 53+);
Property changes on: trunk/extensions/RDFIO/RDFIO.i18n.php
___________________________________________________________________
Added: svn:eol-style
154 + native
Added: svn:keywords
255 + Id
Index: trunk/extensions/RDFIO/RDFIO.php
@@ -19,10 +19,17 @@
2020 'version' => RDFIO_VERSION,
2121 'author' => '[http://saml.rilspace.org Samuel Lampa]',
2222 'url' => 'http://www.mediawiki.org/wiki/Extension:RDFIO',
23 - 'description' => 'Extended RDF Import/Export functionality, including SPARQL endpoint, for Semantic MediaWiki'
 23+ 'descriptionmsg' => 'rdfio-desc',
2424 );
2525
2626 /****************************
 27+ * i18n
 28+ ****************************/
 29+$dir = dirname( __FILE__ ) . '/';
 30+$wgExtensionMessagesFiles['RDFIO'] = $dir . 'RDFIO.i18n.php';
 31+$wgExtensionAliasesFiles['RDFIO'] = $dir . 'RDFIO.alias.php';
 32+
 33+/****************************
2734 * ARC2 RDF library for PHP *
2835 ****************************/
2936
Index: trunk/extensions/Translate/groups/mediawiki-defines.txt
@@ -906,21 +906,10 @@
907907 Random Users With Avatars
908908 descmsg = random-users-avatars-desc
909909
910 -RDFIO - ARC2Admin
 910+RDFIO
911911 descmsg = rdfio-arc2admin-desc
912 -file = RDFIO/specials/SpecialARC2Admin.i18n.php
913 -aliasfile = RDFIO/specials/SpecialARC2Admin.alias.php
 912+aliasfile = RDFIO/RDFIO.alias.php
914913
915 -RDFIO - RDF Import
916 -descmsg = rdfio-arc2admin-desc
917 -file = RDFIO/specials/SpecialRDFImport.i18n.php
918 -aliasfile = RDFIO/specials/SpecialRDFImport.alias.php
919 -
920 -RDFIO - SPARQL Endpoint
921 -descmsg = rdfio-sparqlendpoint-desc
922 -file = RDFIO/specials/SpecialSPARQLEndpoint.i18n.php
923 -aliasfile = RDFIO/specials/SPARQLEndpoint.alias.php
924 -
925914 Reader Feedback
926915 id = ext-readerfeedback-readerfeedback
927916 file = ReaderFeedback/language/ReaderFeedback.i18n.php

Status & tagging log