From 3d9fd62aa0f298510fb64798c4238c61e7fc6fe8 Mon Sep 17 00:00:00 2001 From: Lorenzo Milesi Date: Mon, 22 Oct 2018 18:13:16 +0200 Subject: [PATCH] Missing translatable strings #276 --- CHANGELOG.md | 1 + src/User/Model/Rule.php | 12 +++ src/User/resources/i18n/ca/usuario.php | 2 + src/User/resources/i18n/da/usuario.php | 2 + src/User/resources/i18n/de-DU/usuario.php | 2 + src/User/resources/i18n/de/usuario.php | 2 + src/User/resources/i18n/es/usuario.php | 2 + src/User/resources/i18n/et/usuario.php | 2 + src/User/resources/i18n/fa-IR/usuario.php | 2 + src/User/resources/i18n/fi/usuario.php | 2 + src/User/resources/i18n/fr/usuario.php | 2 + src/User/resources/i18n/hr/usuario.php | 2 + src/User/resources/i18n/hu/usuario.php | 2 + src/User/resources/i18n/it/usuario.php | 2 + src/User/resources/i18n/kk/usuario.php | 2 + src/User/resources/i18n/lt/usuario.php | 2 + src/User/resources/i18n/nl/usuario.php | 2 + src/User/resources/i18n/pl/usuario.php | 2 + src/User/resources/i18n/pt-BR/usuario.php | 2 + src/User/resources/i18n/pt-PT/usuario.php | 78 ++++++++++--------- src/User/resources/i18n/ro/usuario.php | 2 + src/User/resources/i18n/ru/usuario.php | 2 + src/User/resources/i18n/th/usuario.php | 2 + src/User/resources/i18n/tr-TR/usuario.php | 2 + src/User/resources/i18n/uk/usuario.php | 2 + src/User/resources/i18n/vi/usuario.php | 2 + src/User/resources/i18n/zh-CN/usuario.php | 2 + src/User/resources/views/permission/_form.php | 2 +- src/User/resources/views/rule/create.php | 2 +- src/User/resources/views/rule/update.php | 2 +- 30 files changed, 104 insertions(+), 41 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7cacee1..fdfd888 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ - Fix #252: Delete check for unexpected property `allowPasswordRecovery` for resend email by admin (bscheshirwork) - Fix #254: Rename `GDPR` properties to `lowerCamelCase` style (bscheshirwork) - Fix #258: Rename `GDPR` delete action to `lowerCamelCase`/`dash` style (bscheshirwork) + - Fix #276: Fix missing translatable strings ## 1.1.4 - February 19, 2018 - Enh: Check enableEmailConfirmation on registration (faenir) diff --git a/src/User/Model/Rule.php b/src/User/Model/Rule.php index f993368..a8d1f55 100644 --- a/src/User/Model/Rule.php +++ b/src/User/Model/Rule.php @@ -15,6 +15,7 @@ use Da\User\Traits\AuthManagerAwareTrait; use Da\User\Validator\RbacRuleNameValidator; use Da\User\Validator\RbacRuleValidator; use yii\base\Model; +use Yii; class Rule extends Model { @@ -57,4 +58,15 @@ class Rule extends Model [['className'], RbacRuleValidator::class], ]; } + + /** + * {@inheritdoc} + */ + public function attributeLabels() + { + return [ + 'name' => Yii::t('usuario', 'Name'), + 'className' => Yii::t('usuario', 'Rule class name'), + ]; + } } diff --git a/src/User/resources/i18n/ca/usuario.php b/src/User/resources/i18n/ca/usuario.php index 064eb08..89288fb 100644 --- a/src/User/resources/i18n/ca/usuario.php +++ b/src/User/resources/i18n/ca/usuario.php @@ -175,6 +175,7 @@ return [ 'Roles' => '', 'Rule' => '', 'Rule class must extend "yii\\rbac\\Rule".' => '', + 'Rule class name' => '', 'Rule name' => '', 'Rule name {0} is already in use' => '', 'Rule {0} does not exists' => '', @@ -182,6 +183,7 @@ return [ 'Rules' => '', 'Save' => '', 'Scan the QrCode with Google Authenticator App, then insert its temporary code on the box and submit.' => '', + 'Select rule...' => '', 'Send password recovery email' => '', 'Sign in' => '', 'Sign up' => '', diff --git a/src/User/resources/i18n/da/usuario.php b/src/User/resources/i18n/da/usuario.php index 064eb08..89288fb 100644 --- a/src/User/resources/i18n/da/usuario.php +++ b/src/User/resources/i18n/da/usuario.php @@ -175,6 +175,7 @@ return [ 'Roles' => '', 'Rule' => '', 'Rule class must extend "yii\\rbac\\Rule".' => '', + 'Rule class name' => '', 'Rule name' => '', 'Rule name {0} is already in use' => '', 'Rule {0} does not exists' => '', @@ -182,6 +183,7 @@ return [ 'Rules' => '', 'Save' => '', 'Scan the QrCode with Google Authenticator App, then insert its temporary code on the box and submit.' => '', + 'Select rule...' => '', 'Send password recovery email' => '', 'Sign in' => '', 'Sign up' => '', diff --git a/src/User/resources/i18n/de-DU/usuario.php b/src/User/resources/i18n/de-DU/usuario.php index 064eb08..89288fb 100644 --- a/src/User/resources/i18n/de-DU/usuario.php +++ b/src/User/resources/i18n/de-DU/usuario.php @@ -175,6 +175,7 @@ return [ 'Roles' => '', 'Rule' => '', 'Rule class must extend "yii\\rbac\\Rule".' => '', + 'Rule class name' => '', 'Rule name' => '', 'Rule name {0} is already in use' => '', 'Rule {0} does not exists' => '', @@ -182,6 +183,7 @@ return [ 'Rules' => '', 'Save' => '', 'Scan the QrCode with Google Authenticator App, then insert its temporary code on the box and submit.' => '', + 'Select rule...' => '', 'Send password recovery email' => '', 'Sign in' => '', 'Sign up' => '', diff --git a/src/User/resources/i18n/de/usuario.php b/src/User/resources/i18n/de/usuario.php index c8462ea..bba81ec 100644 --- a/src/User/resources/i18n/de/usuario.php +++ b/src/User/resources/i18n/de/usuario.php @@ -39,6 +39,8 @@ return [ 'Password age' => '', 'Privacy' => '', 'Privacy settings' => '', + 'Rule class name' => '', + 'Select rule...' => '', 'There was an error in saving user' => '', 'This will disable two factor authentication. Are you sure?' => '', 'This will remove your personal data from this site. You will no longer be able to sign in.' => '', diff --git a/src/User/resources/i18n/es/usuario.php b/src/User/resources/i18n/es/usuario.php index bfcf85e..db44f06 100644 --- a/src/User/resources/i18n/es/usuario.php +++ b/src/User/resources/i18n/es/usuario.php @@ -17,6 +17,8 @@ * NOTE: this file must be saved in UTF-8 encoding. */ return [ + 'Rule class name' => '', + 'Select rule...' => '', 'Two factor authentication protects you in case of stolen credentials' => '', '{0, date, MMM dd, YYYY HH:mm}' => '', 'Two factor authentication protects you against stolen credentials' => '@@La autenticación de dos factores le protege del robo de credenciales@@', diff --git a/src/User/resources/i18n/et/usuario.php b/src/User/resources/i18n/et/usuario.php index afc2f8e..9fd8a3b 100644 --- a/src/User/resources/i18n/et/usuario.php +++ b/src/User/resources/i18n/et/usuario.php @@ -19,6 +19,8 @@ return [ 'Authentication rule class {0} can not be instantiated' => '', 'Rule class must extend "yii\\rbac\\Rule".' => '', + 'Rule class name' => '', + 'Select rule...' => '', 'VKontakte' => '', 'Yandex' => '', '{0, date, MMM dd, YYYY HH:mm}' => '', diff --git a/src/User/resources/i18n/fa-IR/usuario.php b/src/User/resources/i18n/fa-IR/usuario.php index 064eb08..89288fb 100644 --- a/src/User/resources/i18n/fa-IR/usuario.php +++ b/src/User/resources/i18n/fa-IR/usuario.php @@ -175,6 +175,7 @@ return [ 'Roles' => '', 'Rule' => '', 'Rule class must extend "yii\\rbac\\Rule".' => '', + 'Rule class name' => '', 'Rule name' => '', 'Rule name {0} is already in use' => '', 'Rule {0} does not exists' => '', @@ -182,6 +183,7 @@ return [ 'Rules' => '', 'Save' => '', 'Scan the QrCode with Google Authenticator App, then insert its temporary code on the box and submit.' => '', + 'Select rule...' => '', 'Send password recovery email' => '', 'Sign in' => '', 'Sign up' => '', diff --git a/src/User/resources/i18n/fi/usuario.php b/src/User/resources/i18n/fi/usuario.php index 064eb08..89288fb 100644 --- a/src/User/resources/i18n/fi/usuario.php +++ b/src/User/resources/i18n/fi/usuario.php @@ -175,6 +175,7 @@ return [ 'Roles' => '', 'Rule' => '', 'Rule class must extend "yii\\rbac\\Rule".' => '', + 'Rule class name' => '', 'Rule name' => '', 'Rule name {0} is already in use' => '', 'Rule {0} does not exists' => '', @@ -182,6 +183,7 @@ return [ 'Rules' => '', 'Save' => '', 'Scan the QrCode with Google Authenticator App, then insert its temporary code on the box and submit.' => '', + 'Select rule...' => '', 'Send password recovery email' => '', 'Sign in' => '', 'Sign up' => '', diff --git a/src/User/resources/i18n/fr/usuario.php b/src/User/resources/i18n/fr/usuario.php index 064eb08..89288fb 100644 --- a/src/User/resources/i18n/fr/usuario.php +++ b/src/User/resources/i18n/fr/usuario.php @@ -175,6 +175,7 @@ return [ 'Roles' => '', 'Rule' => '', 'Rule class must extend "yii\\rbac\\Rule".' => '', + 'Rule class name' => '', 'Rule name' => '', 'Rule name {0} is already in use' => '', 'Rule {0} does not exists' => '', @@ -182,6 +183,7 @@ return [ 'Rules' => '', 'Save' => '', 'Scan the QrCode with Google Authenticator App, then insert its temporary code on the box and submit.' => '', + 'Select rule...' => '', 'Send password recovery email' => '', 'Sign in' => '', 'Sign up' => '', diff --git a/src/User/resources/i18n/hr/usuario.php b/src/User/resources/i18n/hr/usuario.php index 064eb08..89288fb 100644 --- a/src/User/resources/i18n/hr/usuario.php +++ b/src/User/resources/i18n/hr/usuario.php @@ -175,6 +175,7 @@ return [ 'Roles' => '', 'Rule' => '', 'Rule class must extend "yii\\rbac\\Rule".' => '', + 'Rule class name' => '', 'Rule name' => '', 'Rule name {0} is already in use' => '', 'Rule {0} does not exists' => '', @@ -182,6 +183,7 @@ return [ 'Rules' => '', 'Save' => '', 'Scan the QrCode with Google Authenticator App, then insert its temporary code on the box and submit.' => '', + 'Select rule...' => '', 'Send password recovery email' => '', 'Sign in' => '', 'Sign up' => '', diff --git a/src/User/resources/i18n/hu/usuario.php b/src/User/resources/i18n/hu/usuario.php index 2229086..b6e648a 100644 --- a/src/User/resources/i18n/hu/usuario.php +++ b/src/User/resources/i18n/hu/usuario.php @@ -17,6 +17,8 @@ * NOTE: this file must be saved in UTF-8 encoding. */ return [ + 'Rule class name' => '', + 'Select rule...' => '', 'Two factor authentication protects you in case of stolen credentials' => '', 'A message has been sent to your email address. ' => '@@Üzenet érkezett az e-mail címedre.@@', 'Awesome, almost there. ' => '@@Hurrá, majdnem kész.@@', diff --git a/src/User/resources/i18n/it/usuario.php b/src/User/resources/i18n/it/usuario.php index c621f67..ffaeb70 100644 --- a/src/User/resources/i18n/it/usuario.php +++ b/src/User/resources/i18n/it/usuario.php @@ -17,6 +17,8 @@ * NOTE: this file must be saved in UTF-8 encoding. */ return [ + 'Rule class name' => '', + 'Select rule...' => '', 'Two factor authentication protects you in case of stolen credentials' => '', '{0, date, MMM dd, YYYY HH:mm}' => '', 'Two factor authentication protects you against stolen credentials' => '@@L\'autenticazione a due fattori può proteggerti dal furto di credenziali@@', diff --git a/src/User/resources/i18n/kk/usuario.php b/src/User/resources/i18n/kk/usuario.php index 064eb08..89288fb 100644 --- a/src/User/resources/i18n/kk/usuario.php +++ b/src/User/resources/i18n/kk/usuario.php @@ -175,6 +175,7 @@ return [ 'Roles' => '', 'Rule' => '', 'Rule class must extend "yii\\rbac\\Rule".' => '', + 'Rule class name' => '', 'Rule name' => '', 'Rule name {0} is already in use' => '', 'Rule {0} does not exists' => '', @@ -182,6 +183,7 @@ return [ 'Rules' => '', 'Save' => '', 'Scan the QrCode with Google Authenticator App, then insert its temporary code on the box and submit.' => '', + 'Select rule...' => '', 'Send password recovery email' => '', 'Sign in' => '', 'Sign up' => '', diff --git a/src/User/resources/i18n/lt/usuario.php b/src/User/resources/i18n/lt/usuario.php index 064eb08..89288fb 100644 --- a/src/User/resources/i18n/lt/usuario.php +++ b/src/User/resources/i18n/lt/usuario.php @@ -175,6 +175,7 @@ return [ 'Roles' => '', 'Rule' => '', 'Rule class must extend "yii\\rbac\\Rule".' => '', + 'Rule class name' => '', 'Rule name' => '', 'Rule name {0} is already in use' => '', 'Rule {0} does not exists' => '', @@ -182,6 +183,7 @@ return [ 'Rules' => '', 'Save' => '', 'Scan the QrCode with Google Authenticator App, then insert its temporary code on the box and submit.' => '', + 'Select rule...' => '', 'Send password recovery email' => '', 'Sign in' => '', 'Sign up' => '', diff --git a/src/User/resources/i18n/nl/usuario.php b/src/User/resources/i18n/nl/usuario.php index 53fd14f..50ad205 100644 --- a/src/User/resources/i18n/nl/usuario.php +++ b/src/User/resources/i18n/nl/usuario.php @@ -17,6 +17,8 @@ * NOTE: this file must be saved in UTF-8 encoding. */ return [ + 'Rule class name' => '', + 'Select rule...' => '', 'Two factor authentication protects you in case of stolen credentials' => '', 'A message has been sent to your email address. ' => '@@Een bericht werd naar jouw emailadres verzonden@@', 'Awesome, almost there. ' => '@@Super, bijna klaar.@@', diff --git a/src/User/resources/i18n/pl/usuario.php b/src/User/resources/i18n/pl/usuario.php index 196d08a..89a9b42 100644 --- a/src/User/resources/i18n/pl/usuario.php +++ b/src/User/resources/i18n/pl/usuario.php @@ -17,6 +17,8 @@ * NOTE: this file must be saved in UTF-8 encoding. */ return [ + 'Rule class name' => '', + 'Select rule...' => '', 'Two factor authentication protects you in case of stolen credentials' => '', 'Disable Two-Factor Auth' => '@@Wyłącz uwierzytelnianie dwuetapowe@@', 'Enable Two-factor auth' => '@@Włącz uwierzytelnianie dwuetapowe@@', diff --git a/src/User/resources/i18n/pt-BR/usuario.php b/src/User/resources/i18n/pt-BR/usuario.php index 4f77917..61ef7e9 100644 --- a/src/User/resources/i18n/pt-BR/usuario.php +++ b/src/User/resources/i18n/pt-BR/usuario.php @@ -17,6 +17,8 @@ * NOTE: this file must be saved in UTF-8 encoding. */ return [ + 'Rule class name' => '', + 'Select rule...' => '', 'Two factor authentication protects you in case of stolen credentials' => '', 'A message has been sent to your email address. ' => '@@Uma mensagem foi enviada para o seu endereço de e-mail.@@', 'Awesome, almost there. ' => '@@Incrível, quase lá.@@', diff --git a/src/User/resources/i18n/pt-PT/usuario.php b/src/User/resources/i18n/pt-PT/usuario.php index 36b153f..b3ae11f 100644 --- a/src/User/resources/i18n/pt-PT/usuario.php +++ b/src/User/resources/i18n/pt-PT/usuario.php @@ -17,7 +17,46 @@ * NOTE: this file must be saved in UTF-8 encoding. */ return [ + 'Awesome, almost there. Now you need to click the confirmation link sent to your new email address.' => '', + 'Awesome, almost there. Now you need to click the confirmation link sent to your old email address.' => '', + 'Children' => '', + 'Class' => '', + 'Email' => '', + 'Gravatar email' => '', + 'Items' => '', + 'Password' => '', + 'Rule class name' => '', + 'Select rule...' => '', 'Two factor authentication protects you in case of stolen credentials' => '', + 'VKontakte' => '', + 'Website' => '', + 'Yandex' => '', + '{0, date, MMMM dd, YYYY HH:mm}' => '', + 'A message has been sent to your email address. ' => '@@@@', + 'Awesome, almost there. ' => '@@@@', + 'Class "{0}" does not exist' => '@@@@', + 'Disable Two-Factor Auth' => '@@@@', + 'Enable Two-factor auth' => '@@@@', + 'I aggree processing of my personal data and the use of cookies + to facilitate the operation of this site. For more information read our {privacyPolicy}' => '@@@@', + 'I aggree processing of my personal data and the use of cookies to facilitate the operation of this site. For more information read our {privacyPolicy}' => '@@@@', + 'Invalid two-factor code' => '@@@@', + 'Last login' => '@@@@', + 'Registration ip' => '@@@@', + 'Rule class can not be instantiated' => '@@@@', + 'Rule class must extend "yii\\rbac\\Rule"' => '@@@@', + 'This will disable two-factor auth. Are you sure?' => '@@@@', + 'Two Factor Authentication' => '@@@@', + 'Two factor authentication protects you against stolen credentials' => '@@Autenticação de dois passos protege-o do roubo de credenciais de acesso@@', + 'Two factor successfully enabled.' => '@@@@', + 'Two-Factor Authentication' => '@@@@', + 'Two-factor auth protects you against stolen credentials' => '@@@@', + 'Two-factor authentication code' => '@@@@', + 'Two-factor authorization has been disabled.' => '@@@@', + 'Two-factor code' => '@@@@', + 'Unable to disable two-factor authorization.' => '@@@@', + 'We couldn\'t re-send the mail to confirm your address. ' => '@@@@', + 'We have sent confirmation links to both old and new email addresses. ' => '@@@@', '(not set)' => '(não selecionado)', 'A confirmation message has been sent to your new email address' => 'Foi enviada uma mensagem de confirmação para o seu endereço de email', 'A message has been sent to your email address. It contains a confirmation link that you must click to complete registration.' => 'Foi enviada uma mensagem para o seu endereço de email com o link de confirmação para completar o seu registo.', @@ -50,8 +89,6 @@ return [ 'Authorization rule has been added.' => 'Regra de autorização foi adicionada', 'Authorization rule has been removed.' => 'Regra de autorização foi removida', 'Authorization rule has been updated.' => 'Regra de autorização foi atualizada', - 'Awesome, almost there. Now you need to click the confirmation link sent to your new email address.' => '', - 'Awesome, almost there. Now you need to click the confirmation link sent to your old email address.' => '', 'Back to privacy settings' => 'Voltar para opções de privacidade', 'Bio' => 'Biografia', 'Block' => 'Bloquear', @@ -60,8 +97,6 @@ return [ 'Cancel' => 'Cancelar', 'Cannot assign role "{0}" as the AuthManager is not configured on your console application.' => 'Não é possível atribuir o cargo "{0}" uma vez que o AuthManager não está configurado na sua aplicação da consola.', 'Change your avatar at Gravatar.com' => 'Altere o seu avatar em Gravatar.com', - 'Children' => '', - 'Class' => '', 'Close' => 'Fechar', 'Complete password reset on {0}' => 'Concluir o restauro de password em {0}', 'Confirm' => 'Confirmar', @@ -95,7 +130,6 @@ return [ 'Disconnect' => 'Desligar', 'Don\'t have an account? Sign up!' => 'Não tem conta? Registe-se!', 'Download my data' => 'Descarregar os meus dados', - 'Email' => '', 'Email (public)' => 'Email (público)', 'Enable' => 'Ativar', 'Enable two factor authentication' => 'Ativar autenticação de dois passos', @@ -108,7 +142,6 @@ return [ 'Finish' => 'Concluir', 'Force password change at next login' => 'Forçar alteração de password no próximo login', 'Forgot password?' => 'Esqueceu a sua senha?', - 'Gravatar email' => '', 'Hello' => 'Olá', 'Here you can download your personal data in a comma separated values format.' => 'Aqui pode descarregar os seus dados pessoais num ficheiro separado por virgulas.', 'I agree processing of my personal data and the use of cookies to facilitate the operation of this site. For more information read our {privacyPolicy}' => 'Eu aceito o processamento dos meus dados pessoais e o uso de cookies para facilitar as operações neste site. Para mais informações leia a nossa {privacyPolicy}', @@ -126,7 +159,6 @@ return [ 'Invalid two factor authentication code' => 'Autenticação de dois passos inválida', 'Invalid value' => 'Valor inválido', 'It will be deleted forever' => 'Será eliminado definitivamente', - 'Items' => '', 'Joined on {0, date}' => 'Aderiu em {0, date}', 'Last login IP' => 'IP do último login', 'Last login time' => 'Último login', @@ -148,7 +180,6 @@ return [ 'Not found' => 'Não encontrado', 'Once you delete your account, there is no going back' => 'Após eliminar a sua conta, não será possível recuperá-la.', 'Once you have deleted your data, you will not longer be able to sign in with this account.' => 'Após eliminar os seus dados, não poderá mais entrar com esta conta.', - 'Password' => '', 'Password age' => 'Idade da password', 'Password has been changed' => 'A password foi alterada', 'Permissions' => 'Permissões', @@ -238,16 +269,13 @@ return [ 'User will be required to change password at next login' => 'O utilizador necessitará de alterar a password no próximo login', 'Username' => 'Utilizador', 'Users' => 'Utilizadores', - 'VKontakte' => '', 'Verification failed. Please, enter new code.' => 'Verificação falhou. Por favor insira novo código.', 'We couldn\'t re-send the mail to confirm your address. Please, verify is the correct email or if it has been confirmed already.' => 'Não foi possível reenviar o email de confirmação para o seu endereço. Por favor, verifique se é o email correto ou se já foi confirmado.', 'We have generated a password for you' => 'Gerámos uma nova password para si', 'We have received a request to change the email address for your account on {0}' => 'Recebemos um pedido para alterar o endereço de email para a sua conta em {0}', 'We have received a request to reset the password for your account on {0}' => 'Recebemos um pedido para restaura a password da sua conta em {0}', 'We have sent confirmation links to both old and new email addresses. You must click both links to complete your request.' => 'Enviámos links de confirmação para ambas as contas de email, antiga e nova. Deve seguir as instruções em ambos os emails para concluir o pedido.', - 'Website' => '', 'Welcome to {0}' => 'Bem-vindo a {0}', - 'Yandex' => '', 'You are about to delete all your personal data from this site.' => 'Está prestes a apagar todos os seus dados pessoais deste site.', 'You can assign multiple roles or permissions to user by using the form below' => 'Pode atribuir vários cargos ou permissões ao utilizador através do formulário abaixo', 'You can connect multiple accounts to be able to log in using them' => 'Pode ligar múltiplas contas de forma a poder entrar através delas', @@ -268,32 +296,6 @@ return [ 'Your personal information has been removed' => 'Os seus dados pessoais foram removidos', 'Your profile has been updated' => 'O seu perfil foi atualziado', 'privacy policy' => 'politica de privacidade', - '{0, date, MMMM dd, YYYY HH:mm}' => '', - '{0} cannot be blank.' => '{0} não pode ficar vazio.', - 'A message has been sent to your email address. ' => '@@@@', - 'Awesome, almost there. ' => '@@@@', - 'Class "{0}" does not exist' => '@@@@', - 'Disable Two-Factor Auth' => '@@@@', - 'Enable Two-factor auth' => '@@@@', - 'I aggree processing of my personal data and the use of cookies - to facilitate the operation of this site. For more information read our {privacyPolicy}' => '@@@@', - 'I aggree processing of my personal data and the use of cookies to facilitate the operation of this site. For more information read our {privacyPolicy}' => '@@@@', - 'Invalid two-factor code' => '@@@@', - 'Last login' => '@@@@', - 'Registration ip' => '@@@@', - 'Rule class can not be instantiated' => '@@@@', - 'Rule class must extend "yii\\rbac\\Rule"' => '@@@@', - 'This will disable two-factor auth. Are you sure?' => '@@@@', - 'Two Factor Authentication' => '@@@@', - 'Two factor authentication protects you against stolen credentials' => '@@Autenticação de dois passos protege-o do roubo de credenciais de acesso@@', - 'Two factor successfully enabled.' => '@@@@', - 'Two-Factor Authentication' => '@@@@', - 'Two-factor auth protects you against stolen credentials' => '@@@@', - 'Two-factor authentication code' => '@@@@', - 'Two-factor authorization has been disabled.' => '@@@@', - 'Two-factor code' => '@@@@', - 'Unable to disable two-factor authorization.' => '@@@@', - 'We couldn\'t re-send the mail to confirm your address. ' => '@@@@', - 'We have sent confirmation links to both old and new email addresses. ' => '@@@@', '{0, date, MMM dd, YYYY HH:mm}' => '@@@@', + '{0} cannot be blank.' => '{0} não pode ficar vazio.', ]; diff --git a/src/User/resources/i18n/ro/usuario.php b/src/User/resources/i18n/ro/usuario.php index 38ab2bf..6abfd2b 100644 --- a/src/User/resources/i18n/ro/usuario.php +++ b/src/User/resources/i18n/ro/usuario.php @@ -17,6 +17,8 @@ * NOTE: this file must be saved in UTF-8 encoding. */ return [ + 'Rule class name' => '', + 'Select rule...' => '', 'Two factor authentication protects you in case of stolen credentials' => '', 'A message has been sent to your email address. ' => '@@A fost trimis un mesaj la adresa dvs. de e-mail.@@', 'Awesome, almost there. ' => '@@Minunat, aproape gata.@@', diff --git a/src/User/resources/i18n/ru/usuario.php b/src/User/resources/i18n/ru/usuario.php index 73c12db..25d12bf 100644 --- a/src/User/resources/i18n/ru/usuario.php +++ b/src/User/resources/i18n/ru/usuario.php @@ -17,6 +17,8 @@ * NOTE: this file must be saved in UTF-8 encoding. */ return [ + 'Rule class name' => '', + 'Select rule...' => '', 'Two factor authentication protects you in case of stolen credentials' => '', 'A message has been sent to your email address. ' => '@@Сообщение было отправлено на вашу электронную почту@@', 'Awesome, almost there. ' => '@@Замечательно, почти готово!@@', diff --git a/src/User/resources/i18n/th/usuario.php b/src/User/resources/i18n/th/usuario.php index 064eb08..89288fb 100644 --- a/src/User/resources/i18n/th/usuario.php +++ b/src/User/resources/i18n/th/usuario.php @@ -175,6 +175,7 @@ return [ 'Roles' => '', 'Rule' => '', 'Rule class must extend "yii\\rbac\\Rule".' => '', + 'Rule class name' => '', 'Rule name' => '', 'Rule name {0} is already in use' => '', 'Rule {0} does not exists' => '', @@ -182,6 +183,7 @@ return [ 'Rules' => '', 'Save' => '', 'Scan the QrCode with Google Authenticator App, then insert its temporary code on the box and submit.' => '', + 'Select rule...' => '', 'Send password recovery email' => '', 'Sign in' => '', 'Sign up' => '', diff --git a/src/User/resources/i18n/tr-TR/usuario.php b/src/User/resources/i18n/tr-TR/usuario.php index 064eb08..89288fb 100644 --- a/src/User/resources/i18n/tr-TR/usuario.php +++ b/src/User/resources/i18n/tr-TR/usuario.php @@ -175,6 +175,7 @@ return [ 'Roles' => '', 'Rule' => '', 'Rule class must extend "yii\\rbac\\Rule".' => '', + 'Rule class name' => '', 'Rule name' => '', 'Rule name {0} is already in use' => '', 'Rule {0} does not exists' => '', @@ -182,6 +183,7 @@ return [ 'Rules' => '', 'Save' => '', 'Scan the QrCode with Google Authenticator App, then insert its temporary code on the box and submit.' => '', + 'Select rule...' => '', 'Send password recovery email' => '', 'Sign in' => '', 'Sign up' => '', diff --git a/src/User/resources/i18n/uk/usuario.php b/src/User/resources/i18n/uk/usuario.php index 064eb08..89288fb 100644 --- a/src/User/resources/i18n/uk/usuario.php +++ b/src/User/resources/i18n/uk/usuario.php @@ -175,6 +175,7 @@ return [ 'Roles' => '', 'Rule' => '', 'Rule class must extend "yii\\rbac\\Rule".' => '', + 'Rule class name' => '', 'Rule name' => '', 'Rule name {0} is already in use' => '', 'Rule {0} does not exists' => '', @@ -182,6 +183,7 @@ return [ 'Rules' => '', 'Save' => '', 'Scan the QrCode with Google Authenticator App, then insert its temporary code on the box and submit.' => '', + 'Select rule...' => '', 'Send password recovery email' => '', 'Sign in' => '', 'Sign up' => '', diff --git a/src/User/resources/i18n/vi/usuario.php b/src/User/resources/i18n/vi/usuario.php index 064eb08..89288fb 100644 --- a/src/User/resources/i18n/vi/usuario.php +++ b/src/User/resources/i18n/vi/usuario.php @@ -175,6 +175,7 @@ return [ 'Roles' => '', 'Rule' => '', 'Rule class must extend "yii\\rbac\\Rule".' => '', + 'Rule class name' => '', 'Rule name' => '', 'Rule name {0} is already in use' => '', 'Rule {0} does not exists' => '', @@ -182,6 +183,7 @@ return [ 'Rules' => '', 'Save' => '', 'Scan the QrCode with Google Authenticator App, then insert its temporary code on the box and submit.' => '', + 'Select rule...' => '', 'Send password recovery email' => '', 'Sign in' => '', 'Sign up' => '', diff --git a/src/User/resources/i18n/zh-CN/usuario.php b/src/User/resources/i18n/zh-CN/usuario.php index 064eb08..89288fb 100644 --- a/src/User/resources/i18n/zh-CN/usuario.php +++ b/src/User/resources/i18n/zh-CN/usuario.php @@ -175,6 +175,7 @@ return [ 'Roles' => '', 'Rule' => '', 'Rule class must extend "yii\\rbac\\Rule".' => '', + 'Rule class name' => '', 'Rule name' => '', 'Rule name {0} is already in use' => '', 'Rule {0} does not exists' => '', @@ -182,6 +183,7 @@ return [ 'Rules' => '', 'Save' => '', 'Scan the QrCode with Google Authenticator App, then insert its temporary code on the box and submit.' => '', + 'Select rule...' => '', 'Send password recovery email' => '', 'Sign in' => '', 'Sign up' => '', diff --git a/src/User/resources/views/permission/_form.php b/src/User/resources/views/permission/_form.php index 21c4274..a5b559b 100644 --- a/src/User/resources/views/permission/_form.php +++ b/src/User/resources/views/permission/_form.php @@ -36,7 +36,7 @@ use yii\widgets\ActiveForm; field($model, 'rule')->widget(SelectizeDropDownList::class, [ 'items' => ArrayHelper::map(Yii::$app->getAuthManager()->getRules(), 'name', 'name'), 'options' => [ - 'prompt' => 'Select rule...' + 'prompt' => Yii::t('usuario', 'Select rule...'), ] ]) ?> diff --git a/src/User/resources/views/rule/create.php b/src/User/resources/views/rule/create.php index c2b8a54..0b33b8c 100644 --- a/src/User/resources/views/rule/create.php +++ b/src/User/resources/views/rule/create.php @@ -10,7 +10,7 @@ */ /** - * @var \Da\User\Model\Role $model + * @var \Da\User\Model\Rule $model * @var $this yii\web\View * @var $unassignedItems string[] */ diff --git a/src/User/resources/views/rule/update.php b/src/User/resources/views/rule/update.php index f12495e..2127078 100644 --- a/src/User/resources/views/rule/update.php +++ b/src/User/resources/views/rule/update.php @@ -10,7 +10,7 @@ */ /** - * @var \Da\User\Model\Role $model + * @var \Da\User\Model\Rule $model * @var $this yii\web\View * @var $unassignedItems string[] */