Ebe123 has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/157702

Change subject: Add localization capability to quotation marks
......................................................................

Add localization capability to quotation marks

This commit adds the message wminc-languagecode so that the quotation
marks can be localized. They shouldn't always be straight as in English.

Change-Id: Ibcf1ddc920e3ca6a9219de816860c3ffc1fa2e57
---
M InfoPage.php
M i18n/en.json
M i18n/qqq.json
3 files changed, 4 insertions(+), 2 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikimediaIncubator 
refs/changes/02/157702/1

diff --git a/InfoPage.php b/InfoPage.php
index 8b6108b..41a59c8 100644
--- a/InfoPage.php
+++ b/InfoPage.php
@@ -41,7 +41,7 @@
                $name = Language::fetchLanguageName( $this->mLangCode, 
$wgLang->getCode(), 'all' );
                $this->mLangName = $name ? $name :
                        Language::fetchLanguageName( $this->mLangCode, 'en', 
'all' );
-               $titleParam = $this->mLangName ? $this->mLangName : '"' . 
$this->mLangCode . '"'; # Name, else code
+               $titleParam = $this->mLangName ? $this->mLangName : wfMessage( 
'wminc-languagecode', $this->mLangCode )->text(); # Name, else code
                # Give grep a chance to find the usages:
                # wminc-infopage-title-p, wminc-infopage-title-b, 
wminc-infopage-title-t, wminc-infopage-title-q,
                # wminc-infopage-title-n, wminc-infopage-title-s, 
wminc-infopage-title-v, wminc-infopage-title-y
diff --git a/i18n/en.json b/i18n/en.json
index 79c2537..90108ba 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -74,6 +74,7 @@
        "wminc-fs-startwiki-exists-text": "The prefix of your wiki is $1. The 
Main Page is at $2. You can now collaborate with other speakers of this 
language to build a community!\nIf you want to create a page, just type in the 
name in the search box above, and follow the link you will see.",
        "wminc-infopage-enter": "go to the Main Page",
        "wminc-unknownlang": "(unknown language code)",
+       "wminc-languagecode": "\"$1\"",
        "wminc-manual-url": "Help:Manual",
        "wminc-infopage-title-p": "Wikipedia $1",
        "wminc-infopage-title-b": "Wikibooks $1",
@@ -103,4 +104,4 @@
        "wminc-infopage-status-beforeincubator-sister": "This project is 
available at $1.",
        "wminc-infopage-error": "Error: {{#infopage}} can only be used on 
prefixed pages.",
        "wminc-infopage-links": ""
-}
\ No newline at end of file
+}
diff --git a/i18n/qqq.json b/i18n/qqq.json
index bbd03a6..7ae12e3 100644
--- a/i18n/qqq.json
+++ b/i18n/qqq.json
@@ -85,6 +85,7 @@
        "wminc-fs-startwiki-exists-text": "Parameters:\n* $1 - the prefix 
(Wx/xyz)\n* $2 - a link to its main page (Wx/xyz/Main_Page)",
        "wminc-infopage-enter": "Text of a link to the Main Page of a test wiki 
at Incubator.",
        "wminc-unknownlang": "Added after the title ''Wiki[project] \"code\"'' 
when no language name is found for the language code.",
+       "wminc-languagecode": "Used when a language code is provided but the 
language name is unknown on {{msg-wm|wminc-infopage-title-p}} and sister 
messages.\n* $1 - language code",
        "wminc-manual-url": "{{notranslate}}\nUsed in:\n* 
{{msg-mw|Wminc-infopage-option-startwiki}}\n* 
{{msg-mw|Wminc-fs-settings-text}}",
        "wminc-infopage-title-p": "This is the main title of the info page. 
Parameters:\n* $1 - the language name from CLDR, i.e. it takes the name in your 
language if available. Otherwise, it's in English.\n{{Identical|Wikipedia}}",
        "wminc-infopage-title-b": "This is the main title of the info page. $1 
is the language name from CLDR, i.e. it takes the name in your language if 
available. Otherwise, it's in English.",

-- 
To view, visit https://gerrit.wikimedia.org/r/157702
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibcf1ddc920e3ca6a9219de816860c3ffc1fa2e57
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikimediaIncubator
Gerrit-Branch: master
Gerrit-Owner: Ebe123 <beauleetien...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to