This commit is contained in:
Markus
2022-04-28 09:40:10 +02:00
commit 795794f992
9586 changed files with 1146991 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
<?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.
*/
// CLI language settings
return [
'altCommandPlural' => 'Did you mean one of these?',
'altCommandSingular' => 'Did you mean this?',
'commandNotFound' => 'Command "{0}" not found.',
'generator' => [
'cancelOperation' => 'Operation has been cancelled.',
'className' => [
'command' => 'Command class name',
'config' => 'Config class name',
'controller' => 'Controller class name',
'default' => 'Class name',
'entity' => 'Entity class name',
'filter' => 'Filter class name',
'migration' => 'Migration class name',
'model' => 'Model class name',
'seeder' => 'Seeder class name',
'validation' => 'Validation class name',
],
'commandType' => 'Command type',
'databaseGroup' => 'Database group',
'fileCreate' => 'File created: {0}',
'fileError' => 'Error while creating file: {0}',
'fileExist' => 'File exists: {0}',
'fileOverwrite' => 'File overwritten: {0}',
'parentClass' => 'Parent class',
'returnType' => 'Return type',
'tableName' => 'Table name',
'usingCINamespace' => 'Warning: Using the "CodeIgniter" namespace will generate the file in the system directory.',
],
'helpArguments' => 'Arguments:',
'helpDescription' => 'Description:',
'helpOptions' => 'Options:',
'helpUsage' => 'Usage:',
'invalidColor' => 'Invalid {0} color: {1}.',
'namespaceNotDefined' => 'Namespace "{0}" is not defined.',
];

View File

@@ -0,0 +1,18 @@
<?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.
*/
// Cache language settings
return [
'unableToWrite' => 'Cache unable to write to {0}.',
'invalidHandlers' => 'Cache config must have an array of $validHandlers.',
'noBackup' => 'Cache config must have a handler and backupHandler set.',
'handlerNotFound' => 'Cache config has an invalid handler or backup handler specified.',
];

View File

@@ -0,0 +1,23 @@
<?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.
*/
// Cast language settings
return [
'baseCastMissing' => 'The "{0}" class must inherit the "CodeIgniter\Entity\Cast\BaseCast" class.',
'invalidCastMethod' => 'The "{0}" is invalid cast method, valid methods are: ["get", "set"].',
'invalidTimestamp' => 'Type casting "timestamp" expects a correct timestamp.',
'jsonErrorCtrlChar' => 'Unexpected control character found.',
'jsonErrorDepth' => 'Maximum stack depth exceeded.',
'jsonErrorStateMismatch' => 'Underflow or the modes mismatch.',
'jsonErrorSyntax' => 'Syntax error, malformed JSON.',
'jsonErrorUnknown' => 'Unknown error.',
'jsonErrorUtf8' => 'Malformed UTF-8 characters, possibly incorrectly encoded.',
];

View File

@@ -0,0 +1,24 @@
<?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.
*/
// Cookie language settings
return [
'invalidExpiresTime' => 'Invalid "{0}" type for "Expires" attribute. Expected: string, integer, DateTimeInterface object.',
'invalidExpiresValue' => 'The cookie expiration time is not valid.',
'invalidCookieName' => 'The cookie name "{0}" contains invalid characters.',
'emptyCookieName' => 'The cookie name cannot be empty.',
'invalidSecurePrefix' => 'Using the "__Secure-" prefix requires setting the "Secure" attribute.',
'invalidHostPrefix' => 'Using the "__Host-" prefix must be set with the "Secure" flag, must not have a "Domain" attribute, and the "Path" is set to "/".',
'invalidSameSite' => 'The SameSite value must be None, Lax, Strict or a blank string, {0} given.',
'invalidSameSiteNone' => 'Using the "SameSite=None" attribute requires setting the "Secure" attribute.',
'invalidCookieInstance' => '"{0}" class expected cookies array to be instances of "{1}" but got "{2}" at index {3}.',
'unknownCookieInstance' => 'Cookie object with name "{0}" and prefix "{1}" was not found in the collection.',
];

View File

