From ff17123123bf8487eeb828f9020f491f5a642d76 Mon Sep 17 00:00:00 2001 From: Stan Silvert Date: Thu, 27 Aug 2015 18:10:30 -0400 Subject: [PATCH] i18n for onoffswitch --- .../angular-messages/common_de.properties | 4 ++- .../angular-messages/common_en.properties | 4 ++- .../realm-settings_de.properties | 34 +++++++++---------- .../theme/base/admin/resources/js/app.js | 2 +- .../resources/partials/realm-detail.html | 2 +- .../partials/realm-login-settings.html | 12 +++---- 6 files changed, 31 insertions(+), 27 deletions(-) diff --git a/forms/common-themes/src/main/resources/theme/base/admin/angular-messages/common_de.properties b/forms/common-themes/src/main/resources/theme/base/admin/angular-messages/common_de.properties index 3321f1e212..2ad35ba6d2 100644 --- a/forms/common-themes/src/main/resources/theme/base/admin/angular-messages/common_de.properties +++ b/forms/common-themes/src/main/resources/theme/base/admin/angular-messages/common_de.properties @@ -1,4 +1,6 @@ enabled=de Enabled name=de Name save=de Save -cancel=de Cancel \ No newline at end of file +cancel=de Cancel +onText=AN +offText=AUS \ No newline at end of file diff --git a/forms/common-themes/src/main/resources/theme/base/admin/angular-messages/common_en.properties b/forms/common-themes/src/main/resources/theme/base/admin/angular-messages/common_en.properties index 22f8708932..7b6c509091 100644 --- a/forms/common-themes/src/main/resources/theme/base/admin/angular-messages/common_en.properties +++ b/forms/common-themes/src/main/resources/theme/base/admin/angular-messages/common_en.properties @@ -1,4 +1,6 @@ enabled=Enabled name=Name save=Save -cancel=Cancel \ No newline at end of file +cancel=Cancel +onText=ON +offText=OFF \ No newline at end of file diff --git a/forms/common-themes/src/main/resources/theme/base/admin/angular-messages/realm-settings_de.properties b/forms/common-themes/src/main/resources/theme/base/admin/angular-messages/realm-settings_de.properties index 4b79d17fbe..2643771c26 100644 --- a/forms/common-themes/src/main/resources/theme/base/admin/angular-messages/realm-settings_de.properties +++ b/forms/common-themes/src/main/resources/theme/base/admin/angular-messages/realm-settings_de.properties @@ -1,18 +1,18 @@ realm-detail.enabled.tooltip=de Users and clients can only access a realm if it's enabled -realm-login-settings.registrationAllowed=de User registration -realm-login-settings.registrationAllowed.tooltip=de Enable/disable the registration page. A link for registration will show on login page too. -realm-login-settings.registrationEmailAsUsername=de Email as username -realm-login-settings.registrationEmailAsUsername.tooltip=de If enabled then username field is hidden from registration form and email is used as username for new user. -realm-login-settings.editUsernameAllowed=de Edit username -realm-login-settings.editUsernameAllowed.tooltip=de If enabled, the username field is editable, readonly otherwise. -realm-login-settings.resetPasswordAllowed=de Forget password -realm-login-settings.resetPasswordAllowed.tooltip=de Show a link on login page for user to click on when they have forgotten their credentials. -realm-login-settings.rememberMe=de Remember Me -realm-login-settings.rememberMe.tooltip=de Show checkbox on login page to allow user to remain logged in between browser restarts until session expires. -realm-login-settings.verifyEmail=de Verify email -realm-login-settings.verifyEmail.tooltip=de Require the user to verify their email address the first time they login. -realm-login-settings.sslRequired=de Require SSL -realm-login-settings.sslRequired.option.all=de all requests -realm-login-settings.sslRequired.option.external=de external requests -realm-login-settings.sslRequired.option.none=de none -realm-login-settings.sslRequired.tooltip=de Is HTTPS required? 'None' means HTTPS is not required for any client IP address. 'External requests' means localhost and private IP addresses can access without HTTPS. 'All requests' means HTTPS is required for all IP addresses. +registrationAllowed=de User registration +registrationAllowed.tooltip=de Enable/disable the registration page. A link for registration will show on login page too. +registrationEmailAsUsername=de Email as username +registrationEmailAsUsername.tooltip=de If enabled then username field is hidden from registration form and email is used as username for new user. +editUsernameAllowed=de Edit username +editUsernameAllowed.tooltip=de If enabled, the username field is editable, readonly otherwise. +resetPasswordAllowed=de Forget password +resetPasswordAllowed.tooltip=de Show a link on login page for user to click on when they have forgotten their credentials. +rememberMe=de Remember Me +rememberMe.tooltip=de Show checkbox on login page to allow user to remain logged in between browser restarts until session expires. +verifyEmail=de Verify email +verifyEmail.tooltip=de Require the user to verify their email address the first time they login. +sslRequired=de Require SSL +sslRequired.option.all=de all requests +sslRequired.option.external=de external requests +sslRequired.option.none=de none +sslRequired.tooltip=de Is HTTPS required? 'None' means HTTPS is not required for any client IP address. 'External requests' means localhost and private IP addresses can access without HTTPS. 'All requests' means HTTPS is required for all IP addresses. diff --git a/forms/common-themes/src/main/resources/theme/base/admin/resources/js/app.js b/forms/common-themes/src/main/resources/theme/base/admin/resources/js/app.js index f99e0effb0..d9d312cf41 100755 --- a/forms/common-themes/src/main/resources/theme/base/admin/resources/js/app.js +++ b/forms/common-themes/src/main/resources/theme/base/admin/resources/js/app.js @@ -57,7 +57,7 @@ module.config(function($translateProvider) { $translateProvider.preferredLanguage('en'); $translateProvider.useCookieStorage(); $translateProvider.useUrlLoader('messages.json'); - }); +}); module.config([ '$routeProvider', function($routeProvider) { $routeProvider diff --git a/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/realm-detail.html b/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/realm-detail.html index 83f1288c09..d20e9d5323 100755 --- a/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/realm-detail.html +++ b/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/realm-detail.html @@ -12,7 +12,7 @@
- +
{{'realm-detail.enabled.tooltip' | translate}}
diff --git a/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/realm-login-settings.html b/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/realm-login-settings.html index 451a315f2f..fc2eeb0c22 100755 --- a/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/realm-login-settings.html +++ b/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/realm-login-settings.html @@ -6,42 +6,42 @@
- +
{{'registrationAllowed.tooltip' | translate}}
- +
{{'registrationEmailAsUsername.tooltip' | translate}}
- +
{{'editUsernameAllowed.tooltip' | translate}}
- +
{{'resetPasswordAllowed.tooltip' |translate}}
- +
{{'rememberMe.tooltip' | translate}}
- +
{{'verifyEmail.tooltip' | translate}}