Skip to content

Commit

Permalink
FIX Change "login" to "log in" when used as a verb (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Oct 9, 2023
1 parent 2f56d0f commit 8bec110
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions lang/en.yml
Expand Up @@ -3,6 +3,7 @@ en:
ASSERTLOGINBUTTON: 'Share your details with {orgname}'
AUTHENTICATOR_NAME: 'RealMe Account'
LOGINBUTTON: Login
LOGINBUTTON2: Log in
SilverStripe\RealMe\Authenticator\LoginHandler:
LOGINFAILURE: 'Unfortunately we''re not able to log you in through RealMe right now. Please try again shortly.'
SilverStripe\RealMe\Authenticator\MiniLoginForm:
Expand Down
4 changes: 2 additions & 2 deletions src/Authenticator/LoginForm.php
Expand Up @@ -202,13 +202,13 @@ protected function getFormActions()
} else {
// Login button
$loginButtonContent = ArrayData::create(array(
'Label' => _t(self::class . '.LOGINBUTTON', 'Login'),
'Label' => _t(self::class . '.LOGINBUTTON2', 'Log in'),
'ShowNewWindowIcon' => true
))->renderWith(self::class . '/RealMeLoginButton');
}

return FieldList::create(array(
FormAction::create('doLogin', _t(self::class . '.LOGINBUTTON', 'Login'))
FormAction::create('doLogin', _t(self::class . '.LOGINBUTTON2', 'Log in'))
->setUseButtonTag(true)
->setButtonContent($loginButtonContent)
->setAttribute('class', 'realme_button')
Expand Down
4 changes: 2 additions & 2 deletions templates/SilverStripe/RealMe/Authenticator/LoginForm.ss
Expand Up @@ -39,11 +39,11 @@ or directly in your css, e.g. .realme_popup {width: 450px}
<% end_if %>

<div class="realme_widget realme_primary_login realme_theme_{$RealMeWidgetTheme}">
<h2 class="realme_title">Login with <span class="realme_title_brand">RealMe</span></h2>
<h2 class="realme_title">Log in with <span class="realme_title_brand">RealMe</span></h2>

<p class="realme_info">
To access the $ServiceName1, you need a RealMe login. If you've used a RealMe login somewhere else, you can use
it here too. If you don't already have a username and password, just select Login and choose to create one.
it here too. If you don't already have a username and password, just select "Log in" and choose to create one.
</p>

<div class="realme_login_lockup">
Expand Down
Expand Up @@ -40,14 +40,14 @@ or directly in your css, e.g. .realme_popup {width: 450px}
"--%>
<div class="realme_widget realme_secondary_login realme_theme_dark no_touch" style="z-index: 1;">
<a href="{$BaseHref}Security/login#RealMeLoginForm_LoginForm" class="realme_login realme_pipe">Login <span class="realme_icon_link"></span></a>
<a href="{$BaseHref}Security/login#RealMeLoginForm_LoginForm" class="realme_login realme_pipe">Log in <span class="realme_icon_link"></span></a>
<a href="https://www.account.realme.govt.nz/account/" class="realme_create_account realme_pipe">Create <span class="realme_icon_link"></span></a>
<div class="realme_popup_position">
<a id="popup_trigger" href="http://www.realme.govt.nz" target="_blank" class="realme_link whats_realme">?</a>
<div class="realme_popup_wrapper realme_arrow_top_left">
<!-- realme_popup -->
<div class="realme_popup">
<h2 class="realme_popup_title">To login to this service you now need a RealMe account.</h2>
<h2 class="realme_popup_title">To log in to this service you now need a RealMe account.</h2>
<p><b>RealMe</b> is a service from the New Zealand government and New Zealand Post that includes a single login, letting you use one username and password to access a wide range of services online.</p>
<p>But there is much more to <b>RealMe</b> than just the convenience of a single login.</p>
<h2 class="realme_popup_title">Get Verified</h2>
Expand Down
@@ -1,5 +1,5 @@
<div class='realme_widget realme_secondary_login realme_theme_light'>
<a href='$RealMeMiniLoginLink' class='realme_login realme_pipe'>Login <span class='realme_icon_link'></span></a>
<a href='$RealMeMiniLoginLink' class='realme_login realme_pipe'>Log in <span class='realme_icon_link'></span></a>
<div class='realme_popup_position'>
<a id='popup_trigger' href='http://www.realme.govt.nz' target='_blank' class='link realme_link whats_realme'>?</a>

Expand Down

0 comments on commit 8bec110

Please sign in to comment.