From 98d14da1e246f763704052ab3ca7e7723b24dd55 Mon Sep 17 00:00:00 2001 From: Alan Willms Date: Wed, 8 Jan 2014 22:20:22 -0200 Subject: [PATCH] Add pt-BR translated messages --- framework/yii/messages/config.php | 2 +- framework/yii/messages/pt-BR/yii.php | 105 +++++++++++++++++++++++++++++++++++ 2 files changed, 106 insertions(+), 1 deletion(-) create mode 100644 framework/yii/messages/pt-BR/yii.php diff --git a/framework/yii/messages/config.php b/framework/yii/messages/config.php index 40cd538..94ce979 100644 --- a/framework/yii/messages/config.php +++ b/framework/yii/messages/config.php @@ -7,7 +7,7 @@ return [ 'messagePath' => __DIR__, // array, required, list of language codes that the extracted messages // should be translated to. For example, ['zh-CN', 'de']. - 'languages' => ['de', 'ru'], + 'languages' => ['de', 'ru', 'pt-BR'], // 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/framework/yii/messages/pt-BR/yii.php b/framework/yii/messages/pt-BR/yii.php new file mode 100644 index 0000000..075c972 --- /dev/null +++ b/framework/yii/messages/pt-BR/yii.php @@ -0,0 +1,105 @@ + 'Página Inicial', + 'Invalid data received for parameter "{param}".' => 'Dados inválidos recebidos para o parâmetro “{param}”.', + 'Login Required' => 'Login Necessário.', + 'Missing required arguments: {params}' => 'Argumentos obrigatórios ausentes: {params}', + 'Missing required parameters: {params}' => 'Parâmetros obrigatórios ausentes: {params}', + 'No help for unknown command "{command}".' => 'Não há ajuda para o comando desconhecido “{command}”.', + 'No help for unknown sub-command "{command}".' => 'Não há ajuda para o sub-comando desconhecido “{command}”.', + 'Showing {begin, number}-{end, number} of {totalCount, number} {totalCount, plural, one{item} other{items}}.' => 'Exibindo {begin, number}-{end, number} de {totalCount, number} {totalCount, plural, one{item} other{itens}}.', + 'Total {count, number} {count, plural, one{item} other{items}}.' => 'Total {count, number} {count, plural, one{item} other{itens}}.', + 'Unable to verify your data submission.' => 'Não foi possível verificar a sua submissão de dados.', + 'Unknown command "{command}".' => 'Comando desconhecido “{command}”.', + 'Unknown option: --{name}' => 'Opção desconhecida : --{name}', + 'View' => '', + 'the input value' => 'o valor de entrada', + '(not set)' => '(não definido)', + 'An internal server error occurred.' => 'Ocorreu um erro interno do servidor.', + 'Are you sure to delete this item?' => 'Tem certeza de que deseja excluir este item?', + 'Compile Error' => 'Compile Error', + 'Compile Warning' => 'Compile Warning', + 'Core Error' => 'Core Error', + 'Core Warning' => 'Core Warning', + 'Database Exception' => 'Database Exception', + 'Delete' => 'Excluir', + 'Deprecated' => 'Deprecated', + 'Error' => 'Error', + 'Exception' => 'Exception', + 'Fatal Error' => 'Fatal Error', + 'File upload failed.' => 'O upload do arquivo falhou.', + 'Invalid Call' => 'Invalid Call', + 'Invalid Configuration' => 'Invalid Configuration', + 'Invalid Parameter' => 'Invalid Parameter', + 'Invalid Route' => 'Invalid Route', + 'No' => 'Não', + 'No results found.' => 'Nenhum resultado foi encontrado.', + 'Not Supported' => 'Not Supported', + 'Notice' => 'Notice', + 'Only files with these extensions are allowed: {extensions}.' => 'Só são permitidos arquivos com as seguintes extensões: {extensions}.', + 'Only files with these mimeTypes are allowed: {mimeTypes}.' => 'Só são permitidos arquivos com os seguintes mimeTypes: {mimeTypes}.', + 'Page not found.' => 'Página não encontrada.', + 'Parse Error' => 'Parse Error', + 'Please fix the following errors:' => 'Por favor, corrija os seguintes erros:', + 'Please upload a file.' => 'Por favor suba um arquivo.', + 'Recoverable Error' => 'Recoverable Error', + 'Stale Object Exception' => 'Stale Object Exception', + 'Strict' => 'Strict', + 'The file "{file}" is not an image.' => 'O arquivo “{file}” não é uma imagem.', + 'The file "{file}" is too big. Its size cannot exceed {limit, number} {limit, plural, one{byte} other{bytes}}.' => 'O arquivo “{file}” é grande demais. Seu tamanho não pode exceder {limit, number} {limit, plural, one{byte} other{bytes}}.', + 'The file "{file}" is too large. The height cannot be larger than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => 'O arquivo “{file}” é grande demais. A altura não pode ser maior do que {limit, number} {limit, plural, one{pixel} other{pixels}}.', + 'The file "{file}" is too large. The width cannot be larger than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => 'O arquivo “{file}” é grande demais. A largura não pode ser maior do que {limit, number} {limit, plural, one{pixel} other{pixels}}.', + 'The file "{file}" is too small. Its size cannot be smaller than {limit, number} {limit, plural, one{byte} other{bytes}}.' => 'O arquivo “{file}” é pequeno demais. Seu tamanho não pode ser menor do que {limit, number} {limit, plural, one{byte} other{bytes}}.', + 'The file "{file}" is too small. The height cannot be smaller than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => 'O arquivo “{file}” é pequeno demais. A altura não pode ser menor do que {limit, number} {limit, plural, one{pixel} other{pixels}}.', + 'The file "{file}" is too small. The width cannot be smaller than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => 'O arquivo “{file}” é pequeno demais. A largura não pode ser menor do que {limit, number} {limit, plural, one{pixel} other{pixels}}.', + 'The format of {attribute} is invalid.' => 'O formato de “{attribute}” é inválido.', + 'The verification code is incorrect.' => 'O código de verificação está incorreto.', + 'Unknown Class' => 'Unknown Class', + 'Unknown Method' => 'Unknown Method', + 'Unknown Property' => 'Unknown Property', + 'Update' => 'Atualizar', + 'User Error' => 'User Error', + 'User Warning' => 'User Warning', + 'Warning' => 'Warning', + 'Yes' => 'Sim', + 'You are not allowed to perform this action.' => 'Você não está autorizado a realizar essa ação.', + 'You can upload at most {limit, number} {limit, plural, one{file} other{files}}.' => 'Você pode fazer o upload de no máximo {limit, number} {limit, plural, one{arquivo} other{arquivos}}.', + '{attribute} "{value}" has already been taken.' => '{attribute} “{value}” já foi utilizado.', + '{attribute} cannot be blank.' => '“{attribute}” não pode ficar em branco.', + '{attribute} is invalid.' => '“{attribute}” é inválido.', + '{attribute} is not a valid URL.' => '“{attribute}” não é uma URL válida.', + '{attribute} is not a valid email address.' => '“{attribute}” não é um endereço de e-mail válido.', + '{attribute} must be "{requiredValue}".' => '“{attribute}” deve ser “{requiredValue}”.', + '{attribute} must be a number.' => '“{attribute}” deve ser um número.', + '{attribute} must be a string.' => '“{attribute}” deve ser uma string.', + '{attribute} must be an integer.' => '“{attribute}” deve ser um número inteiro.', + '{attribute} must be either "{true}" or "{false}".' => '“{attribute}” deve ser “{true}” ou “{false}”.', + '{attribute} must be greater than "{compareValue}".' => '“{attribute}” deve ser maior do que “{compareValue}”.', + '{attribute} must be greater than or equal to "{compareValue}".' => '“{attribute}” deve ser maior ou igual a “{compareValue}”.', + '{attribute} must be less than "{compareValue}".' => '“{attribute}” deve ser menor do que “{compareValue}”.', + '{attribute} must be less than or equal to "{compareValue}".' => '“{attribute}” deve ser menor ou igual a “{compareValue}”.', + '{attribute} must be no greater than {max}.' => '“{attribute}” não pode ser maior do que {max}.', + '{attribute} must be no less than {min}.' => '“{attribute}” não pode ser menor do que {min}.', + '{attribute} must be repeated exactly.' => '“{attribute}” deve ser repetido exatamente.', + '{attribute} must not be equal to "{compareValue}".' => '“{attribute}” não deve ser igual a “{compareValue}”.', + '{attribute} should contain at least {min, number} {min, plural, one{character} other{characters}}.' => '“{attribute}” deve conter pelo menos {min, number} {min, plural, one{caractere} other{caracteres}}.', + '{attribute} should contain at most {max, number} {max, plural, one{character} other{characters}}.' => '“{attribute}” deve conter no máximo {max, number} {max, plural, one{caractere} other{caracteres}}.', + '{attribute} should contain {length, number} {length, plural, one{character} other{characters}}.' => '“{attribute}” deve conter {length, number} {length, plural, one{caractere} other{caracteres}}.', +);