Revision: 46176
Author: malafaya
Date: 2009-01-25 00:48:30 +0000 (Sun, 25 Jan 2009)
Log Message:
-----------
Special:ImportLangNames full i18n support
Modified Paths:
--------------
trunk/extensions/Wikidata/OmegaWiki/SpecialImportLangNames.php
trunk/extensions/Wikidata/SpecialLanguages.i18n.php
Modified: trunk/extensions/Wikidata/OmegaWiki/SpecialImportLangNames.php
===================================================================
--- trunk/extensions/Wikidata/OmegaWiki/SpecialImportLangNames.php
2009-01-25 00:33:25 UTC (rev 46175)
+++ trunk/extensions/Wikidata/OmegaWiki/SpecialImportLangNames.php
2009-01-25 00:48:30 UTC (rev 46176)
@@ -23,10 +23,10 @@
$dc="uw";
require_once('Transaction.php');
- $wgOut->setPageTitle('Import Language Names');
+
$wgOut->setPageTitle(wfMsg('importlangnames_title'));
if (!$wgUser->isAllowed('languagenames')) {
- $wgOut->addHTML('You do not have
permission to import language names.');
+
$wgOut->addHTML(wfMsg('importlangnames_not_allowed'));
return false;
}
@@ -64,7 +64,7 @@
$wgOut->addHTML('<br
/>' . "\n");
else
$first = false;
- $wgOut->addHTML('Language names
for "' . $iso_code . '" added.');
+
$wgOut->addHTML(wfMsg('importlangnames_added', $iso_code));
/* Add current language to list
of portals/DMs. */
$sql = "SELECT spelling FROM
{$dc}_expression" .
@@ -82,7 +82,7 @@
$wgOut->addHTML('<br
/>' . "\n");
else
$first = false;
- $wgOut->addHTML('<strong>No
language entry for "' . $iso_code . '" found! </strong>');
+
$wgOut->addHTML(wfMsg('importlangnames_not_found', $iso_code));
continue;
}
$lang_id =
$this->fetchResult($dbr->fetchRow($lang_id_res));
Modified: trunk/extensions/Wikidata/SpecialLanguages.i18n.php
===================================================================
--- trunk/extensions/Wikidata/SpecialLanguages.i18n.php 2009-01-25 00:33:25 UTC
(rev 46175)
+++ trunk/extensions/Wikidata/SpecialLanguages.i18n.php 2009-01-25 00:48:30 UTC
(rev 46176)
@@ -14,6 +14,10 @@
'langman_title' => 'Language manager',
'languages' => 'Wikidata: Language manager',
'importlangnames' =>
'Wikidata: Import language names',
+ 'importlangnames_title' => 'Import
Language Names',
+ 'importlangnames_not_allowed' => 'You do not have
permission to import language names.',
+ 'importlangnames_added' => 'Language
names for "$1" added.',
+ 'importlangnames_not_found' => '<strong>No
language entry for "$1" found!</strong>',
'addcollection' =>
'Wikidata: Add collection',
'ow_save' => 'Save',
'ow_history' => 'History',
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs