Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 1 addition & 35 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -1,40 +1,6 @@
<?php

/**
* This file is part of CodeIgniter 4 framework.
*
* (c) CodeIgniter Foundation <admin@codeigniter.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/

use CodeIgniter\CodingStandard\CodeIgniter4;
use Nexus\CsConfig\Factory;
use PhpCsFixer\Finder;

$finder = Finder::create()
->files()
->in([__DIR__])
->append([
__FILE__,
'.github/scripts/continuous-integration',
'.github/scripts/update-license',
'bin/generate-changelog',
'bin/generate-page',
'bin/test',
'bin/update-en-comments',
]);

$overrides = [];

$options = [
'finder' => $finder,
'usingCache' => true,
];

return Factory::create(new CodeIgniter4(), $overrides, $options)->forLibrary(
'CodeIgniter 4 framework',
'CodeIgniter Foundation',
'admin@codeigniter.com',
);
return Factory::create(new CodeIgniter4())->forProjects();
21 changes: 21 additions & 0 deletions Language/pt-BR/Api.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

declare(strict_types=1);

/**
* This file is part of CodeIgniter 4 framework.
*
* (c) CodeIgniter Foundation <admin@codeigniter.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/

// Configurações de linguagem da API
return [
'invalidFields' => 'Campo solicitado inválido: {0}',
'invalidIncludes' => 'Inclusão solicitada inválida: {0}',
'missingInclude' => 'Método de inclusão ausente para: {0}',
'transformerNotFound' => 'Classe Transformer \'{0}\' não encontrada.',
'invalidTransformer' => 'A classe Transformer \'{0}\' deve implementar a TransformerInterface.',
];
76 changes: 42 additions & 34 deletions Language/pt-BR/CLI.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of CodeIgniter 4 framework.
*
Expand All @@ -9,45 +11,51 @@
* the LICENSE file that was distributed with this source code.
*/