@@ -0,0 +1,20 @@
<?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.
*/
// Core language settings
return [
'copyError' => 'An error was encountered while attempting to replace the file ({0}). Please make sure your file directory is writable.',
'enabledZlibOutputCompression' => 'Your zlib.output_compression ini directive is turned on. This will not work well with output buffers.',
'invalidFile' => 'Invalid file: {0}',
'invalidPhpVersion' => 'Your PHP version must be {0} or higher to run CodeIgniter. Current version: {1}',
'missingExtension' => 'The framework needs the following extension(s) installed and loaded: {0}.',
'noHandlers' => '{0} must provide at least one Handler.',
];

View File

@@ -0,0 +1,30 @@
<?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.
*/
// Database language settings
return [
'invalidEvent' => '{0} is not a valid Model Event callback.',
'invalidArgument' => 'You must provide a valid {0}.',
'invalidAllowedFields' => 'Allowed fields must be specified for model: {0}',
'emptyDataset' => 'There is no data to {0}.',
'emptyPrimaryKey' => 'There is no primary key defined when trying to make {0}.',
'failGetFieldData' => 'Failed to get field data from database.',
'failGetIndexData' => 'Failed to get index data from database.',
'failGetForeignKeyData' => 'Failed to get foreign key data from database.',
'parseStringFail' => 'Parsing key string failed.',
'featureUnavailable' => 'This feature is not available for the database you are using.',
'tableNotFound' => 'Table `{0}` was not found in the current database.',
'noPrimaryKey' => '`{0}` model class does not specify a Primary Key.',
'noDateFormat' => '`{0}` model class does not have a valid dateFormat.',
'fieldNotExists' => 'Field `{0}` not found.',
'forEmptyInputGiven' => 'Empty statement is given for the field `{0}`',
'forFindColumnHaveMultipleColumns' => 'Only single column allowed in Column name.',
];

View File

@@ -0,0 +1,33 @@
<?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.
*/
// Email language settings
return [
'mustBeArray' => 'The email validation method must be passed an array.',
'invalidAddress' => 'Invalid email address: {0}',
'attachmentMissing' => 'Unable to locate the following email attachment: {0}',
'attachmentUnreadable' => 'Unable to open this attachment: {0}',
'noFrom' => 'Cannot send mail with no "From" header.',
'noRecipients' => 'You must include recipients: To, Cc, or Bcc',
'sendFailurePHPMail' => 'Unable to send email using PHP mail(). Your server might not be configured to send mail using this method.',
'sendFailureSendmail' => 'Unable to send email using PHP Sendmail. Your server might not be configured to send mail using this method.',
'sendFailureSmtp' => 'Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.',
'sent' => 'Your message has been successfully sent using the following protocol: {0}',
'noSocket' => 'Unable to open a socket to Sendmail. Please check settings.',
'noHostname' => 'You did not specify a SMTP hostname.',
'SMTPError' => 'The following SMTP error was encountered: {0}',
'noSMTPAuth' => 'Error: You must assign a SMTP username and password.',
'failedSMTPLogin' => 'Failed to send AUTH LOGIN command. Error: {0}',
'SMTPAuthUsername' => 'Failed to authenticate username. Error: {0}',
'SMTPAuthPassword' => 'Failed to authenticate password. Error: {0}',
'SMTPDataFailure' => 'Unable to send data: {0}',
'exitStatus' => 'Exit status code: {0}',
];

View File

@@ -0,0 +1,20 @@
<?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.
*/
// Encryption language settings
return [
'noDriverRequested' => 'No driver requested; Miss Daisy will be so upset!',
'noHandlerAvailable' => 'Unable to find an available {0} encryption handler.',
'unKnownHandler' => '"{0}" cannot be configured.',
'starterKeyNeeded' => 'Encrypter needs a starter key.',
'authenticationFailed' => 'Decrypting: authentication failed.',
'encryptionFailed' => 'Encryption failed.',
];

View File

@@ -0,0 +1,17 @@
<?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.
*/
// Fabricator language settings
return [
'invalidModel' => 'Invalid model supplied for fabrication.',
'missingFormatters' => 'No valid formatters defined.',
'createFailed' => 'Fabricator failed to insert on table {0}: {1}',
];

View File

