Skip to content

Commit

Permalink
FIX Change "login" to "log in" when used as a verb
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Oct 5, 2023
1 parent 2f56d0f commit eaee6ee
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lang/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ en:
SilverStripe\RealMe\Authenticator\LoginForm:
ASSERTLOGINBUTTON: 'Share your details with {orgname}'
AUTHENTICATOR_NAME: 'RealMe Account'
LOGINBUTTON: Login
LOGINBUTTON: 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
Original file line number Diff line number Diff line change
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 . '.LOGINBUTTON', '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 . '.LOGINBUTTON', 'Log in'))
->setUseButtonTag(true)
->setButtonContent($loginButtonContent)
->setAttribute('class', 'realme_button')
Expand Down
4 changes: 2 additions & 2 deletions templates/SilverStripe/RealMe/Authenticator/LoginForm.ss
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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 eaee6ee

Please sign in to comment.