Prevent "Log in" being used in two different contexts
authorSiebrand Mazeland <siebrand@kitano.nl>
Wed, 12 Mar 2014 18:12:10 +0000 (19:12 +0100)
committerSiebrand <siebrand@kitano.nl>
Wed, 12 Mar 2014 18:13:48 +0000 (18:13 +0000)
Spotted by Lloffiwr and reported at
https://translatewiki.net/wiki/Thread:Support/MediaWiki:Pt-login/en

Change-Id: Ibfbe4abfbb29860c05ebaac83e2220f373940a59

includes/templates/Userlogin.php
languages/messages/MessagesEn.php
languages/messages/MessagesQqq.php
maintenance/language/messages.inc

index 68097e3..c416d11 100644 (file)
@@ -146,7 +146,7 @@ class UserloginTemplate extends BaseTemplate {
 
                        <div>
                                <?php
-                               echo Html::input( 'wpLoginAttempt', $this->getMsg( 'pt-login' )->text(), 'submit', array(
+                               echo Html::input( 'wpLoginAttempt', $this->getMsg( 'pt-login-button' )->text(), 'submit', array(
                                        'id' => 'wpLoginAttempt',
                                        'tabindex' => '6',
                                        'class' => 'mw-ui-button mw-ui-big mw-ui-block mw-ui-constructive'
index c785486..c09e7c7 100644 (file)
@@ -1252,6 +1252,7 @@ Please wait $1 before trying again.',
 'createacct-another-realname-tip' => 'Real name is optional.
 If you choose to provide it, this will be used for giving the user attribution for their work.',
 'pt-login'                        => 'Log in',
+'pt-login-button'                 => 'Log in',
 'pt-createaccount'                => 'Create account',
 'pt-userlogout'                   => 'Log out',
 
index 6ebacd4..61c7972 100644 (file)
@@ -1579,7 +1579,9 @@ This message is used in html.
 'createacct-another-realname-tip' => "{{doc-singularthey}}
 Used on the account creation form when creating another user's account. Similar to {{msg-mw|prefs-help-realname}}.
 {{Identical|Real name attribution}}",
-'pt-login' => "Shown as the caption of the button at [[Special:UserLogin]], and also to anonymous users in the upper right corner of the page when they can't create an account (otherwise the message {{msg-mw|nav-login-createaccount}} is shown there)
+'pt-login' => "Shown to anonymous users in the upper right corner of the page when they can't create an account (otherwise the message {{msg-mw|nav-login-createaccount}} is shown there).
+{{Identical|Log in}}",
+'pt-login-button' => "Shown as the caption of the button at [[Special:UserLogin]].
 {{Identical|Log in}}",
 'pt-createaccount' => 'Used on the top of the page for logged out users, where it appears next to {{msg-mw|login}}, so consider making them similar.
 {{Identical|Create account}}',
index 60cc3a8..c11d6aa 100644 (file)
@@ -558,6 +558,7 @@ $wgMessageStructure = array(
                'suspicious-userlogout',
                'createacct-another-realname-tip',
                'pt-login',
+               'pt-login-button',
                'pt-createaccount',
                'pt-userlogout',
        ),