From cd53d0a3f2ae5395f35cf7972c1a074b643140bb Mon Sep 17 00:00:00 2001 From: "Leonardo J. Caballero G" Date: Thu, 13 Oct 2016 11:57:09 -0400 Subject: [PATCH] Added more improvements about i18n and updated translations with new strings --- messages/cs/back.php | 3 +++ messages/cs/front.php | 1 + messages/de/back.php | 3 +++ messages/de/front.php | 1 + messages/fr/back.php | 3 +++ messages/fr/front.php | 1 + messages/ko-KR/back.php | 3 +++ messages/ko-KR/front.php | 1 + messages/pl/back.php | 3 +++ messages/pl/front.php | 1 + messages/pt-BR/back.php | 3 +++ messages/pt-BR/front.php | 1 + messages/pt-PT/back.php | 3 +++ messages/pt-PT/front.php | 1 + messages/ru/back.php | 3 +++ messages/ru/front.php | 1 + models/UserVisitLog.php | 6 +++--- models/forms/ConfirmEmailForm.php | 2 +- 18 files changed, 36 insertions(+), 4 deletions(-) diff --git a/messages/cs/back.php b/messages/cs/back.php index 9d409c5a..dd7fd4b7 100644 --- a/messages/cs/back.php +++ b/messages/cs/back.php @@ -48,7 +48,9 @@ 'Editing user: ' => '', 'For example: 123.34.56.78, 168.111.192.12' => '', 'Group' => '', + 'ID' => '', 'Inactive' => '', + 'IP' => '', 'Language' => '', 'Login' => '', 'Name' => '', @@ -79,6 +81,7 @@ 'Show only selected' => '', 'Status' => '', 'Superadmin' => '', + 'Token' => '', 'Too many attempts' => '', 'Type' => '', 'Updated' => '', diff --git a/messages/cs/front.php b/messages/cs/front.php index 6b19fa6e..74d2434f 100644 --- a/messages/cs/front.php +++ b/messages/cs/front.php @@ -25,6 +25,7 @@ 'Confirm E-mail' => '', 'Continue' => '', 'Could not send confirmation email' => '', + 'E-mail' => '', 'E-mail confirmation for' => '', 'E-mail confirmed' => '', 'E-mail is invalid' => '', diff --git a/messages/de/back.php b/messages/de/back.php index f9fb8a29..16965e3f 100644 --- a/messages/de/back.php +++ b/messages/de/back.php @@ -48,7 +48,9 @@ 'Editing user: ' => 'Bearbeite Benutzer', 'For example: 123.34.56.78, 168.111.192.12' => 'Zum Beispiel: 123.34.56.78, 168.111.192.12', 'Group' => 'Gruppe', + 'ID' => '', 'Inactive' => 'Inaktiv', + 'IP' => '', 'Language' => 'Sprache', 'Login' => '', 'Name' => '', @@ -79,6 +81,7 @@ 'Show only selected' => '', 'Status' => '', 'Superadmin' => 'Super-Administrator', + 'Token' => '', 'Too many attempts' => 'Zu viele Versuche', 'Type' => 'Typ', 'Updated' => 'Aktualisiert', diff --git a/messages/de/front.php b/messages/de/front.php index 82f473be..bc2f9cbf 100644 --- a/messages/de/front.php +++ b/messages/de/front.php @@ -26,6 +26,7 @@ 'Confirm' => 'Bestätigen', 'Confirm E-mail' => 'E-Mail bestätigen', 'Could not send confirmation email' => 'E-Mail zur Kontoaktivierung konnte nicht versandt werden', + 'E-mail' => '', 'E-mail confirmation for' => 'E-Mail-Bestätigung für', 'E-mail confirmed' => 'E-Mail bestätigt', 'E-mail is invalid' => 'E-Mail ist ungültig', diff --git a/messages/fr/back.php b/messages/fr/back.php index efeacc7f..d73dab46 100644 --- a/messages/fr/back.php +++ b/messages/fr/back.php @@ -48,7 +48,9 @@ 'Editing user: ' => 'Modification utilisateur', 'For example: 123.34.56.78, 168.111.192.12' => 'Par exemple: 123.34.56.78, 168.111.192.12', 'Group' => 'Groupe', + 'ID' => '', 'Inactive' => 'Inactif', + 'IP' => '', 'Language' => 'Langage', 'Login' => 'Se connecter', 'Name' => 'Nom', @@ -79,6 +81,7 @@ 'Show only selected' => '', 'Status' => 'Statut', 'Superadmin' => 'Superadmin', + 'Token' => '', 'Too many attempts' => 'Trop de tentatives', 'Type' => 'Type', 'Updated' => 'Modifié le', diff --git a/messages/fr/front.php b/messages/fr/front.php index 09b49729..c8937415 100644 --- a/messages/fr/front.php +++ b/messages/fr/front.php @@ -8,6 +8,7 @@ 'Confirm E-mail' => 'Confirmation d\'email', 'Continue' => 'Continuer', 'Could not send confirmation email' => 'Impossible d\'envoyer la confirmation d\'email', + 'E-mail' => '', 'E-mail confirmation for' => 'Confirmation d\'email pour', 'E-mail confirmed' => 'Email confirmé', 'E-mail is invalid' => 'L\adresse email est invalide', diff --git a/messages/ko-KR/back.php b/messages/ko-KR/back.php index f5a50536..22aa9fdb 100644 --- a/messages/ko-KR/back.php +++ b/messages/ko-KR/back.php @@ -48,7 +48,9 @@ 'Editing user: ' => '사용자 편집중', 'For example: 123.34.56.78, 168.111.192.12' => '예시 : 123.34.56.78, 168.111.192.12', 'Group' => '그룹', + 'ID' => '', 'Inactive' => '비활성화', + 'IP' => '', 'Language' => '언어', 'Login' => '로그인', 'Name' => '이름', @@ -79,6 +81,7 @@ 'Show only selected' => '', 'Status' => '상태', 'Superadmin' => '슈퍼 관리자', + 'Token' => '', 'Too many attempts' => '너무 많은 시도들', 'Type' => '유형', 'Updated' => '수정됨', diff --git a/messages/ko-KR/front.php b/messages/ko-KR/front.php index 39ce235f..9f856d7c 100644 --- a/messages/ko-KR/front.php +++ b/messages/ko-KR/front.php @@ -27,6 +27,7 @@ 'Check your E-mail for further instructions' => '다음에 따라 이메일을 체크해주세요', 'Confirm' => '확인', 'Confirm E-mail' => 'E-Mail 확인', + 'E-mail' => '', 'E-mail confirmation for' => 'E-Mail을 확인', 'E-mail confirmed' => 'E-Mail 확인됨', 'E-mail is invalid' => 'E-Mail이 부정확합니다', diff --git a/messages/pl/back.php b/messages/pl/back.php index be088439..884e9d34 100644 --- a/messages/pl/back.php +++ b/messages/pl/back.php @@ -48,7 +48,9 @@ 'Editing user: ' => 'Edycja użytkownika: ', 'For example: 123.34.56.78, 168.111.192.12' => 'Przykładowo: 123.34.56.78, 168.111.192.12', 'Group' => 'Grupa', + 'ID' => '', 'Inactive' => 'Nieaktywny', + 'IP' => '', 'Language' => 'Język', 'Login' => 'Login', 'Name' => 'Nazwa', @@ -79,6 +81,7 @@ 'Show only selected' => '', 'Status' => '', 'Superadmin' => 'Superadministrator', + 'Token' => '', 'Too many attempts' => 'Zbyt wiele prób', 'Type' => 'Typ', 'Updated' => 'Zaktualizowano', diff --git a/messages/pl/front.php b/messages/pl/front.php index 1d0bb7b4..b575837f 100644 --- a/messages/pl/front.php +++ b/messages/pl/front.php @@ -24,6 +24,7 @@ 'Confirm' => 'Potwierdź', 'Confirm E-mail' => 'Potwierdź adres e-mail', 'Could not send confirmation email' => 'Nie udało się wysłać maila potwierdzającego', + 'E-mail' => '', 'E-mail confirmation for' => 'Potwierdzenie e-maila dla', 'E-mail confirmed' => 'Adres e-mail potwierdzony', 'E-mail is invalid' => 'Nieprawidłowy adres e-mail', diff --git a/messages/pt-BR/back.php b/messages/pt-BR/back.php index 29c753e7..9cfcc175 100644 --- a/messages/pt-BR/back.php +++ b/messages/pt-BR/back.php @@ -47,7 +47,9 @@ 'Editing user: ' => 'Editando usuário: ', 'For example: 123.34.56.78, 168.111.192.12' => 'Por exemplo: 123.34.56.78, 168.111.192.12', 'Group' => 'Grupo', + 'ID' => '', 'Inactive' => 'Inativo', + 'IP' => '', 'Language' => 'Idioma', 'Login' => 'Login', 'Name' => 'Nome', @@ -72,6 +74,7 @@ 'Search' => 'Buscar', 'Settings for permission' => 'Configurações de permissões', 'Status' => 'Status', + 'Token' => '', 'Too many attempts' => 'Muitas tentativas', 'Type' => 'Tipo', 'Updated' => 'Atualizado', diff --git a/messages/pt-BR/front.php b/messages/pt-BR/front.php index fb71ce74..920a1622 100644 --- a/messages/pt-BR/front.php +++ b/messages/pt-BR/front.php @@ -25,6 +25,7 @@ 'Confirm' => 'Confirmar', 'Confirm E-mail' => 'Confirmar E-mail', 'Could not send confirmation email' => 'Não foi possível enviar email de confirmação', + 'E-mail' => '', 'E-mail confirmation for' => 'Confirmação de e-mail para', 'E-mail confirmed' => 'E-mail confirmado', 'E-mail is invalid' => 'E-mail inválido', diff --git a/messages/pt-PT/back.php b/messages/pt-PT/back.php index c24404d2..467d5711 100644 --- a/messages/pt-PT/back.php +++ b/messages/pt-PT/back.php @@ -48,7 +48,9 @@ 'Editing user: ' => 'Editando utilizador: ', 'For example: 123.34.56.78, 168.111.192.12' => 'Por exemplo: 123.34.56.78, 168.111.192.12', 'Group' => 'Grupo', + 'ID' => '', 'Inactive' => 'Inativo', + 'IP' => '', 'Language' => 'Idioma', 'Login' => 'Nome de utilizador', 'Name' => 'Nome', @@ -79,6 +81,7 @@ 'Show only selected' => '', 'Status' => 'Estado', 'Superadmin' => 'Superadmin', + 'Token' => '', 'Too many attempts' => 'Demasiadas tentativas', 'Type' => 'Tipo', 'Updated' => 'Atualizado', diff --git a/messages/pt-PT/front.php b/messages/pt-PT/front.php index 2e10e295..2446addd 100644 --- a/messages/pt-PT/front.php +++ b/messages/pt-PT/front.php @@ -26,6 +26,7 @@ 'Check your E-mail for further instructions' => 'Verifique o seu e-mail para mais instruções', 'Confirm' => 'Confirmar', 'Confirm E-mail' => 'Confirmar E-mail', + 'E-mail' => '', 'E-mail confirmation for' => 'Confirmação de e-mail para', 'E-mail confirmed' => 'E-mail confirmado', 'E-mail is invalid' => 'E-mail inválido', diff --git a/messages/ru/back.php b/messages/ru/back.php index f1dfaf88..42e083ea 100644 --- a/messages/ru/back.php +++ b/messages/ru/back.php @@ -48,7 +48,9 @@ 'Editing user: ' => 'Редактирование пользователя: ', 'For example: 123.34.56.78, 168.111.192.12' => 'Напрмиер: 123.34.56.78, 168.111.192.12', 'Group' => 'Группа', + 'ID' => '', 'Inactive' => 'Неактивен', + 'IP' => '', 'Language' => 'Язык', 'Login' => 'Логин', 'Name' => 'Название', @@ -79,6 +81,7 @@ 'Show only selected' => '', 'Status' => 'Статус', 'Superadmin' => 'Суперадмин', + 'Token' => '', 'Too many attempts' => 'Лимит попыток превышен', 'Type' => 'Тип', 'Updated' => 'Обновлено', diff --git a/messages/ru/front.php b/messages/ru/front.php index 5d1fea74..ba438ff6 100644 --- a/messages/ru/front.php +++ b/messages/ru/front.php @@ -25,6 +25,7 @@ 'Confirm' => 'Подтвердить', 'Confirm E-mail' => 'Подтвердить E-mail', 'Could not send confirmation email' => 'Не удалось отправить e-mail для активации аккаунта', + 'E-mail' => '', 'E-mail confirmation for' => 'Подтверждение E-mail для', 'E-mail confirmed' => 'E-mail подтверждён', 'E-mail is invalid' => 'Неверный E-mail', diff --git a/models/UserVisitLog.php b/models/UserVisitLog.php index 98aab2b4..0e253c18 100644 --- a/models/UserVisitLog.php +++ b/models/UserVisitLog.php @@ -103,9 +103,9 @@ public function rules() public function attributeLabels() { return [ - 'id' => 'ID', - 'token' => 'Token', - 'ip' => 'IP', + 'id' => UserManagementModule::t('back', 'ID'), + 'token' => UserManagementModule::t('back', 'Token'), + 'ip' => UserManagementModule::t('back', 'IP'), 'language' => UserManagementModule::t('back', 'Language'), 'browser' => UserManagementModule::t('back', 'Browser'), 'os' => UserManagementModule::t('back', 'OS'), diff --git a/models/forms/ConfirmEmailForm.php b/models/forms/ConfirmEmailForm.php index 90b2269f..d67c5638 100644 --- a/models/forms/ConfirmEmailForm.php +++ b/models/forms/ConfirmEmailForm.php @@ -69,7 +69,7 @@ public function validateEmailConfirmedUnique() public function attributeLabels() { return [ - 'email' => 'E-mail', + 'email' => UserManagementModule::t('front', 'E-mail'), ]; }