// CLI language settings
// Configurações de linguagem da CLI
return [
'altCommandPlural' => 'Você quis dizer um desses?', // 'Did you mean one of these?',
'altCommandSingular' => 'Você quis dizer isso?', // 'Did you mean this?',
'commandNotFound' => 'Comando "{0}" não foi encontrado.', // 'Command "{0}" not found.',
'altCommandPlural' => 'Você quis dizer um destes?',
'altCommandSingular' => 'Você quis dizer este?',
'commandNotFound' => 'Comando "{0}" não encontrado.',
'generator' => [
'cancelOperation' => 'Operação foi cancelada.', // 'Operation has been cancelled.',
'cancelOperation' => 'A operação foi cancelada.',
'className' => [
'cell' => 'Nome da classe Cell', // 'Cell class name',
'command' => 'Nome da classe Command', // 'Command class name',
'config' => 'Nome da classe Config', // 'Config class name',
'controller' => 'Nome da classe Controller', // 'Controller class name',
'default' => 'Nome da classe', // 'Class name',
'entity' => 'Nome da classe Entity', // 'Entity class name',
'filter' => 'Nome da classe Filter', // 'Filter class name',
'migration' => 'Nome da classe Migration', // 'Migration class name',
'model' => 'Nome da classe Model', // 'Model class name',
'seeder' => 'Nome da classe Seeder', // 'Seeder class name',
'test' => 'Nome da classe Test', // 'Test class name',
'validation' => 'Nome da classe Validation', // 'Validation class name',
'cell' => 'Nome da classe Cell',
'command' => 'Nome da classe Command',
'config' => 'Nome da classe Config',
'controller' => 'Nome da classe Controller',
'default' => 'Nome da classe',
'entity' => 'Nome da classe Entity',
'filter' => 'Nome da classe Filter',
'migration' => 'Nome da classe Migration',
'model' => 'Nome da classe Model',
'seeder' => 'Nome da classe Seeder',
'test' => 'Nome da classe Test',
'transformer' => 'Nome da classe Transformer',
'validation' => 'Nome da classe Validation',
],
'commandType' => 'Tipo de comando', // 'Command type',
'databaseGroup' => 'Grupo do banco de dados', // 'Database group',
'fileCreate' => 'Arquivo criado: "{0}"', // 'File created: {0}',
'fileError' => 'Erro ao criar arquivo: "{0}"', // 'Error while creating file: "{0}"',
'fileExist' => 'Arquivo existe: "{0}"', // 'File exists: "{0}"',
'fileOverwrite' => 'Arquivo sobrescrito: "{0}"', // 'File overwritten: "{0}"',
'parentClass' => 'Classe pai', // 'Parent class',
'returnType' => 'Tipo de retorno', // 'Return type',
'tableName' => 'Nome da tabela', // 'Table name',
'usingCINamespace' => 'Atenção: Usar o namespace "CodeIgniter" irá gerar o arquivo no diretório system.', // 'Warning: Using the "CodeIgniter" namespace will generate the file in the system directory.',
'commandType' => 'Tipo de comando',
'databaseGroup' => 'Grupo do banco de dados',
'fileCreate' => 'Arquivo criado: {0}',
'fileError' => 'Erro ao criar o arquivo: "{0}"',
'fileExist' => 'O arquivo já existe: "{0}"',
'fileOverwrite' => 'Arquivo sobrescrito: "{0}"',
'parentClass' => 'Classe pai',
'returnType' => 'Tipo de retorno',
'tableName' => 'Nome da tabela',
'usingCINamespace' => 'Aviso: Usar o namespace "CodeIgniter" gerará o arquivo no diretório do sistema.',
'viewName' => [
'cell' => 'Nome da view cell', // 'Cell view name',
'cell' => 'Nome da view cell',
],
],
'helpArguments' => 'Argumentos:', // 'Arguments:',
'helpDescription' => 'Descrição:', // 'Description:',
'helpOptions' => 'Opções:', // 'Options:',
'helpUsage' => 'Uso:', // 'Usage:',
'invalidColor' => 'Cor inválida "{0}": "{1}".', // Invalid "{0}" color: "{1}".',
'namespaceNotDefined' => 'Namespace "{0}" não está definido.', // 'Namespace "{0}" is not defined.',
'helpArguments' => 'Argumentos:',
'helpDescription' => 'Descrição:',
'helpOptions' => 'Opções:',
'helpUsage' => 'Uso:',
'invalidColor' => 'Cor "{0}" inválida: "{1}".',
'namespaceNotDefined' => 'O namespace "{0}" não está definido.',
'signals' => [
'noPcntlExtension' => 'Extensão PCNTL não disponível. Manipulação de sinais desativada.',
'noPosixExtension' => 'A manipulação de SIGTSTP/SIGCONT requer a extensão POSIX. Estes sinais serão removidos do registro.',
'failedSignal' => 'Falha ao registrar o manipulador para o sinal: "{0}".',
],
];
12 changes: 7 additions & 5 deletions Language/pt-BR/Cache.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of CodeIgniter 4 framework.
*
Expand All @@ -9,10 +11,10 @@
* the LICENSE file that was distributed with this source code.
*/

// Cache language settings
// Configurações de linguagem do Cache
return [
'unableToWrite' => 'O cache está incapaz de escrever em "{0}"', // 'Cache unable to write to "{0}".',
'invalidHandlers' => 'A configuração de cache deve ter uma array de $validHandlers.', // 'Cache config must have an array of $validHandlers.',
'noBackup' => 'A configuração de cache deve ter um handler e um backupHandler definido.', // 'Cache config must have a handler and backupHandler set.',
'handlerNotFound' => 'A configuração de cache possui um handler ou backup handler inválido na definição.', // 'Cache config has an invalid handler or backup handler specified.',
'unableToWrite' => 'Não foi possível gravar o cache em "{0}".',
'invalidHandlers' => 'A configuração de cache deve ter um array de $validHandlers.',
'noBackup' => 'A configuração de cache deve ter um handler e um backupHandler definidos.',
'handlerNotFound' => 'A configuração de cache possui um handler ou backup handler inválido especificado.',
];
27 changes: 17 additions & 10 deletions Language/pt-BR/Cast.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of CodeIgniter 4 framework.
*
Expand All @@ -9,15 +11,20 @@
* the LICENSE file that was distributed with this source code.
*/

