From c9d81b471b961b49a93b23792852bb43325f1457 Mon Sep 17 00:00:00 2001 From: "Leonardo J. Caballero G" Date: Wed, 5 Oct 2016 18:04:11 -0400 Subject: [PATCH 1/6] Added .gitignore file --- .gitignore | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..24b3e02c --- /dev/null +++ b/.gitignore @@ -0,0 +1,84 @@ +# Sublime project files +*.sublime-* + +# phpstorm project files +.idea + +# netbeans project files +nbproject + +# zend studio for eclipse project files +.buildpath +.project +.settings + +# Yii framework +# ========================= +!assets/.gitignore +runtime/* +!runtime/.gitignore +data/*.db +themes/classic/views/ +!web/uploads +/web/uploads/* + +# composer vendor dir +/vendor + +# composer itself is not needed +composer.phar +composer.lock + +# SASS +.sass-cache + +# ========================= +# Operating System Files +# ========================= + +# Unix / Linux +# ========================= +*~ + +# OSX +# ========================= + +# Mac DS_Store Files +.DS_Store +.AppleDouble +.LSOverride + +# Icon must ends with two \r. +Icon + + +# Thumbnails +._* + +# Files that might appear on external disk +.Spotlight-V100 +.Trashes + +# Windows +# ========================= + +# Windows image file caches +Thumbs.db +ehthumbs.db + +# Folder config file +Desktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msm +*.msp + +# phpunit itself is not needed +phpunit.phar +# local phpunit config +/phpunit.xml From 552a6d118211f97db18a57c29fe84b7b00def550 Mon Sep 17 00:00:00 2001 From: "Leonardo J. Caballero G" Date: Wed, 5 Oct 2016 20:25:27 -0400 Subject: [PATCH 2/6] Added more improvements about i18n --- messages/cs/back.php | 9 ++++++++- messages/de/back.php | 25 ++++++++++++++++--------- messages/fr/back.php | 26 +++++++++++++++++++++++++- messages/ko-KR/back.php | 13 ++++++++++--- messages/pl/back.php | 13 ++++++++++--- messages/pt-BR/back.php | 2 +- messages/pt-PT/back.php | 12 ++++++++++-- messages/ru/back.php | 13 ++++++++++--- models/User.php | 4 ++-- views/permission/view.php | 10 +++++----- 10 files changed, 97 insertions(+), 30 deletions(-) diff --git a/messages/cs/back.php b/messages/cs/back.php index 9099ffb8..9d409c5a 100644 --- a/messages/cs/back.php +++ b/messages/cs/back.php @@ -29,6 +29,7 @@ 'Child permissions' => '', 'Child roles' => '', 'Code' => '', + 'Confirmation Token' => '', 'Create' => '', 'Created' => '', 'Creating permission group' => '', @@ -36,6 +37,7 @@ 'Data' => '', 'Delete' => '', 'Description' => '', + 'E-mail' => '', 'E-mail confirmed' => '', 'E-mail with activation link has been sent to {email}. This link will expire in {minutes} min.' => '', 'Edit' => '', @@ -56,8 +58,9 @@ 'Permission creation' => '', 'Permission groups' => '', 'Permissions' => '', - 'Permissions for role - "{role}"' => '', 'Permissions for role:' => '', + 'Refresh routes' => '', + 'Refresh routes (and delete unused)' => '', 'Registration IP' => '', 'Repeat password' => '', 'Reset' => '', @@ -65,11 +68,15 @@ 'Roles' => '', 'Roles and permissions' => '', 'Roles and permissions for user:' => '', + 'Routes that are not exists in this application will be deleted. Do not recommended for application with "advanced" structure, because frontend and backend have they own set of routes.' => '', 'Rule' => '', 'Save' => '', 'Saved' => '', 'Search' => '', + 'Search route' => '', 'Settings for permission' => '', + 'Show all' => '', + 'Show only selected' => '', 'Status' => '', 'Superadmin' => '', 'Too many attempts' => '', diff --git a/messages/de/back.php b/messages/de/back.php index 0dc00b30..f9fb8a29 100644 --- a/messages/de/back.php +++ b/messages/de/back.php @@ -2,7 +2,7 @@ /** * Message translations. * - * This file is automatically generated by 'yii message' command. + * This file is automatically generated by 'yii message/extract' command. * It contains the localizable messages extracted from source code. * You may modify this file by translating the extracted messages. * @@ -17,22 +17,19 @@ * NOTE: this file must be saved in UTF-8 encoding. */ return [ - 'Banned' => '', - 'Browser' => '', - 'Code' => '', - 'E-mail with activation link has been sent to {email}. This link will expire in {minutes} min.' => '', - 'Login' => '', - 'Name' => '', - 'Status' => '', 'Active' => 'Aktiv', 'Are you sure you want to delete this user?' => 'Wollen Sie diesen Benutzer wirklich löschen?', + 'Banned' => '', 'Bind to IP' => 'An IP binden', + 'Browser' => '', 'Change own password' => 'Eigenes Passwort ändern', 'Change password' => 'Passwort ändern', 'Changing password' => 'Ändere Passwort', 'Changing password for user: ' => 'Ändere Passwort von Benutzer: ', 'Child permissions' => 'Kind-Berechtigungen', 'Child roles' => 'Kind-Rollen', + 'Code' => '', + 'Confirmation Token' => '', 'Create' => 'Erstellen', 'Created' => 'Erstellt', 'Creating permission group' => 'Erstelle Berechtigungs-Gruppe', @@ -40,7 +37,9 @@ 'Data' => 'Daten', 'Delete' => 'Löschen', 'Description' => 'Beschreibung', + 'E-mail' => '', 'E-mail confirmed' => 'E-Mail bestätigt', + 'E-mail with activation link has been sent to {email}. This link will expire in {minutes} min.' => '', 'Edit' => 'Bearbeiten', 'Editing' => 'Bearbeite', 'Editing permission group' => 'Bearbeite Berechtigungs-Gruppe', @@ -51,14 +50,17 @@ 'Group' => 'Gruppe', 'Inactive' => 'Inaktiv', 'Language' => 'Sprache', + 'Login' => '', + 'Name' => '', 'OS' => 'Betriebssystem', 'Password' => 'Passwort', 'Password has been changed' => 'Passwort wurde geändert', 'Permission creation' => 'Berechtigungserstellung', 'Permission groups' => 'Berechtigungs-Gruppen', 'Permissions' => 'Berechtigungen', - 'Permissions for role - "{role}"' => 'Berechtigungen für Rolle - "{role}"', 'Permissions for role:' => 'Berechtigungen für Rolle', + 'Refresh routes' => '', + 'Refresh routes (and delete unused)' => '', 'Registration IP' => 'Registrierung IP', 'Repeat password' => 'Passwort wiederholen', 'Reset' => 'Zurücksetzen', @@ -66,11 +68,16 @@ 'Roles' => 'Rollen', 'Roles and permissions' => 'Rollen und Berechtigungen', 'Roles and permissions for user:' => 'Rollen und Berechtigungen von Benutzer:', + 'Routes that are not exists in this application will be deleted. Do not recommended for application with "advanced" structure, because frontend and backend have they own set of routes.' => '', 'Rule' => 'Rolle', 'Save' => 'Speichern', 'Saved' => 'Gespeichert', 'Search' => 'Suchen', + 'Search route' => '', 'Settings for permission' => 'Einstellungen für Berechtigung', + 'Show all' => '', + 'Show only selected' => '', + 'Status' => '', 'Superadmin' => 'Super-Administrator', 'Too many attempts' => 'Zu viele Versuche', 'Type' => 'Typ', diff --git a/messages/fr/back.php b/messages/fr/back.php index b39e7485..efeacc7f 100644 --- a/messages/fr/back.php +++ b/messages/fr/back.php @@ -1,4 +1,21 @@ 'Actif', 'Are you sure you want to delete this user?' => 'Etes-vous sûre de vouloir supprimer cet utilisateur ?', @@ -12,6 +29,7 @@ 'Child permissions' => 'Sous-permissions ', 'Child roles' => 'Sous-rôles', 'Code' => 'Code', + 'Confirmation Token' => '', 'Create' => 'Créer', 'Created' => 'Créé le', 'Creating permission group' => 'Création de groupe de permission ', @@ -19,6 +37,7 @@ 'Data' => 'Données', 'Delete' => 'Supprimer', 'Description' => 'Description', + 'E-mail' => '', 'E-mail confirmed' => 'Confirmation d\'email', 'E-mail with activation link has been sent to {email}. This link will expire in {minutes} min.' => 'Un email comportant un lien d\'activation a été envoyé à {email}. Ce lien expirera dans {minutes} min.', 'Edit' => 'Modifier', @@ -39,8 +58,9 @@ 'Permission creation' => 'Création de permission', 'Permission groups' => 'Groupes de permission', 'Permissions' => 'Permissions', - 'Permissions for role - "{role}"' => 'Permissions pour le rôle - "{role}"', 'Permissions for role:' => 'Permission pour le rôle:', + 'Refresh routes' => '', + 'Refresh routes (and delete unused)' => '', 'Registration IP' => 'Adresse IP d\'enregistrement', 'Repeat password' => 'Répétez le mot de passe', 'Reset' => 'Remise à zéro', @@ -48,11 +68,15 @@ 'Roles' => 'Rôles', 'Roles and permissions' => 'Rôles et permissions', 'Roles and permissions for user:' => 'Rôles et permissions pour l\'utilisateur:', + 'Routes that are not exists in this application will be deleted. Do not recommended for application with "advanced" structure, because frontend and backend have they own set of routes.' => '', 'Rule' => 'Rêgle', 'Save' => 'Enregistrer', 'Saved' => 'Enregistrement', 'Search' => 'Rechercher', + 'Search route' => '', 'Settings for permission' => 'Réglages pour permission', + 'Show all' => '', + 'Show only selected' => '', 'Status' => 'Statut', 'Superadmin' => 'Superadmin', 'Too many attempts' => 'Trop de tentatives', diff --git a/messages/ko-KR/back.php b/messages/ko-KR/back.php index 1e7e5f99..f5a50536 100644 --- a/messages/ko-KR/back.php +++ b/messages/ko-KR/back.php @@ -2,7 +2,7 @@ /** * Message translations. * - * This file is automatically generated by 'yii message' command. + * This file is automatically generated by 'yii message/extract' command. * It contains the localizable messages extracted from source code. * You may modify this file by translating the extracted messages. * @@ -17,9 +17,9 @@ * NOTE: this file must be saved in UTF-8 encoding. */ return [ - 'Banned' => '', 'Active' => '활성', 'Are you sure you want to delete this user?' => '이 사용자를 삭제하시겠습니까?', + 'Banned' => '', 'Bind to IP' => '아이피에 바인드', 'Browser' => '브라우져', 'Change own password' => '자신의 암호를 변경', @@ -29,6 +29,7 @@ 'Child permissions' => '자식 권한', 'Child roles' => '자식 역할', 'Code' => '코드', + 'Confirmation Token' => '', 'Create' => '생성', 'Created' => '성됨', 'Creating permission group' => '권한 그룹 생성중', @@ -36,6 +37,7 @@ 'Data' => '데이터', 'Delete' => '삭제', 'Description' => '설명', + 'E-mail' => '', 'E-mail confirmed' => 'E-Mail 승인됨', 'E-mail with activation link has been sent to {email}. This link will expire in {minutes} min.' => '{email} 로 계정 활성화 링크를 보냈습니다. 이 메일은 {minutes}분 동안 유효합니다', 'Edit' => '편집', @@ -56,8 +58,9 @@ 'Permission creation' => '권한 생성', 'Permission groups' => '권한 그룹들', 'Permissions' => '권한들', - 'Permissions for role - "{role}"' => '역할을 위한 권한 - "{role}"', 'Permissions for role:' => '역할을 위한 권한', + 'Refresh routes' => '', + 'Refresh routes (and delete unused)' => '', 'Registration IP' => '등록 IP', 'Repeat password' => '암호 반복', 'Reset' => '재설정', @@ -65,11 +68,15 @@ 'Roles' => '역할들', 'Roles and permissions' => '역할과 권한', 'Roles and permissions for user:' => '사용자를 위한역할과 권한:', + 'Routes that are not exists in this application will be deleted. Do not recommended for application with "advanced" structure, because frontend and backend have they own set of routes.' => '', 'Rule' => '규칙', 'Save' => '저장', 'Saved' => '저장됨', 'Search' => '검색', + 'Search route' => '', 'Settings for permission' => '권한을 위한설정', + 'Show all' => '', + 'Show only selected' => '', 'Status' => '상태', 'Superadmin' => '슈퍼 관리자', 'Too many attempts' => '너무 많은 시도들', diff --git a/messages/pl/back.php b/messages/pl/back.php index cc4cadd8..be088439 100644 --- a/messages/pl/back.php +++ b/messages/pl/back.php @@ -2,7 +2,7 @@ /** * Message translations. * - * This file is automatically generated by 'yii message' command. + * This file is automatically generated by 'yii message/extract' command. * It contains the localizable messages extracted from source code. * You may modify this file by translating the extracted messages. * @@ -19,6 +19,7 @@ return [ 'Active' => 'Aktywny', 'Are you sure you want to delete this user?' => 'Czy na pewno chcesz usunąć tego użytkownika?', + 'Banned' => 'Zbanowany', 'Bind to IP' => 'Przypisz do IP', 'Browser' => 'Przeglądarka', 'Change own password' => 'Zmień swoje hasło', @@ -28,6 +29,7 @@ 'Child permissions' => 'Podrzędne uprawnienia', 'Child roles' => 'Podrzędne role', 'Code' => 'Kod', + 'Confirmation Token' => '', 'Create' => 'Utwórz', 'Created' => 'Utworzone', 'Creating permission group' => 'Tworzenie grupy uprawnień', @@ -35,6 +37,7 @@ 'Data' => 'Dane', 'Delete' => 'Usuń', 'Description' => 'Opis', + 'E-mail' => '', 'E-mail confirmed' => 'E-mail potwierdzony', 'E-mail with activation link has been sent to {email}. This link will expire in {minutes} min.' => '', 'Edit' => 'Edytuj', @@ -46,7 +49,6 @@ 'For example: 123.34.56.78, 168.111.192.12' => 'Przykładowo: 123.34.56.78, 168.111.192.12', 'Group' => 'Grupa', 'Inactive' => 'Nieaktywny', - 'Banned' => 'Zbanowany', 'Language' => 'Język', 'Login' => 'Login', 'Name' => 'Nazwa', @@ -56,8 +58,9 @@ 'Permission creation' => '', 'Permission groups' => 'Grupy uprawnień', 'Permissions' => 'Uprawnienia', - 'Permissions for role - "{role}"' => 'Uprawnienia roli - "{role}"', 'Permissions for role:' => 'Uprawnienia roli: ', + 'Refresh routes' => '', + 'Refresh routes (and delete unused)' => '', 'Registration IP' => 'Adres IP rejestracji', 'Repeat password' => 'Powtórz hasło', 'Reset' => 'Resetuj', @@ -65,11 +68,15 @@ 'Roles' => 'Role', 'Roles and permissions' => 'Role i uprawnienia', 'Roles and permissions for user:' => 'Role i uprawnienia użytkownika: ', + 'Routes that are not exists in this application will be deleted. Do not recommended for application with "advanced" structure, because frontend and backend have they own set of routes.' => '', 'Rule' => 'Reguła', 'Save' => 'Zapisz', 'Saved' => 'Zapisano', 'Search' => 'Szukaj', + 'Search route' => '', 'Settings for permission' => 'Ustawienia uprawnień', + 'Show all' => '', + 'Show only selected' => '', 'Status' => '', 'Superadmin' => 'Superadministrator', 'Too many attempts' => 'Zbyt wiele prób', diff --git a/messages/pt-BR/back.php b/messages/pt-BR/back.php index dff20526..29c753e7 100644 --- a/messages/pt-BR/back.php +++ b/messages/pt-BR/back.php @@ -2,7 +2,7 @@ /** * Message translations. * - * This file is automatically generated by 'yii message' command. + * This file is automatically generated by 'yii message/extract' command. * It contains the localizable messages extracted from source code. * You may modify this file by translating the extracted messages. * diff --git a/messages/pt-PT/back.php b/messages/pt-PT/back.php index d514622a..c24404d2 100644 --- a/messages/pt-PT/back.php +++ b/messages/pt-PT/back.php @@ -2,7 +2,7 @@ /** * Message translations. * - * This file is automatically generated by 'yii message' command. + * This file is automatically generated by 'yii message/extract' command. * It contains the localizable messages extracted from source code. * You may modify this file by translating the extracted messages. * @@ -19,6 +19,7 @@ return [ 'Active' => 'Ativo', 'Are you sure you want to delete this user?' => 'Você tem certeza de que deseja excluir este utilizador?', + 'Banned' => '', 'Bind to IP' => 'Víncular ao IP', 'Browser' => 'Navegador', 'Change own password' => 'Alterar a própria senha', @@ -28,6 +29,7 @@ 'Child permissions' => 'Permissões filhas', 'Child roles' => 'Regras filhas', 'Code' => 'Código', + 'Confirmation Token' => '', 'Create' => 'Criar', 'Created' => 'Criado', 'Creating permission group' => 'Criando grupo de permissões', @@ -35,6 +37,7 @@ 'Data' => 'Dados', 'Delete' => 'Excluir', 'Description' => 'Descrição', + 'E-mail' => '', 'E-mail confirmed' => 'E-mail confirmado', 'E-mail with activation link has been sent to {email}. This link will expire in {minutes} min.' =>'Um e-mail com o link de ativação foi enviado para {email}. Este link irá expirar dentro de {minutes} minutos.', 'Edit' => 'Editar', @@ -55,8 +58,9 @@ 'Permission creation' => 'Criação de permissão', 'Permission groups' => 'Grupos de permissão', 'Permissions' => 'Permissões', - 'Permissions for role - "{role}"' => 'Permissões da função - "{role}"', 'Permissions for role:' => 'Permissões da função:', + 'Refresh routes' => '', + 'Refresh routes (and delete unused)' => '', 'Registration IP' => 'Registo do IP', 'Repeat password' => 'Repetir senha', 'Reset' => 'Redefinir', @@ -64,11 +68,15 @@ 'Roles' => 'Funções', 'Roles and permissions' => 'Funções e permissões', 'Roles and permissions for user:' => 'Funções e permissões do utilizador:', + 'Routes that are not exists in this application will be deleted. Do not recommended for application with "advanced" structure, because frontend and backend have they own set of routes.' => '', 'Rule' => 'Regra', 'Save' => 'Salvar', 'Saved' => 'Salvo', 'Search' => 'Buscar', + 'Search route' => '', 'Settings for permission' => 'Configurações de permissões', + 'Show all' => '', + 'Show only selected' => '', 'Status' => 'Estado', 'Superadmin' => 'Superadmin', 'Too many attempts' => 'Demasiadas tentativas', diff --git a/messages/ru/back.php b/messages/ru/back.php index 0005dbb8..f1dfaf88 100644 --- a/messages/ru/back.php +++ b/messages/ru/back.php @@ -2,7 +2,7 @@ /** * Message translations. * - * This file is automatically generated by 'yii message' command. + * This file is automatically generated by 'yii message/extract' command. * It contains the localizable messages extracted from source code. * You may modify this file by translating the extracted messages. * @@ -17,9 +17,9 @@ * NOTE: this file must be saved in UTF-8 encoding. */ return [ - 'Banned' => '', 'Active' => 'Активен', 'Are you sure you want to delete this user?' => 'Вы уверены, что хотите удалить этого пользователя ?', + 'Banned' => '', 'Bind to IP' => 'Привязать к IP', 'Browser' => 'Браузер', 'Change own password' => 'Смена пароля', @@ -29,6 +29,7 @@ 'Child permissions' => 'Дочерние права', 'Child roles' => 'Дочерние роли', 'Code' => 'Код', + 'Confirmation Token' => '', 'Create' => 'Создать', 'Created' => 'Создано', 'Creating permission group' => 'Создание группы прав', @@ -36,6 +37,7 @@ 'Data' => 'Данные', 'Delete' => 'Удалить', 'Description' => 'Описание', + 'E-mail' => '', 'E-mail confirmed' => 'E-mail подтверждён', 'E-mail with activation link has been sent to {email}. This link will expire in {minutes} min.' => 'Ссылка активации была отправлена на {email}>. Срок действия ссылки {minutes} мин.', 'Edit' => 'Редактировать', @@ -56,8 +58,9 @@ 'Permission creation' => 'Создание права', 'Permission groups' => 'Группы прав', 'Permissions' => 'Права', - 'Permissions for role - "{role}"' => 'Права для роли - "{role}"', 'Permissions for role:' => 'Права для роли:', + 'Refresh routes' => '', + 'Refresh routes (and delete unused)' => '', 'Registration IP' => 'IP регистрации', 'Repeat password' => 'Повторите пароль', 'Reset' => 'Сбросить', @@ -65,11 +68,15 @@ 'Roles' => 'Роли', 'Roles and permissions' => 'Роли и права', 'Roles and permissions for user:' => 'Роли и права для пользователя', + 'Routes that are not exists in this application will be deleted. Do not recommended for application with "advanced" structure, because frontend and backend have they own set of routes.' => '', 'Rule' => 'Правило', 'Save' => 'Сохранить', 'Saved' => 'Сохранено', 'Search' => 'Поиск', + 'Search route' => '', 'Settings for permission' => 'Настройки для права', + 'Show all' => '', + 'Show only selected' => '', 'Status' => 'Статус', 'Superadmin' => 'Суперадмин', 'Too many attempts' => 'Лимит попыток превышен', diff --git a/models/User.php b/models/User.php index ef8c6901..51002567 100644 --- a/models/User.php +++ b/models/User.php @@ -318,7 +318,7 @@ public function attributeLabels() 'id' => 'ID', 'username' => UserManagementModule::t('back', 'Login'), 'superadmin' => UserManagementModule::t('back', 'Superadmin'), - 'confirmation_token' => 'Confirmation Token', + 'confirmation_token' => UserManagementModule::t('back', 'Confirmation Token'), 'registration_ip' => UserManagementModule::t('back', 'Registration IP'), 'bind_to_ip' => UserManagementModule::t('back', 'Bind to IP'), 'status' => UserManagementModule::t('back', 'Status'), @@ -328,7 +328,7 @@ public function attributeLabels() 'password' => UserManagementModule::t('back', 'Password'), 'repeat_password' => UserManagementModule::t('back', 'Repeat password'), 'email_confirmed' => UserManagementModule::t('back', 'E-mail confirmed'), - 'email' => 'E-mail', + 'email' => UserManagementModule::t('back', 'E-mail'), ]; } diff --git a/views/permission/view.php b/views/permission/view.php index 80bca851..a28af200 100644 --- a/views/permission/view.php +++ b/views/permission/view.php @@ -93,7 +93,7 @@ Routes $item->name, 'deleteUnused'=>1], [ 'class' => 'btn btn-default btn-sm pull-right', @@ -103,7 +103,7 @@ ) ?> $item->name], [ 'class' => 'btn btn-default btn-sm pull-right', @@ -128,15 +128,15 @@
- +
- Show only selected + - Show all +
From 50abb314b0768060ca3d3bf4f8373bf69f6771e0 Mon Sep 17 00:00:00 2001 From: "Leonardo J. Caballero G" Date: Wed, 5 Oct 2016 20:27:56 -0400 Subject: [PATCH 3/6] Added Spanish translation support --- messages/config.php | 2 +- messages/es/back.php | 94 +++++++++++++++++++++++++++++++++++++++++++ messages/es/front.php | 50 +++++++++++++++++++++++ 3 files changed, 145 insertions(+), 1 deletion(-) create mode 100644 messages/es/back.php create mode 100644 messages/es/front.php diff --git a/messages/config.php b/messages/config.php index 9d5feacb..f4af5ee7 100644 --- a/messages/config.php +++ b/messages/config.php @@ -5,7 +5,7 @@ 'sourcePath' => __DIR__ . '/../', // array, required, list of language codes that the extracted messages // should be translated to. For example, ['zh-CN', 'de']. - 'languages' => ['cs', 'de', 'ru','pt-BR','ko-KR', 'pt-PT'], + 'languages' => ['cs', 'de', 'es', 'ru','pt-BR','ko-KR', 'pt-PT'], // string, the name of the function for translating messages. // Defaults to 'Yii::t'. This is used as a mark to find the messages to be // translated. You may use a string for single function name or an array for diff --git a/messages/es/back.php b/messages/es/back.php new file mode 100644 index 00000000..bb6dcecc --- /dev/null +++ b/messages/es/back.php @@ -0,0 +1,94 @@ + 'Activo', + 'Are you sure you want to delete this user?' => '¿Está seguro que desea eliminar este usuario?', + 'Banned' => 'Bloqueado', + 'Bind to IP' => 'Casar a IP', + 'Browser' => 'Navegador', + 'Change own password' => 'Cambiar propia contraseña', + 'Change password' => 'Cambiar contraseña de usuario', + 'Changing password' => 'Cambiando contraseña', + 'Changing password for user: ' => 'Cambiando contraseña para usuario: ', + 'Child permissions' => 'Permisos hijos', + 'Child roles' => 'Roles hijos', + 'Code' => 'Código', + 'Confirmation Token' => 'Token de confirmación', + 'Create' => 'Crear', + 'Created' => 'Creado', + 'Creating permission group' => 'Creación de grupo de permisos', + 'Current password' => 'Actual contraseña', + 'Data' => 'Dato', + 'Delete' => 'Eliminar', + 'Description' => 'Descripción', + 'E-mail' => 'Correo electrónico', + 'E-mail confirmed' => 'Correo confirmado', + 'E-mail with activation link has been sent to {email}. This link will expire in {minutes} min.' => 'Un correo electrónico con un enlace de activación ha sido enviado a {email}. El enlace expirara en {minutes} minutos.', + 'Edit' => 'Editar', + 'Editing' => 'Editando', + 'Editing permission group' => 'Editando grupo de permiso', + 'Editing permission: ' => 'Editando permiso:', + 'Editing role: ' => 'Editando rol:', + 'Editing user: ' => 'Editando usuario:', + 'For example: 123.34.56.78, 168.111.192.12' => 'Por ejemplo: 123.34.56.78, 168.111.192.12', + 'Group' => 'Grupo', + 'Inactive' => 'Inactivo', + 'Language' => 'Idioma', + 'Login' => 'Inicio de sesión', + 'Name' => 'Nombre', + 'OS' => 'Sistema Operativo', + 'Password' => 'Contraseña', + 'Password has been changed' => 'Contraseña ha sido cambiada', + 'Permission creation' => 'Creación de permisos', + 'Permission groups' => 'Grupos de permisos', + 'Permissions' => 'Permisos', + 'Permissions for role:' => 'Permisos de role:', + 'Refresh routes' => 'Refrescar rutas', + 'Refresh routes (and delete unused)' => 'Refrescar rutas (y eliminar sin uso)', + 'Registration IP' => 'IP Registrada', + 'Repeat password' => 'Repetir contraseña', + 'Reset' => 'Reestablecer', + 'Role creation' => 'Creación de Rol', + 'Roles' => 'Roles', + 'Roles and permissions' => 'Roles y permisos', + 'Roles and permissions for user:' => 'Roles y permisos para el usuario', + 'Routes that are not exists in this application will be deleted. Do not recommended for application with "advanced" structure, because frontend and backend have they own set of routes.' => 'Se eliminarán rutas que no existan en esta aplicación. No se recomienda para aplicaciones con estructura de "avanzada", porque frontend y backend tienen que propio conjunto de rutas.', + 'Rule' => 'Regla', + 'Save' => 'Guardar', + 'Saved' => 'Guardado', + 'Search' => 'Buscar', + 'Search route' => 'Buscar ruta', + 'Settings for permission' => 'Configuración de permiso', + 'Show all' => 'Mostrar todos', + 'Show only selected' => 'Mostrar solo seleccionados', + 'Status' => 'Estatus', + 'Superadmin' => 'Super admin', + 'Too many attempts' => 'Demasiados intentos', + 'Type' => 'Tipo', + 'Updated' => 'Actualizado', + 'User' => 'Usuario', + 'User agent' => 'Agente de Usuario', + 'User creation' => 'Creación de Usuario', + 'Users' => 'Usuarios', + 'Visit Time' => 'Fecha de visita', + 'Visit log' => 'Registro de visita', + 'Wrong format. Enter valid IPs separated by comma' => 'Formato incorrecto. Ingrese IPs valida separada por coma', + 'Wrong password' => 'Contraseña incorrecta', + 'You can not change own permissions' => 'Usted no puede cambiar sus propios permisos', +]; diff --git a/messages/es/front.php b/messages/es/front.php new file mode 100644 index 00000000..1627611c --- /dev/null +++ b/messages/es/front.php @@ -0,0 +1,50 @@ + 'Autorización', + 'Captcha' => 'Código Captcha', + 'Check your E-mail for further instructions' => 'Verifique su correo electrónico para futura instrucciones', + 'Check your e-mail {email} for instructions to activate account' => 'Verifique su correo electrónico {mail} para obtener las instrucciones para activar la cuenta', + 'Confirm' => 'Confirmar', + 'Confirm E-mail' => 'Confirmar correo electrónico', + 'Continue' => 'Continuar', + 'Could not send confirmation email' => 'No fue posible enviar correo electrónico de confirmación', + 'E-mail confirmation for' => 'Confirmación de correo electrónico para', + 'E-mail confirmed' => 'Correo electrónico confirmado', + 'E-mail is invalid' => 'Correo electrónico inválido', + 'Forgot password ?' => '¿Olvido la contraseña?', + 'Incorrect username or password.' => 'Nombre de usuario o contraseña incorrecta.', + 'Login' => 'Usuario', + 'Login has been taken' => 'Este login ya existe', + 'Password' => 'contraseña', + 'Password recovery' => 'Recuperación de contraseña', + 'Password reset for' => 'Redefinir contraseña para', + 'Recover' => 'Recuperar', + 'Register' => 'Registrar', + 'Registration' => 'Registro', + 'Registration - confirm your e-mail' => 'Registro - Confirmar su correo electrónico', + 'Remember me' => 'Recordarme', + 'Repeat password' => 'Repita a contraseña', + 'This E-mail already exists' => 'Este correo electrónico ya existe', + 'Token not found. It may be expired' => 'Token no encontrado. Pode haber expirado', + 'Token not found. It may be expired. Try reset password once more' => 'Token no encontrado. Pode haber expirado. Trate de redefinir a contraseña una vez mas', + 'Too many attempts' => 'Demasiados intentos', + 'Unable to send message for email provided' => 'Deshabilitado para enviar mensaje por correo electrónico proveído', + 'You could not login from this IP' => 'Usted no puede iniciar sesión desde esta dirección IP', +]; From 77bc0951d9e6d435827e219ee526fa4adf12e381 Mon Sep 17 00:00:00 2001 From: "Leonardo J. Caballero G" Date: Thu, 6 Oct 2016 00:40:16 -0400 Subject: [PATCH 4/6] Updated Spanish translation --- messages/es/front.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/messages/es/front.php b/messages/es/front.php index 1627611c..794942ba 100644 --- a/messages/es/front.php +++ b/messages/es/front.php @@ -30,7 +30,7 @@ 'E-mail is invalid' => 'Correo electrónico inválido', 'Forgot password ?' => '¿Olvido la contraseña?', 'Incorrect username or password.' => 'Nombre de usuario o contraseña incorrecta.', - 'Login' => 'Usuario', + 'Login' => 'Entrar', 'Login has been taken' => 'Este login ya existe', 'Password' => 'contraseña', 'Password recovery' => 'Recuperación de contraseña', From d2e4420b0eb189f5d57a1c368c13ebe9be726cdd Mon Sep 17 00:00:00 2001 From: "Leonardo J. Caballero G" Date: Thu, 13 Oct 2016 11:51:47 -0400 Subject: [PATCH 5/6] Updated with new strings and fixed spell --- messages/es/back.php | 3 +++ messages/es/front.php | 9 +++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/messages/es/back.php b/messages/es/back.php index bb6dcecc..c254af93 100644 --- a/messages/es/back.php +++ b/messages/es/back.php @@ -48,7 +48,9 @@ 'Editing user: ' => 'Editando usuario:', 'For example: 123.34.56.78, 168.111.192.12' => 'Por ejemplo: 123.34.56.78, 168.111.192.12', 'Group' => 'Grupo', + 'ID' => 'Id', 'Inactive' => 'Inactivo', + 'IP' => 'IP', 'Language' => 'Idioma', 'Login' => 'Inicio de sesión', 'Name' => 'Nombre', @@ -79,6 +81,7 @@ 'Show only selected' => 'Mostrar solo seleccionados', 'Status' => 'Estatus', 'Superadmin' => 'Super admin', + 'Token' => 'Código Token', 'Too many attempts' => 'Demasiados intentos', 'Type' => 'Tipo', 'Updated' => 'Actualizado', diff --git a/messages/es/front.php b/messages/es/front.php index 794942ba..c3758bb9 100644 --- a/messages/es/front.php +++ b/messages/es/front.php @@ -25,16 +25,17 @@ 'Confirm E-mail' => 'Confirmar correo electrónico', 'Continue' => 'Continuar', 'Could not send confirmation email' => 'No fue posible enviar correo electrónico de confirmación', - 'E-mail confirmation for' => 'Confirmación de correo electrónico para', + 'E-mail' => 'Correo electrónico', + 'E-mail confirmation for' => 'Correo electrónico para confirmación', 'E-mail confirmed' => 'Correo electrónico confirmado', 'E-mail is invalid' => 'Correo electrónico inválido', 'Forgot password ?' => '¿Olvido la contraseña?', 'Incorrect username or password.' => 'Nombre de usuario o contraseña incorrecta.', - 'Login' => 'Entrar', + 'Login' => 'Inicio de sesión', 'Login has been taken' => 'Este login ya existe', - 'Password' => 'contraseña', + 'Password' => 'Contraseña', 'Password recovery' => 'Recuperación de contraseña', - 'Password reset for' => 'Redefinir contraseña para', + 'Password reset for' => 'Contraseña a definir de nuevo', 'Recover' => 'Recuperar', 'Register' => 'Registrar', 'Registration' => 'Registro', 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 6/6] 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'), ]; }