r96421 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r96420‎ | r96421 | r96422 >
Date:12:28, 7 September 2011
Author:siebrand
Status:reverted
Tags:
Comment:
Revert file removal from r96413 and add $wgExtensionAliasesFiles so SphinxSearch.alias.php is used.
Revert r96419 which removed L10n support for SphinxSearch special page aliases.
Modified paths:
  • /trunk/extensions/SphinxSearch/SphinxSearch.alias.php (added) (history)
  • /trunk/extensions/SphinxSearch/SphinxSearch.php (modified) (history)
  • /trunk/extensions/Translate/groups/mediawiki-defines.txt (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/groups/mediawiki-defines.txt
@@ -1378,6 +1378,7 @@
13791379 descmsg = filelist-desc
13801380
13811381 Sphinx Search
 1382+aliasfile = SphinxSearch/SphinxSearch.alias.php
13821383
13831384 Special Talk
13841385
Index: trunk/extensions/SphinxSearch/SphinxSearch.php
@@ -23,6 +23,7 @@
2424
2525 $wgAutoloadClasses[ 'SphinxMWSearch' ] = $dir . 'SphinxMWSearch.php';
2626 $wgExtensionMessagesFiles['SphinxSearch'] = $dir . 'SphinxSearch.i18n.php';
 27+$wgExtensionAliasesFiles['SphinxSearch'] = $dir . 'SphinxSearch.alias.php';
2728
2829 # To completely disable the default search and replace it with SphinxSearch,
2930 # set this BEFORE including SphinxSearch.php in LocalSettings.php
Index: trunk/extensions/SphinxSearch/SphinxSearch.alias.php
@@ -0,0 +1,55 @@
 2+<?php
 3+
 4+/**
 5+ * Aliases for special pages
 6+ *
 7+ * @file
 8+ * @ingroup Extensions
 9+ */
 10+
 11+$specialPageAliases = array();
 12+
 13+/** English (English) */
 14+$specialPageAliases['en'] = array(
 15+ 'SphinxSearch' => array( 'SphinxSearch' ),
 16+);
 17+
 18+/** Arabic (العربية) */
 19+$specialPageAliases['ar'] = array(
 20+ 'SphinxSearch' => array( 'بحث_سفنكس' ),
 21+);
 22+
 23+/** Haitian (Kreyòl ayisyen) */
 24+$specialPageAliases['ht'] = array(
 25+ 'SphinxSearch' => array( 'ChacheSphinks' ),
 26+);
 27+
 28+/** Interlingua (Interlingua) */
 29+$specialPageAliases['ia'] = array(
 30+ 'SphinxSearch' => array( 'Recerca_Sphinx' ),
 31+);
 32+
 33+/** Japanese (日本語) */
 34+$specialPageAliases['ja'] = array(
 35+ 'SphinxSearch' => array( 'Sphinx検索' ),
 36+);
 37+
 38+/** Luxembourgish (Lëtzebuergesch) */
 39+$specialPageAliases['lb'] = array(
 40+ 'SphinxSearch' => array( 'Sphinx_Sich' ),
 41+);
 42+
 43+/** Macedonian (Македонски) */
 44+$specialPageAliases['mk'] = array(
 45+ 'SphinxSearch' => array( 'ПребарувањеСоSphinx' ),
 46+);
 47+
 48+/** Dutch (Nederlands) */
 49+$specialPageAliases['nl'] = array(
 50+ 'SphinxSearch' => array( 'SphinxZoeken' ),
 51+);
 52+
 53+/**
 54+ * For backwards compatibility with MediaWiki 1.15 and earlier.
 55+ */
 56+$aliases =& $specialPageAliases;
\ No newline at end of file
Property changes on: trunk/extensions/SphinxSearch/SphinxSearch.alias.php
___________________________________________________________________
Added: svn:eol-style
157 + native

Follow-up revisions

RevisionCommit summaryAuthorDate
r96422Oops. Revert r96421 which reverted r96413 and r96419. SphinxSearch once was a...siebrand12:33, 7 September 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r96413remove unused alias file...svemir11:14, 7 September 2011
r96419Remove alias file per r96413raymond12:11, 7 September 2011

Status & tagging log