@@ -0,0 +1,18 @@
<?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.
*/
// Files language settings
return [
'fileNotFound' => 'File not found: {0}',
'cannotMove' => 'Could not move file {0} to {1} ({2}).',
'expectedDirectory' => '{0} expects a valid directory.',
'expectedFile' => '{0} expects a valid file.',
];

View File

@@ -0,0 +1,16 @@
<?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.
*/
// Filters language settings
return [
'noFilter' => '{0} filter must have a matching alias defined.',
'incorrectInterface' => '{0} must implement CodeIgniter\Filters\FilterInterface.',
];

View File

@@ -0,0 +1,18 @@
<?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.
*/
// Format language settings
return [
'invalidFormatter' => '"{0}" is not a valid Formatter class.',
'invalidJSON' => 'Failed to parse json string, error: "{0}".',
'invalidMime' => 'No Formatter defined for mime type: "{0}".',
'missingExtension' => 'The SimpleXML extension is required to format XML.',
];

View File

@@ -0,0 +1,78 @@
<?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.
*/
// HTTP language settings
return [
// CurlRequest
'missingCurl' => 'CURL must be enabled to use the CURLRequest class.',
'invalidSSLKey' => 'Cannot set SSL Key. {0} is not a valid file.',
'sslCertNotFound' => 'SSL certificate not found at: {0}',
'curlError' => '{0} : {1}',
// IncomingRequest
'invalidNegotiationType' => '{0} is not a valid negotiation type. Must be one of: media, charset, encoding, language.',
// Message
'invalidHTTPProtocol' => 'Invalid HTTP Protocol Version. Must be one of: {0}',
// Negotiate
'emptySupportedNegotiations' => 'You must provide an array of supported values to all Negotiations.',
// RedirectResponse
'invalidRoute' => '{0} route cannot be found while reverse-routing.',
// DownloadResponse
'cannotSetBinary' => 'When setting filepath cannot set binary.',
'cannotSetFilepath' => 'When setting binary cannot set filepath: {0}',
'notFoundDownloadSource' => 'Not found download body source.',
'cannotSetCache' => 'It does not support caching for downloading.',
'cannotSetStatusCode' => 'It does not support change status code for downloading. code: {0}, reason: {1}',
// Response
'missingResponseStatus' => 'HTTP Response is missing a status code',
'invalidStatusCode' => '{0} is not a valid HTTP return status code',
'unknownStatusCode' => 'Unknown HTTP status code provided with no message: {0}',
// URI
'cannotParseURI' => 'Unable to parse URI: {0}',
'segmentOutOfRange' => 'Request URI segment is out of range: {0}',
'invalidPort' => 'Ports must be between 0 and 65535. Given: {0}',
'malformedQueryString' => 'Query strings may not include URI fragments.',
// Page Not Found
'pageNotFound' => 'Page Not Found',
'emptyController' => 'No Controller specified.',
'controllerNotFound' => 'Controller or its method is not found: {0}::{1}',
'methodNotFound' => 'Controller method is not found: {0}',
// CSRF
// @deprecated use `Security.disallowedAction`
'disallowedAction' => 'The action you requested is not allowed.',
// Uploaded file moving
'alreadyMoved' => 'The uploaded file has already been moved.',
'invalidFile' => 'The original file is not a valid file.',
'moveFailed' => 'Could not move file {0} to {1} ({2})',
'uploadErrOk' => 'The file uploaded with success.',
'uploadErrIniSize' => 'The file "%s" exceeds your upload_max_filesize ini directive.',
'uploadErrFormSize' => 'The file "%s" exceeds the upload limit defined in your form.',
'uploadErrPartial' => 'The file "%s" was only partially uploaded.',
'uploadErrNoFile' => 'No file was uploaded.',
'uploadErrCantWrite' => 'The file "%s" could not be written on disk.',
'uploadErrNoTmpDir' => 'File could not be uploaded: missing temporary directory.',
'uploadErrExtension' => 'File upload was stopped by a PHP extension.',
'uploadErrUnknown' => 'The file "%s" was not uploaded due to an unknown error.',
// SameSite setting
// @deprecated
'invalidSameSiteSetting' => 'The SameSite setting must be None, Lax, Strict, or a blank string. Given: {0}',
];

View File