// Cast language settings
// Configurações de linguagem de Cast
return [
'baseCastMissing' => 'A classe "{0}" deve herdar da classe "CodeIgniter\Entity\Cast\BaseCast".', // 'The "{0}" class must inherit the "CodeIgniter\Entity\Cast\BaseCast" class.',
'invalidCastMethod' => 'O método de conversão "{0}" é inválido, métodos válidos são: ["get", "set"].', // 'The "{0}" is invalid cast method, valid methods are: ["get", "set"].',
'invalidTimestamp' => 'Conversão do tipo "timestamp" espera um timestamp correto.', // 'Type casting "timestamp" expects a correct timestamp.',
'jsonErrorCtrlChar' => 'Caractere de controle inesperado encontrado.', // 'Unexpected control character found.',
'jsonErrorDepth' => 'Profundidade máxima da pilha foi excedida.', // 'Maximum stack depth exceeded.',
'jsonErrorStateMismatch' => 'Underflow ou os modos são incompatíveis.', // 'Underflow or the modes mismatch.',
'jsonErrorSyntax' => 'Erro de sintaxe, JSON malformado.', // 'Syntax error, malformed JSON.',
'jsonErrorUnknown' => 'Erro desconhecido.', // 'Unknown error.',
'jsonErrorUtf8' => 'Caracteres UTF-8 malformados, possivelmente codificados incorretamente.', // 'Malformed UTF-8 characters, possibly incorrectly encoded.',
'baseCastMissing' => 'A classe "{0}" deve herdar da classe "CodeIgniter\Entity\Cast\BaseCast".',
'enumInvalidCaseName' => 'Nome de case inválido "{0}" para o enum "{1}".',
'enumInvalidType' => 'Esperado enum do tipo "{1}", mas recebido "{0}".',
'enumInvalidValue' => 'Valor inválido "{1}" para o enum "{0}".',
'enumMissingClass' => 'A classe Enum deve ser especificada para o casting de enum.',
'enumNotEnum' => '"{0}" não é uma classe enum válida.',
'invalidCastMethod' => '"{0}" é um método de cast inválido, os métodos válidos são: ["get", "set"].',
'invalidTimestamp' => 'O casting do tipo "timestamp" espera um timestamp correto.',
'jsonErrorCtrlChar' => 'Caractere de controle inesperado encontrado.',
'jsonErrorDepth' => 'Profundidade máxima da pilha excedida.',
'jsonErrorStateMismatch' => 'Underflow ou erro de correspondência de modos.',
'jsonErrorSyntax' => 'Erro de sintaxe, JSON malformado.',
'jsonErrorUnknown' => 'Erro desconhecido.',
'jsonErrorUtf8' => 'Caracteres UTF-8 malformados, possivelmente codificados incorretamente.',
];
24 changes: 13 additions & 11 deletions Language/pt-BR/Cookie.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of CodeIgniter 4 framework.
*
Expand All @@ -9,16 +11,16 @@
* the LICENSE file that was distributed with this source code.
*/

