r85729 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r85728‎ | r85729 | r85730 >
Date:17:51, 9 April 2011
Author:foxtrott
Status:deferred
Tags:
Comment:
followup r85719: separated messages and special page aliases to enable i18n
Modified paths:
  • /trunk/extensions/SemanticGlossary/SemanticGlossary.i18n.php (modified) (history)
  • /trunk/extensions/SemanticGlossary/SemanticGlossaryAliases.php (added) (history)

Diff [purge]

Index: trunk/extensions/SemanticGlossary/SemanticGlossaryAliases.php
@@ -0,0 +1,20 @@
 2+<?php
 3+/**
 4+ * Special page aliases for Semantic Glossary
 5+ */
 6+
 7+$specialPageAliases = array();
 8+
 9+/** English
 10+ * @author F.trott
 11+ */
 12+$specialPageAliases['en'] = array(
 13+ 'SemanticGlossaryBrowser' => array( 'Glossary' ),
 14+);
 15+
 16+/** German (Deutsch)
 17+ * @author F.trott
 18+ */
 19+$specialPageAliases['de'] = array(
 20+ 'SemanticGlossaryBrowser' => array( 'Glossar' ),
 21+);
Property changes on: trunk/extensions/SemanticGlossary/SemanticGlossaryAliases.php
___________________________________________________________________
Added: svn:eol-style
122 + native
Index: trunk/extensions/SemanticGlossary/SemanticGlossary.i18n.php
@@ -4,7 +4,6 @@
55 */
66
77 $messages = array();
8 -$specialPageAliases = array();
98
109 /** English
1110 * @author F.trott
@@ -35,10 +34,6 @@
3635
3736 );
3837
39 -$specialPageAliases['en'] = array(
40 - 'SemanticGlossaryBrowser' => array( 'Glossary' ),
41 -);
42 -
4338 /** Message documentation (Message documentation)
4439 * @author F.trott
4540 */
@@ -46,6 +41,9 @@
4742 'semanticglossary-desc' => '{{desc}}',
4843 );
4944
 45+/** German (Deutsch)
 46+ * @author F.trott
 47+ */
5048 $messages['de'] = array(
5149 'semanticglossary-desc' => 'A terminology markup extension with a [http://semantic-mediawiki.org Semantic MediaWiki] backend',
5250 'semanticglossary-browsertitle' => 'Glossar',
@@ -62,8 +60,3 @@
6361 '___glt' => 'Glossar-Term',
6462 '___gld' => 'Glossar-Definition',
6563 );
66 -
67 -$specialPageAliases['de'] = array(
68 - 'SemanticGlossaryBrowser' => array( 'Glossar' ),
69 -);
70 -

Follow-up revisions

RevisionCommit summaryAuthorDate
r85730Follow-up r85729: standard naming for file with special page aliases and regi...siebrand17:58, 9 April 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r85719extension creationfoxtrott13:26, 9 April 2011

Status & tagging log