jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/334021 )

Change subject: Provide PLURAL support for a few i18n messages
......................................................................


Provide PLURAL support for a few i18n messages

Also provide message documentation for the following messages:
 - quizgame-error-socialprofile
 - quizgame-error-socialprofile-title
Bug: T156213
Change-Id: Idf6de962cce692be5faae823d743ded23e9951d4
---
M extension.json
M i18n/en.json
M i18n/qqq.json
M js/QuizGame.js
4 files changed, 7 insertions(+), 4 deletions(-)

Approvals:
  Jack Phoenix: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/extension.json b/extension.json
index 7fe2632..e363859 100644
--- a/extension.json
+++ b/extension.json
@@ -1,6 +1,6 @@
 {
        "name": "QuizGame",
-       "version": "3.6",
+       "version": "3.7",
        "author": [
                "Aaron Wright",
                "Ashish Datta",
@@ -87,6 +87,7 @@
                        "dependencies": [
                                "ext.socialprofile.flash",
                                "ext.socialprofile.LightBox",
+                               "mediawiki.jqueryMsg",
                                "oojs-ui-core",
                                "oojs-ui-windows"
                        ],
diff --git a/i18n/en.json b/i18n/en.json
index 46d9de7..c49a06c 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -59,7 +59,7 @@
        "quizgame-leaderboard-menu-pct": "Highest percentage",
        "quizgame-leaderboard-desc-pct": "$1%",
        "quizgame-leaderboard-desc-correct": "$1 correct",
-       "quizgame-leaderboard-desc-points": "$1 points",
+       "quizgame-leaderboard-desc-points": "{{PLURAL:$1|1 point|$1 points}}",
        "quizgame-login-or-create-to-climb": "[[Special:UserLogin|Login]] or 
[[Special:UserLogin/signup|create an account]] to compete and climb the 
leaderboard!",
        "quizgame-pct-answered-correct": "$1% got this question right",
        "quizgame-answered-correctly": "You answered correctly",
@@ -70,7 +70,7 @@
        "quizgame-js-loading": "Loading...",
        "quizgame-js-reloading": "Re-loading...",
        "quizgame-js-timesup": "Time's up! You won't earn any points, but try 
to answer it anyway!",
-       "quizgame-js-points": "$1 points",
+       "quizgame-js-points": "{{PLURAL:$1|1 point|$1 points}}",
        "quizgame-js-seconds": "seconds",
        "quizgame-lightbox-pause-quiz": "Pause quiz",
        "quizgame-lightbox-breakdown": "View breakdown for this question",
diff --git a/i18n/qqq.json b/i18n/qqq.json
index 4e6eb79..3be6978 100644
--- a/i18n/qqq.json
+++ b/i18n/qqq.json
@@ -17,6 +17,8 @@
        "quizgame-admin-back": "Link title on the admin panel; clicking on this 
link takes you back to the question game from the administrative functions",
        "quizgame-admin-flagged": "Header title on the admin panel of QuizGame",
        "quizgame-admin-protected": "Header title on the admin panel of 
QuizGame",
+       "quizgame-error-socialprofile": "Error that shows when QuizGame was 
installed without installing SocialProfile first.",
+       "quizgame-error-socialprofile-title": "Title for message 
quizgame-error-socialprofile",
        "quizgame-admin-permission": "Error message shown if a user without the 
\"quizadmin\" user right tries to access the quiz editing form",
        "quizgame-edit-title": "Page title shown when editing a quiz; $1 is the 
title of the quiz\n{{Identical|Editing}}",
        "quizgame-edit-picture-link": "Link title; the link is rendered via 
JavaScript. This is shown on Special:QuizGameHome when editing a pre-existing 
question that has an image.",
diff --git a/js/QuizGame.js b/js/QuizGame.js
index e65a053..5d633d6 100644
--- a/js/QuizGame.js
+++ b/js/QuizGame.js
@@ -351,7 +351,7 @@
                                //document.getElementById( 'quiz-level-' + ( x 
) ).className = 'quiz-level-on';
                                QuizGame.points = QuizGame.points_array[x];
                                document.getElementById( 'quiz-points' 
).innerHTML =
-                                       mw.msg( 'quizgame-js-points', 
QuizGame.points );
+                                       mw.message( 'quizgame-js-points', 
QuizGame.points ).text();
                                QuizGame.next_level = ( ( 
QuizGame.levels_array[x + 1] ) ? QuizGame.levels_array[x + 1] : 0 );
                        } else {
                                //document.getElementById( 'quiz-level-' + ( x 
) ).className = 'quiz-level-off';

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Idf6de962cce692be5faae823d743ded23e9951d4
Gerrit-PatchSet: 4
Gerrit-Project: mediawiki/extensions/QuizGame
Gerrit-Branch: master
Gerrit-Owner: SamanthaNguyen <samanthanguyen1...@gmail.com>
Gerrit-Reviewer: Jack Phoenix <j...@countervandalism.net>
Gerrit-Reviewer: SamanthaNguyen <samanthanguyen1...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to