// Cookie language settings
// Configurações de linguagem de Cookie
return [
'invalidExpiresTime' => 'Tipo "{0}" é inválido para o atributo "Expires". Esperado: string, integer, objeto de DateTimeInterface.', // 'Invalid "{0}" type for "Expires" attribute. Expected: string, integer, DateTimeInterface object.',
'invalidExpiresValue' => 'O tempo de expiração do cookie não é válido.', // 'The cookie expiration time is not valid.',
'invalidCookieName' => 'O nome do cookie "{0}" contém caracteres inválidos.', // 'The cookie name "{0}" contains invalid characters.',
'emptyCookieName' => 'O nome do cookie não pode ser vazio.', // 'The cookie name cannot be empty.',
'invalidSecurePrefix' => 'Usando o prefixo "__Secure-" requer que seja definido o atributo "Secure".', // 'Using the "__Secure-" prefix requires setting the "Secure" attribute.',
'invalidHostPrefix' => 'Usando o prefixo "__Host-" deve ser definido com a flag "Secure", não deve possuir o atributo "Domain", e "Path" deve ser "/".', // 'Using the "__Host-" prefix must be set with the "Secure" flag, must not have a "Domain" attribute, and the "Path" is set to "/".',
'invalidSameSite' => 'O valor de SameSite deve ser None, Lax, Strict ou uma string vazia, "{0}" foi passado.', // 'The SameSite value must be None, Lax, Strict or a blank string, {0} given.',
'invalidSameSiteNone' => 'Usando o atributo "SameSite=None" requer que seja definido o atributo "Secure".', // 'Using the "SameSite=None" attribute requires setting the "Secure" attribute.',
'invalidCookieInstance' => 'Classe "{0}" espera array de cookies serem instâncias de "{1}" mas recebeu "{2}" no índice "{3}".', // '"{0}" class expected cookies array to be instances of "{1}" but got "{2}" at index {3}.',
'unknownCookieInstance' => 'Objeto Cookie com o nome "{0}" e prefixo "{1}" não foi encontrado na coleção.', // 'Cookie object with name "{0}" and prefix "{1}" was not found in the collection.',
'invalidExpiresTime' => 'Tipo "{0}" inválido para o atributo "Expires". Esperado: string, integer, objeto DateTimeInterface.',
'invalidExpiresValue' => 'O tempo de expiração do cookie não é válido.',
'invalidCookieName' => 'O nome do cookie "{0}" contém caracteres inválidos.',
'emptyCookieName' => 'O nome do cookie não pode estar vazio.',
'invalidSecurePrefix' => 'O uso do prefixo "__Secure-" exige a configuração do atributo "Secure".',
'invalidHostPrefix' => 'O uso do prefixo "__Host-" deve ser definido com a flag "Secure", não deve ter um atributo "Domain" e o "Path" deve ser definido como "/".',
'invalidSameSite' => 'O valor SameSite deve ser None, Lax, Strict ou uma string vazia; {0} fornecido.',
'invalidSameSiteNone' => 'O uso do atributo "SameSite=None" exige a configuração do atributo "Secure".',
'invalidCookieInstance' => 'A classe "{0}" esperava que o array de cookies fosse de instâncias de "{1}", mas obteve "{2}" no índice {3}.',
'unknownCookieInstance' => 'O objeto de cookie com o nome "{0}" e prefixo "{1}" não foi encontrado na coleção.',
];
18 changes: 10 additions & 8 deletions Language/pt-BR/Core.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* This file is part of CodeIgniter 4 framework.
*
Expand All @@ -9,13 +11,13 @@
* the LICENSE file that was distributed with this source code.
*/

// Core language settings
// Configurações de linguagem do Core (Núcleo)
return [
'copyError' => 'Um erro foi encontrado ao tentar substituir o arquivo. Por favor, certifique-se de que seu diretório de arquivos é gravável.', // 'An error was encountered while attempting to replace the file "{0}". Please make sure your file directory is writable.',
'enabledZlibOutputCompression' => 'Sua diretiva zlib.output_compression ini está ligada. Isso não irá trabalhar bem com a saída de buffers.', // 'Your zlib.output_compression ini directive is turned on. This will not work well with output buffers.',
'invalidFile' => 'Arquivo inválido: "{0}"', // 'Invalid file: "{0}"',
'invalidDirectory' => 'O diretório não existe: "{0}"', // 'Directory does not exist: "{0}"',
'invalidPhpVersion' => 'Sua versão do PHP deve ser "{0}" ou mais recente para rodar CodeIgniter. Versão atual: "{1}"', // 'Your PHP version must be {0} or higher to run CodeIgniter. Current version: {1}',
'missingExtension' => 'A extensão "{0}" não está carregada.', // 'The framework needs the following extension(s) installed and loaded: "{0}".',
'noHandlers' => '"{0}" deve fornecer pelo menos um Handler.', // '"{0}" must provide at least one Handler.',
'copyError' => 'Um erro foi encontrado ao tentar substituir o arquivo "{0}". Certifique-se de que seu diretório de arquivos tenha permissão de escrita.',
'enabledZlibOutputCompression' => 'Sua diretiva ini zlib.output_compression está ativada. Isso não funcionará bem com buffers de saída.',
'invalidFile' => 'Arquivo inválido: "{0}"',
'invalidDirectory' => 'O diretório não existe: "{0}"',
'invalidPhpVersion' => 'Sua versão do PHP deve ser {0} ou superior para rodar o CodeIgniter. Versão atual: {1}',
'missingExtension' => 'O framework precisa da(s) seguinte(s) extensão(ões) instalada(s) e carregada(s): "{0}".',
'noHandlers' => '"{0}" deve fornecer pelo menos um Handler.',
];
Loading