diff --git a/extensions/wikidata/module/langs/translation-en.json b/extensions/wikidata/module/langs/translation-en.json index 17f2ace1a..2b5700d2d 100644 --- a/extensions/wikidata/module/langs/translation-en.json +++ b/extensions/wikidata/module/langs/translation-en.json @@ -106,6 +106,7 @@ "wikibase-account/logged-in-as": "You are logged in as:", "wikibase-account/log-out": "Log out", "wikibase-account/connecting-to-wikibase": "Connecting to Wikibase…", + "wikibase-account/logo-alt-text": "$1 Logo", "perform-wikibase-edits/dialog-header": "Upload edits to $1", "perform-wikibase-edits/review-your-edits": "You are about to upload $1 edits to $3. Please check them carefully. Large edit batches should be submitted for bot review first.", "perform-wikibase-edits/logged-in-as": "You are logged in as", diff --git a/extensions/wikidata/module/langs/translation-en_GB.json b/extensions/wikidata/module/langs/translation-en_GB.json index 692a893fc..6f5062329 100644 --- a/extensions/wikidata/module/langs/translation-en_GB.json +++ b/extensions/wikidata/module/langs/translation-en_GB.json @@ -120,6 +120,7 @@ "wikibase-account/log-in": "Log in", "wikibase-account/logged-in-as": "You are logged in as:", "wikibase-account/log-out": "Log out", + "wikibase-account/logo-alt-text": "$1 Logo", "wikibase-preview/new-id": "new item", "wikibase-schema/unsaved-warning": "You have made unsaved changes to your Wikidata schema. Close anyway?", "wikibase-schema/incomplete-schema-could-not-be-saved": "Your schema is incomplete so it cannot be saved yet.", diff --git a/extensions/wikidata/module/scripts/dialogs/manage-account-dialog.js b/extensions/wikidata/module/scripts/dialogs/manage-account-dialog.js index 333dd2561..6132002c0 100644 --- a/extensions/wikidata/module/scripts/dialogs/manage-account-dialog.js +++ b/extensions/wikidata/module/scripts/dialogs/manage-account-dialog.js @@ -79,6 +79,11 @@ ManageAccountDialog.displayPasswordLogin = function (onSuccess) { const frame = $(DOM.loadHTML("wikidata", "scripts/dialogs/password-login-dialog.html")); const elmts = DOM.bind(frame); ManageAccountDialog.initCommon(elmts); + WikibaseManager.getSelectedWikibaseLogoURL(function(data) { + elmts.wikibaseLogoImg.attr("src", data); + }); + elmts.wikibaseMainPage.attr("href", WikibaseManager.getSelectedWikibaseMainPage()); + elmts.wikibaseLogoImg.attr("alt", $.i18n('wikibase-account/logo-alt-text', WikibaseManager.getSelectedWikibaseName())); elmts.explainBotPasswords.html($.i18n('wikibase-account/explain-bot-passwords', WikibaseManager.getSelectedWikibaseRoot() + 'Special:BotPasswords')); elmts.explainOwnerOnlyConsumerLogin.html($.i18n('wikibase-account/explain-owner-only-consumer-login')); elmts.invalidCredentials.text($.i18n('wikibase-account/invalid-credentials')); diff --git a/extensions/wikidata/module/scripts/dialogs/password-login-dialog.html b/extensions/wikidata/module/scripts/dialogs/password-login-dialog.html index 4f19ae433..76503f567 100644 --- a/extensions/wikidata/module/scripts/dialogs/password-login-dialog.html +++ b/extensions/wikidata/module/scripts/dialogs/password-login-dialog.html @@ -2,8 +2,8 @@