Skip to content

Commit

Permalink
Add Spanish language, translation related with exception messages. (#155
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jcvalerio authored and vova07 committed Jan 5, 2019
1 parent 6935e45 commit 2a352da
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/messages/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
return [
'sourcePath' => dirname(__DIR__),
'messagePath' => __DIR__,
'languages' => ['de', 'en', 'pt-BR', 'ru', 'ro'],
'languages' => ['de', 'en', 'es', 'pt-BR', 'ru', 'ro'],
'translator' => 'Yii::t',
'sort' => false,
'overwrite' => true,
Expand Down
26 changes: 26 additions & 0 deletions src/messages/es/imperavi.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php
/**
* Message translations.
*
* This file is automatically generated by 'yii message' command.
* It contains the localizable messages extracted from source code.
* You may modify this file by translating the extracted messages.
*
* Each array element represents the translation (value) of a message (key).
* If the value is empty, the message is considered as not translated.
* Messages that no longer need translation will have their translations
* enclosed between a pair of '@@' marks.
*
* Message string can be used with plural forms format. Check i18n section
* of the guide for details.
*
* NOTE: this file must be saved in UTF-8 encoding.
*/
return [
'ERROR_CAN_NOT_UPLOAD_FILE' => 'No se pudo subir el archivo.',
'ERROR_DURING_UPLOAD_PROCESS' => '¡Se produjo un error durante el proceso de carga!',
'ERROR_FILE_ALREADY_EXIST' => 'Un archivo con el mismo nombre ya existe.',
'ERROR_FILE_IDENTIFIER_MUST_BE_PROVIDED' => 'Se debe proporcionar el identificador de archivo.',
'ERROR_FILE_DOES_NOT_EXIST' => 'El archivo especificado no existe.',
'ERROR_CANNOT_REMOVE_FILE' => 'No se puede eliminar el archivo, algo salió mal.',
];

0 comments on commit 2a352da

Please sign in to comment.