@@ -0,0 +1,34 @@
<?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.
*/
// Images language settings
return [
'sourceImageRequired' => 'You must specify a source image in your preferences.',
'gdRequired' => 'The GD image library is required to use this feature.',
'gdRequiredForProps' => 'Your server must support the GD image library in order to determine the image properties.',
'gifNotSupported' => 'GIF images are often not supported due to licensing restrictions. You may have to use JPG or PNG images instead.',
'jpgNotSupported' => 'JPG images are not supported.',
'pngNotSupported' => 'PNG images are not supported.',
'webpNotSupported' => 'WEBP images are not supported.',
'fileNotSupported' => 'The supplied file is not a supported image type.',
'unsupportedImageCreate' => 'Your server does not support the GD function required to process this type of image.',
'jpgOrPngRequired' => 'The image resize protocol specified in your preferences only works with JPEG or PNG image types.',
'rotateUnsupported' => 'Image rotation does not appear to be supported by your server.',
'libPathInvalid' => 'The path to your image library is not correct. Please set the correct path in your image preferences. {0}',
'imageProcessFailed' => 'Image processing failed. Please verify that your server supports the chosen protocol and that the path to your image library is correct.',
'rotationAngleRequired' => 'An angle of rotation is required to rotate the image.',
'invalidPath' => 'The path to the image is not correct.',
'copyFailed' => 'The image copy routine failed.',
'missingFont' => 'Unable to find a font to use.',
'saveFailed' => 'Unable to save the image. Please make sure the image and file directory are writable.',
'invalidDirection' => 'Flip direction can be only `vertical` or `horizontal`. Given: {0}',
'exifNotSupported' => 'Reading EXIF data is not supported by this PHP installation.',
];

View File

@@ -0,0 +1,16 @@
<?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.
*/
// Log language settings
return [
'invalidLogLevel' => '{0} is an invalid log level.',
'invalidMessageType' => 'The given message type "{0}" is not supported.',
];

View File

@@ -0,0 +1,57 @@
<?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.
*/
// Migration language settings
return [
// Migration Runner
'missingTable' => 'Migrations table must be set.',
'disabled' => 'Migrations have been loaded but are disabled or setup incorrectly.',
'notFound' => 'Migration file not found: ',
'batchNotFound' => 'Target batch not found: ',
'empty' => 'No Migration files found',
'gap' => 'There is a gap in the migration sequence near version number: ',
'classNotFound' => 'The migration class "%s" could not be found.',
'missingMethod' => 'The migration class is missing an "%s" method.',
// Migration Command
'migHelpLatest' => "\t\tMigrates database to latest available migration.",
'migHelpCurrent' => "\t\tMigrates database to version set as 'current' in configuration.",
'migHelpVersion' => "\tMigrates database to version {v}.",
'migHelpRollback' => "\tRuns all migrations 'down' to version 0.",
'migHelpRefresh' => "\t\tUninstalls and re-runs all migrations to freshen database.",
'migHelpSeed' => "\tRuns the seeder named [name].",
'migCreate' => "\tCreates a new migration named [name]",
'nameMigration' => 'Name the migration file',
'migNumberError' => 'Migration number must be three digits, and there must not be any gaps in the sequence.',
'rollBackConfirm' => 'Are you sure you want to rollback?',
'refreshConfirm' => 'Are you sure you want to refresh?',
'latest' => 'Running all new migrations...',
'generalFault' => 'Migration failed!',
'migInvalidVersion' => 'Invalid version number provided.',
'toVersionPH' => 'Migrating to version %s...',
'toVersion' => 'Migrating to current version...',
'rollingBack' => 'Rolling back migrations to batch: ',
'noneFound' => 'No migrations were found.',
'migSeeder' => 'Seeder name',
'migMissingSeeder' => 'You must provide a seeder name.',
'nameSeeder' => 'Name the seeder file',
'removed' => 'Rolling back: ',
'added' => 'Running: ',
// Migrate Status
'namespace' => 'Namespace',
'filename' => 'Filename',
'version' => 'Version',
'group' => 'Group',
'on' => 'Migrated On: ',
'batch' => 'Batch',
];

View File

