Filip has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/331220 )
Change subject: Added diffrent log-in tooltip to private wiki ...................................................................... Added diffrent log-in tooltip to private wiki Bug: T148006 Change-Id: I14e9a554c72222e6f67bc120941199b999740886 --- M includes/skins/SkinTemplate.php M languages/i18n/en.json M languages/i18n/qqq.json 3 files changed, 8 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/20/331220/1 diff --git a/includes/skins/SkinTemplate.php b/includes/skins/SkinTemplate.php index 575a9ac..a8bcb07 100644 --- a/includes/skins/SkinTemplate.php +++ b/includes/skins/SkinTemplate.php @@ -720,7 +720,10 @@ } if ( $authManager->canAuthenticateNow() ) { - $personal_urls['login'] = $login_url; + $key = User::groupHasPermission( '*', 'read' ) + ? 'login' + : 'login-private'; + $personal_urls[$key] = $login_url; } } diff --git a/languages/i18n/en.json b/languages/i18n/en.json index a621f1c..4f26f34 100644 --- a/languages/i18n/en.json +++ b/languages/i18n/en.json @@ -2676,6 +2676,7 @@ "accesskey-pt-mycontris": "y", "accesskey-pt-anoncontribs": "y", "accesskey-pt-login": "o", + "accesskey-pt-login-private": "o", "accesskey-pt-logout": "", "accesskey-pt-createaccount": "", "accesskey-ca-talk": "t", @@ -2747,6 +2748,7 @@ "tooltip-pt-mycontris": "A list of {{GENDER:|your}} contributions", "tooltip-pt-anoncontribs": "A list of edits made from this IP address", "tooltip-pt-login": "You are encouraged to log in; however, it is not mandatory", + "tooltip-pt-login-private": "You need to log in to use this wiki", "tooltip-pt-logout": "Log out", "tooltip-pt-createaccount": "You are encouraged to create an account and log in; however, it is not mandatory", "tooltip-ca-talk": "Discussion about the content page", diff --git a/languages/i18n/qqq.json b/languages/i18n/qqq.json index 372a127..d480f3a 100644 --- a/languages/i18n/qqq.json +++ b/languages/i18n/qqq.json @@ -2861,6 +2861,7 @@ "accesskey-pt-mycontris": "{{doc-accesskey}}\nSee also:\n* {{msg-mw|Mycontris}}\n* {{msg-mw|Accesskey-pt-mycontris}}\n* {{msg-mw|Tooltip-pt-mycontris}}", "accesskey-pt-anoncontribs": "{{doc-accesskey}}\nSee also:\n* {{msg-mw|Anoncontribs}}\n* {{msg-mw|Tooltip-pt-anoncontribs}}", "accesskey-pt-login": "{{doc-accesskey}}", + "accesskey-pt-login-private": "{{doc-accesskey}}", "accesskey-pt-logout": "{{doc-accesskey}}\nSee also:\n* {{msg-mw|Logout}}\n* {{msg-mw|Accesskey-pt-logout}}\n* {{msg-mw|Tooltip-pt-logout}}", "accesskey-pt-createaccount": "{{doc-accesskey}}", "accesskey-ca-talk": "{{doc-accesskey}}\nSee also:\n* {{msg-mw|Talk}}\n* {{msg-mw|Accesskey-ca-talk}}\n* {{msg-mw|Tooltip-ca-talk}}", @@ -2932,6 +2933,7 @@ "tooltip-pt-mycontris": "Tooltip shown when hovering over the {{msg-mw|Mycontris}} link in your personal toolbox (upper right side).\n\nSee also:\n* {{msg-mw|Mycontris}}\n* {{msg-mw|Accesskey-pt-mycontris}}\n* {{msg-mw|Tooltip-pt-mycontris}}", "tooltip-pt-anoncontribs": "Tooltip shown when hovering over the {{msg-mw|Anoncontribs}} link in your personal toolbox (upper right side).\n\nSee also:\n* {{msg-mw|Anoncontribs}}\n* {{msg-mw|Accesskey-pt-anoncontribs}}", "tooltip-pt-login": "Tooltip shown when hovering over the link 'Log in' in the upper right corner show on all pages while not logged in.", + "tooltip-pt-login-private": "Tooltip shown when hovering over the link 'Log in' in the upper right corner show on all pages while not logged in, and wiki is private.", "tooltip-pt-logout": "Tooltip shown when hovering over the {{msg-mw|Logout}} link in your personal toolbox (upper right side).\n\nSee also:\n* {{msg-mw|Logout}}\n* {{msg-mw|Accesskey-pt-logout}}\n* {{msg-mw|Tooltip-pt-logout}}\n{{Identical|Log out}}", "tooltip-pt-createaccount": "Tooltip shown when hovering over the link 'Create account' in the upper right corner show on all pages while not logged in.", "tooltip-ca-talk": "Tooltip shown when hovering over the {{msg-mw|Talk}} tab.\n\nA 'content page' is a page that forms part of the purpose of the wiki. It includes the main page and pages in the main namespace and any other namespaces that are included when the wiki is customised. For example on Wikimedia Commons 'content pages' include pages in the file and category namespaces. On Wikinews 'content pages' include pages in the Portal namespace. For a technical definition of 'content namespaces' see [[mw:Manual:Using_custom_namespaces#Content_namespaces|MediaWiki]].\n\nPossible alternatives to the word 'content' are 'subject matter' or 'wiki subject' or 'wiki purpose'.\n\nSee also:\n* {{msg-mw|Talk}}\n* {{msg-mw|Accesskey-ca-talk}}\n* {{msg-mw|Tooltip-ca-talk}}\n{{Identical|Content page}}", -- To view, visit https://gerrit.wikimedia.org/r/331220 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I14e9a554c72222e6f67bc120941199b999740886 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Filip <r...@protonmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits