Details
diff --git a/forms/common-themes/src/main/resources/theme/login/base/error.ftl b/forms/common-themes/src/main/resources/theme/login/base/error.ftl
index 1988f60..220d2d8 100755
--- a/forms/common-themes/src/main/resources/theme/login/base/error.ftl
+++ b/forms/common-themes/src/main/resources/theme/login/base/error.ftl
@@ -2,14 +2,14 @@
<#import "template.ftl" as layout>
<@layout.registrationLayout bodyClass=""; section>
<#if section = "title">
- We're sorry...
+ ${rb.errorTitle}
<#elseif section = "header">
- We're <strong>sorry</strong> ...
+ ${rb.errorTitleHtml}
<#elseif section = "form">
<div id="kc-error-message">
- <p class="instruction">Something happened and we could not process your request.</p>
+ <p class="instruction">${rb.errorGenericMsg}</p>
<p id="error-summary" class="instruction second">${message.summary}</p>
</div>
</#if>
diff --git a/forms/common-themes/src/main/resources/theme/login/base/login.ftl b/forms/common-themes/src/main/resources/theme/login/base/login.ftl
index b960d00..f65c615 100755
--- a/forms/common-themes/src/main/resources/theme/login/base/login.ftl
+++ b/forms/common-themes/src/main/resources/theme/login/base/login.ftl
@@ -1,10 +1,10 @@
<#ftl strip_whitespace=true strip_text=true>
<#import "template.ftl" as layout>
<@layout.registrationLayout bodyClass=""; section>
- <#if section = "title">Log in to ${realm.name}
+ <#if section = "title">${rb.loginTitle} ${realm.name}
<#elseif section = "header">
- Log in to <strong>${(realm.name)!''}</strong>
+ ${rb.loginTitle} <strong>${(realm.name)!''}</strong>
<#elseif section = "form">
<form id="kc-form-login" action="${url.loginAction}" method="post">
@@ -14,8 +14,8 @@
<div class="field-wrapper">
<label for="password">${rb.password}</label><input id="password" name="password" type="password" />
</div>
- <input class="btn-primary" name="login" type="submit" value="Log In"/>
- <input class="btn-secondary" name="cancel" type="submit" value="Cancel"/>
+ <input class="btn-primary" name="login" type="submit" value="${rb.logIn}"/>
+ <input class="btn-secondary" name="cancel" type="submit" value="${rb.cancel}"/>
</form>
<#elseif section = "info" >
@@ -24,7 +24,7 @@
<p>${rb.noAccount} <a href="${url.registrationUrl}">${rb.register}</a>.</p>
</#if>
<#if realm.resetPasswordAllowed>
- <p>Forgot <a href="${url.loginUsernameReminderUrl}">Username</a> / <a href="${url.loginPasswordResetUrl}">Password</a>?</p>
+ <p>${rb.loginForgot} <a href="${url.loginUsernameReminderUrl}">${rb.username}</a> / <a href="${url.loginPasswordResetUrl}">${rb.password}</a>?</p>
</#if>
</div>
</#if>
diff --git a/forms/common-themes/src/main/resources/theme/login/base/login-config-totp.ftl b/forms/common-themes/src/main/resources/theme/login/base/login-config-totp.ftl
index 149f4eb..f978824 100755
--- a/forms/common-themes/src/main/resources/theme/login/base/login-config-totp.ftl
+++ b/forms/common-themes/src/main/resources/theme/login/base/login-config-totp.ftl
@@ -1,29 +1,29 @@
<#import "template.ftl" as layout>
<@layout.registrationLayout bodyClass=""; section>
<#if section = "title">
- Google Authenticator Setup
+ ${rb.loginTotpTitle}
<#elseif section = "header">
- Google Authenticator Setup
+ ${rb.loginTotpTitle}
<#elseif section = "form">
<ol id="kc-totp-settings">
<li>
- <p><strong>1</strong>Download the <a href="http://code.google.com/p/google-authenticator/" target="_blank">Google Authenticator app</a> in your device.</p>
+ <p><strong>1</strong>${rb.loginTotpStep1_1} <a href="http://code.google.com/p/google-authenticator/" target="_blank">${rb.loginTotpStep1_2}</a> ${rb.loginTotpStep1_3}</p>
</li>
<li class="clearfix">
- <p><strong>2</strong>Create an account in Google Authenticator and scan the barcode or the provided key below.</p>
+ <p><strong>2</strong>${rb.loginTotpStep2}</p>
<img src="${totp.totpSecretQrCodeUrl}" alt="Figure: Barcode">
<span class="code">${totp.totpSecretEncoded}</span>
</li>
<li class="clearfix">
- <p><strong>3</strong>Enter the one-time-password provided by Google Authenticator below and click Submit to finish the setup.</p>
+ <p><strong>3</strong>${rb.loginTotpStep3}</p>
<form action="${url.loginUpdateTotpUrl}" method="post">
<div class="field-wrapper">
- <label for="otp" class="two-lines">One-time-password</label><input type="text" id="totp" name="totp" />
+ <label for="otp" class="two-lines">${rb.loginTotpOneTime}</label><input type="text" id="totp" name="totp" />
<input type="hidden" id="totpSecret" name="totpSecret" value="${totp.totpSecret}" />
</div>
- <input type="submit" class="btn-primary" value="Submit" />
+ <input type="submit" class="btn-primary" value="${rb.submit}" />
</form>
</li>
</ol>
diff --git a/forms/common-themes/src/main/resources/theme/login/base/login-oauth-grant.ftl b/forms/common-themes/src/main/resources/theme/login/base/login-oauth-grant.ftl
index 73f3047..9204893 100755
--- a/forms/common-themes/src/main/resources/theme/login/base/login-oauth-grant.ftl
+++ b/forms/common-themes/src/main/resources/theme/login/base/login-oauth-grant.ftl
@@ -2,14 +2,14 @@
<#import "template.ftl" as layout>
<@layout.registrationLayout bodyClass="oauth"; section>
<#if section = "title">
- OAuth Grant
+ ${rb.oauthGrantTitle}
<#elseif section = "header">
- <strong>Keycloak</strong> Central Login
+ ${rb.oauthGrantTitleHtml}
<#elseif section = "form">
<div id="kc-oauth" class="content-area">
- <p class="instruction"><strong>${oauth.client}</strong> requests access to:</p>
+ <p class="instruction"><strong>${oauth.client}</strong> ${rb.oauthGrantRequest}</p>
<ul id="kc-oauth-list">
<#list oauth.realmRolesRequested as role>
<li>
@@ -27,11 +27,11 @@
</#list>
</ul>
- <p class="terms">Keycloak Central Login and Google will use this information in accordance with their respective terms of service and privacy policies.</p>
+ <p class="terms">${rb.oauthGrantTerms}</p>
<form class="form-actions" action="${url.oauthAction}" method="POST">
<input type="hidden" name="code" value="${oauth.code}">
- <input type="submit" class="btn-primary primary" name="accept" value="Accept">
- <input type="submit" class="btn-secondary" name="cancel" value="Cancel">
+ <input type="submit" class="btn-primary primary" name="accept" value="${rb.accept}">
+ <input type="submit" class="btn-secondary" name="cancel" value="${rb.cancel}">
</form>
</div>
</#if>
diff --git a/forms/common-themes/src/main/resources/theme/login/base/login-reset-password.ftl b/forms/common-themes/src/main/resources/theme/login/base/login-reset-password.ftl
index e00f3c3..34aec1e 100755
--- a/forms/common-themes/src/main/resources/theme/login/base/login-reset-password.ftl
+++ b/forms/common-themes/src/main/resources/theme/login/base/login-reset-password.ftl
@@ -18,6 +18,6 @@
</div>
<#elseif section = "info" >
- <p><a href="${url.loginUrl}">« Back to Login</a></p>
+ <p><a href="${url.loginUrl}">${rb.backToLogin}</a></p>
</#if>
</@layout.registrationLayout>
\ No newline at end of file
diff --git a/forms/common-themes/src/main/resources/theme/login/base/login-totp.ftl b/forms/common-themes/src/main/resources/theme/login/base/login-totp.ftl
index 48c18bc..1fecd2c 100755
--- a/forms/common-themes/src/main/resources/theme/login/base/login-totp.ftl
+++ b/forms/common-themes/src/main/resources/theme/login/base/login-totp.ftl
@@ -2,10 +2,10 @@
<@layout.registrationLayout bodyClass=""; section>
<#if section = "title">
- Log in to ${realm.name}
+ ${rb.loginTitle} ${realm.name}
<#elseif section = "header">
- Log in to <strong>${realm.name}</strong>
+ ${rb.loginTitle} <strong>${realm.name}</strong>
<#elseif section = "form">
<form id="kc-totp-login-form" action="${url.loginAction}" method="post">
@@ -21,7 +21,7 @@
<!-- <p>Forgot <a href="#">Username</a> or <a href="#">Password</a>?</p> -->
</div>
- <input class="btn-primary" type="submit" value="Log In" />
+ <input class="btn-primary" type="submit" value="${rb.logIn}" />
</form>
<#elseif section = "info">
diff --git a/forms/common-themes/src/main/resources/theme/login/base/login-update-password.ftl b/forms/common-themes/src/main/resources/theme/login/base/login-update-password.ftl
index 922f801..0233e6b 100755
--- a/forms/common-themes/src/main/resources/theme/login/base/login-update-password.ftl
+++ b/forms/common-themes/src/main/resources/theme/login/base/login-update-password.ftl
@@ -15,7 +15,7 @@
<label for="password-confirm" class="two-lines">${rb.passwordConfirm}</label><input type="password" id="password-confirm" name="password-confirm" />
</div>
- <input class="btn-primary" type="submit" value="Submit" />
+ <input class="btn-primary" type="submit" value="${rb.submit}" />
</form>
</#if>
</@layout.registrationLayout>
\ No newline at end of file
diff --git a/forms/common-themes/src/main/resources/theme/login/base/login-update-profile.ftl b/forms/common-themes/src/main/resources/theme/login/base/login-update-profile.ftl
index 05e09fa..37ff4ca 100755
--- a/forms/common-themes/src/main/resources/theme/login/base/login-update-profile.ftl
+++ b/forms/common-themes/src/main/resources/theme/login/base/login-update-profile.ftl
@@ -1,19 +1,19 @@
<#import "template.ftl" as layout>
<@layout.registrationLayout bodyClass=""; section>
<#if section = "title">
- Update Account Information
+ ${rb.loginProfileTitle}
<#elseif section = "header">
- Update Account Information
+ ${rb.loginProfileTitle}
<#elseif section = "feedback">
<div id="kc-feedback" class="feedback warning show">
- <p><strong>Your account is not enabled because you need to update your account information.</strong><br>Please follow the steps below.</p>
+ <p><strong>${rb.loginProfileWarning}</strong><br>${rb.loginProfileWarningFollow}</p>
</div>
<#elseif section = "form">
<form id="kc-update-profile-form" action="${url.loginUpdateProfileUrl}" method="post">
<div class="feedback error bottom-left">
- <p><strong>Some required fields are empty or incorrect.</strong><br>Please correct the fields in red.</p>
+ <p><strong>${rb.loginProfileError}</strong><br>${rb.loginProfileErrorSteps}</p>
</div>
<p class="subtitle">All fields required</p>
<div class="field-wrapper">
@@ -25,7 +25,7 @@
<div class="field-wrapper">
<label for="lastName">${rb.lastName}</label><input type="text" id="lastName" name="lastName" value="${user.lastName!''}" />
</div>
- <input class="btn-primary" type="submit" value="Submit" />
+ <input class="btn-primary" type="submit" value="${rb.submit}" />
</form>
</#if>
</@layout.registrationLayout>
\ No newline at end of file
diff --git a/forms/common-themes/src/main/resources/theme/login/base/login-username-reminder.ftl b/forms/common-themes/src/main/resources/theme/login/base/login-username-reminder.ftl
index 696772f..022b6e4 100755
--- a/forms/common-themes/src/main/resources/theme/login/base/login-username-reminder.ftl
+++ b/forms/common-themes/src/main/resources/theme/login/base/login-username-reminder.ftl
@@ -12,9 +12,9 @@
<div class="field-wrapper">
<label for="email">${rb.email}</label><input type="text" id="email" name="email" />
</div>
- <input class="btn-primary" type="submit" value="Submit" />
+ <input class="btn-primary" type="submit" value="${rb.submit}" />
</form>
<#elseif section = "info" >
- <p><a href="${url.loginUrl}">« Back to Login</a></p>
+ <p><a href="${url.loginUrl}">${rb.backToLogin}</a></p>
</#if>
</@layout.registrationLayout>
\ No newline at end of file
diff --git a/forms/common-themes/src/main/resources/theme/login/base/login-verify-email.ftl b/forms/common-themes/src/main/resources/theme/login/base/login-verify-email.ftl
index b595c64..75f0155 100755
--- a/forms/common-themes/src/main/resources/theme/login/base/login-verify-email.ftl
+++ b/forms/common-themes/src/main/resources/theme/login/base/login-verify-email.ftl
@@ -1,18 +1,18 @@
<#import "template.ftl" as layout>
<@layout.registrationLayout bodyClass="email"; section>
<#if section = "title">
- Email verification
+ ${rb.emailVerifyTitle}
<#elseif section = "header">
- Email verification
+ ${rb.emailVerifyTitle}
<#elseif section = "form">
<div id="kc-verify-email" class="app-form">
<p class="instruction">
- Your account is not enabled. An email with instructions to verify your email address has been sent to you.
+ ${rb.emailVerifyInstr}
</p>
- <p class="instruction">Haven't received a verification code in your email?
- <a href="${url.loginEmailVerificationUrl}">Click here</a> to re-send the email.
+ <p class="instruction">${rb.emailVerifyInstrQ}
+ <a href="${url.loginEmailVerificationUrl}">${rb.emailVerifyClick}</a> ${rb.emailVerifyResend}
</p>
</div>
</#if>
diff --git a/forms/common-themes/src/main/resources/theme/login/base/messages/messages.properties b/forms/common-themes/src/main/resources/theme/login/base/messages/messages.properties
index 56712a9..df4a0b1 100644
--- a/forms/common-themes/src/main/resources/theme/login/base/messages/messages.properties
+++ b/forms/common-themes/src/main/resources/theme/login/base/messages/messages.properties
@@ -18,6 +18,9 @@ password=Password
passwordConfirm=Password confirmation
passwordNew=New Password
passwordNewConfirm=New Password confirmation
+cancel=Cancel
+accept=Accept
+submit=Submit
authenticatorCode=One-time-password
clientCertificate=Client Certificate
@@ -43,7 +46,38 @@ successTotpRemoved=Google authenticator removed.
usernameExists=Username already exists
+loginTitle=Log in to
+loginForgot=Forgot
+
+loginTotpTitle=Google Authenticator Setup
+loginTotpStep1_1=Download the
+loginTotpStep1_2=Google Authenticator app
+loginTotpStep1_3=in your device.
+loginTotpStep2=Create an account in Google Authenticator and scan the barcode or the provided key below.
+loginTotpStep3=Enter the one-time-password provided by Google Authenticator below and click Submit to finish the setup.
+loginTotpOneTime=One-time-password
+
+loginProfileTitle=Update Account Information
+loginProfileWarning=Your account is not enabled because you need to update your account information.
+loginProfileWarningFollow=Please follow the steps below.
+loginProfileError=Some required fields are empty or incorrect.
+loginProfileErrorSteps=Please correct the fields in red.
+
+oauthGrantTitle=OAuth Grant
+oauthGrantTitleHtml=<strong>Keycloak</strong> Central Login
+oauthGrantTerms=Keycloak Central Login and Google will use this information in accordance with their respective terms of service and privacy policies.
+oauthGrantRequest=requests access to:
+
+emailVerifyTitle=Email verification
+emailVerifyInstr=Your account is not enabled. An email with instructions to verify your email address has been sent to you.
+emailVerifyInstrQ=Haven't received a verification code in your email?
+emailVerifyClick=Click here
+emailVerifyResend=to re-send the email.
+
error=A system error has occured, contact admin
+errorTitle=We're sorry...
+errorTitleHtml=We're <strong>sorry</strong> ...
+errorGenericMsg=Something happened and we could not process your request.
actionWarningHeader=Your account is not enabled.
actionTotpWarning=You need to set up the Google Authenticator to activate your account.
actionProfileWarning=You need to update your user profile to activate your account.
@@ -57,6 +91,7 @@ errorHeader=Error!
# Forgot password part
emailForgotHeader=Forgot Your Password?
+backToLogin=« Back to Login
emailUpdateHeader=Update password
emailSent=You should receive an email shortly with further instructions.
emailSendError=Failed to send email, please try again later
diff --git a/forms/common-themes/src/main/resources/theme/login/base/register.ftl b/forms/common-themes/src/main/resources/theme/login/base/register.ftl
index a656a6d..5438ebe 100755
--- a/forms/common-themes/src/main/resources/theme/login/base/register.ftl
+++ b/forms/common-themes/src/main/resources/theme/login/base/register.ftl
@@ -28,7 +28,7 @@
<label for="password-confirm">${rb.passwordConfirm}</label><input type="password" id="password-confirm" name="password-confirm" />
</div>
- <input class="btn-primary" type="submit" value="Register"/>
+ <input class="btn-primary" type="submit" value="${rb.register}"/>
</form>
<#elseif section = "info">