@@ -0,0 +1,26 @@
<?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.
*/
// Number language settings
return [
'terabyteAbbr' => 'TB',
'gigabyteAbbr' => 'GB',
'megabyteAbbr' => 'MB',
'kilobyteAbbr' => 'KB',
'bytes' => 'Bytes',
// don't forget the space in front of these!
'thousand' => ' thousand',
'million' => ' million',
'billion' => ' billion',
'trillion' => ' trillion',
'quadrillion' => ' quadrillion',
];

View File

@@ -0,0 +1,23 @@
<?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.
*/
// Pager language settings
return [
'pageNavigation' => 'Page navigation',
'first' => 'First',
'previous' => 'Previous',
'next' => 'Next',
'last' => 'Last',
'older' => 'Older',
'newer' => 'Newer',
'invalidTemplate' => '{0} is not a valid Pager template.',
'invalidPaginationGroup' => '{0} is not a valid Pagination group.',
];

View File

@@ -0,0 +1,22 @@
<?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.
*/
// Publisher language settings
return [
'collision' => 'Publisher encountered an unexpected {0} while copying {1} to {2}.',
'destinationNotAllowed' => 'Destination is not on the allowed list of Publisher directories: {0}',
'fileNotAllowed' => '{0} fails the following restriction for {1}: {2}',
// Publish Command
'publishMissing' => 'No Publisher classes detected in {0} across all namespaces.',
'publishSuccess' => '{0} published {1} file(s) to {2}.',
'publishFailure' => '{0} failed to publish to {1}!',
];

View File

@@ -0,0 +1,15 @@
<?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.
*/
// RESTful language settings
return [
'notImplemented' => '"{0}" action not implemented.',
];

View File

@@ -0,0 +1,16 @@
<?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.
*/
// Router language settings
return [
'invalidParameter' => 'A parameter does not match the expected type.',
'missingDefaultRoute' => 'Unable to determine what should be displayed. A default route has not been specified in the routing file.',
];

View File

@@ -0,0 +1,18 @@
<?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.
*/
// Security language settings
return [
'disallowedAction' => 'The action you requested is not allowed.',
// @deprecated
'invalidSameSite' => 'The SameSite value must be None, Lax, Strict, or a blank string. Given: {0}',
];

View File

@@ -0,0 +1,22 @@
<?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.
*/
// Session language settings
return [
'missingDatabaseTable' => '`sessionSavePath` must have the table name for the Database Session Handler to work.',
'invalidSavePath' => 'Session: Configured save path "{0}" is not a directory, does not exist or cannot be created.',
'writeProtectedSavePath' => 'Session: Configured save path "{0}" is not writable by the PHP process.',
'emptySavePath' => 'Session: No save path configured.',
'invalidSavePathFormat' => 'Session: Invalid Redis save path format: {0}',
// @deprecated
'invalidSameSiteSetting' => 'Session: The SameSite setting must be None, Lax, Strict, or a blank string. Given: {0}',
];

View File

@@ -0,0 +1,15 @@
<?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.
*/
// Testing language settings
return [
'invalidMockClass' => '{0} is not a valid Mock class',
];

View File

@@ -0,0 +1,33 @@
<?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.
*/
// Time language settings
return [
'invalidFormat' => '"{0}" is not a valid datetime format',
'invalidMonth' => 'Months must be between 1 and 12. Given: {0}',
'invalidDay' => 'Days must be between 1 and 31. Given: {0}',
'invalidOverDay' => 'Days must be between 1 and {0}. Given: {1}',
'invalidHours' => 'Hours must be between 0 and 23. Given: {0}',
'invalidMinutes' => 'Minutes must be between 0 and 59. Given: {0}',
'invalidSeconds' => 'Seconds must be between 0 and 59. Given: {0}',
'years' => '{0, plural, =1{# year} other{# years}}',
'months' => '{0, plural, =1{# month} other{# months}}',
'weeks' => '{0, plural, =1{# week} other{# weeks}}',
'days' => '{0, plural, =1{# day} other{# days}}',
'hours' => '{0, plural, =1{# hour} other{# hours}}',
'minutes' => '{0, plural, =1{# minute} other{# minutes}}',
'seconds' => '{0, plural, =1{# second} other{# seconds}}',
'ago' => '{0} ago',
'inFuture' => 'in {0}',
'yesterday' => 'Yesterday',
'tomorrow' => 'Tomorrow',
'now' => 'Just now',
];

View File

@@ -0,0 +1,72 @@
<?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.
*/
// Validation language settings
return [
// Core Messages
'noRuleSets' => 'No rulesets specified in Validation configuration.',
'ruleNotFound' => '{0} is not a valid rule.',
'groupNotFound' => '{0} is not a validation rules group.',
'groupNotArray' => '{0} rule group must be an array.',
'invalidTemplate' => '{0} is not a valid Validation template.',
// Rule Messages
'alpha' => 'The {field} field may only contain alphabetical characters.',
'alpha_dash' => 'The {field} field may only contain alphanumeric, underscore, and dash characters.',
'alpha_numeric' => 'The {field} field may only contain alphanumeric characters.',
'alpha_numeric_punct' => 'The {field} field may contain only alphanumeric characters, spaces, and ~ ! # $ % & * - _ + = | : . characters.',
'alpha_numeric_space' => 'The {field} field may only contain alphanumeric and space characters.',
'alpha_space' => 'The {field} field may only contain alphabetical characters and spaces.',
'decimal' => 'The {field} field must contain a decimal number.',
'differs' => 'The {field} field must differ from the {param} field.',
'equals' => 'The {field} field must be exactly: {param}.',
'exact_length' => 'The {field} field must be exactly {param} characters in length.',
'greater_than' => 'The {field} field must contain a number greater than {param}.',
'greater_than_equal_to' => 'The {field} field must contain a number greater than or equal to {param}.',
'hex' => 'The {field} field may only contain hexidecimal characters.',
'in_list' => 'The {field} field must be one of: {param}.',
'integer' => 'The {field} field must contain an integer.',
'is_natural' => 'The {field} field must only contain digits.',
'is_natural_no_zero' => 'The {field} field must only contain digits and must be greater than zero.',
'is_not_unique' => 'The {field} field must contain a previously existing value in the database.',
'is_unique' => 'The {field} field must contain a unique value.',
'less_than' => 'The {field} field must contain a number less than {param}.',
'less_than_equal_to' => 'The {field} field must contain a number less than or equal to {param}.',
'matches' => 'The {field} field does not match the {param} field.',
'max_length' => 'The {field} field cannot exceed {param} characters in length.',
'min_length' => 'The {field} field must be at least {param} characters in length.',
'not_equals' => 'The {field} field cannot be: {param}.',
'not_in_list' => 'The {field} field must not be one of: {param}.',
'numeric' => 'The {field} field must contain only numbers.',
'regex_match' => 'The {field} field is not in the correct format.',
'required' => 'The {field} field is required.',
'required_with' => 'The {field} field is required when {param} is present.',
'required_without' => 'The {field} field is required when {param} is not present.',
'string' => 'The {field} field must be a valid string.',
'timezone' => 'The {field} field must be a valid timezone.',
'valid_base64' => 'The {field} field must be a valid base64 string.',
'valid_email' => 'The {field} field must contain a valid email address.',
'valid_emails' => 'The {field} field must contain all valid email addresses.',
'valid_ip' => 'The {field} field must contain a valid IP.',
'valid_url' => 'The {field} field must contain a valid URL.',
'valid_date' => 'The {field} field must contain a valid date.',
// Credit Cards
'valid_cc_num' => '{field} does not appear to be a valid credit card number.',
// Files
'uploaded' => '{field} is not a valid uploaded file.',
'max_size' => '{field} is too large of a file.',
'is_image' => '{field} is not a valid, uploaded image file.',
'mime_in' => '{field} does not have a valid mime type.',
'ext_in' => '{field} does not have a valid file extension.',
'max_dims' => '{field} is either not an image, or it is too wide or tall.',
];

View File

@@ -0,0 +1,20 @@
<?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.
*/
// View language settings
return [
'invalidCellMethod' => '{class}::{method} is not a valid method.',
'missingCellParameters' => '{class}::{method} has no params.',
'invalidCellParameter' => '{0} is not a valid param name.',
'noCellClass' => 'No view cell class provided.',
'invalidCellClass' => 'Unable to locate view cell class: {0}.',
'tagSyntaxError' => 'You have a syntax error in your Parser tags: {0}',
];