Skip to content

Commit

Permalink
Merge pull request #148 from Conectivo/master
Browse files Browse the repository at this point in the history
Added more improvements about i18n
  • Loading branch information
webvimark authored Oct 13, 2016
2 parents 3396c8d + cd53d0a commit 8fe5bbb
Show file tree
Hide file tree
Showing 24 changed files with 366 additions and 35 deletions.
84 changes: 84 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# Sublime project files
*.sublime-*

# phpstorm project files
.idea

# netbeans project files
nbproject

# zend studio for eclipse project files
.buildpath
.project
.settings

# Yii framework
# =========================
!assets/.gitignore
runtime/*
!runtime/.gitignore
data/*.db
themes/classic/views/
!web/uploads
/web/uploads/*

# composer vendor dir
/vendor

# composer itself is not needed
composer.phar
composer.lock

# SASS
.sass-cache

# =========================
# Operating System Files
# =========================

# Unix / Linux
# =========================
*~

# OSX
# =========================

# Mac DS_Store Files
.DS_Store
.AppleDouble
.LSOverride

# Icon must ends with two \r.
Icon


# Thumbnails
._*

# Files that might appear on external disk
.Spotlight-V100
.Trashes

# Windows
# =========================

# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msm
*.msp

# phpunit itself is not needed
phpunit.phar
# local phpunit config
/phpunit.xml
2 changes: 1 addition & 1 deletion messages/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
'sourcePath' => __DIR__ . '/../',
// array, required, list of language codes that the extracted messages
// should be translated to. For example, ['zh-CN', 'de'].
'languages' => ['cs', 'de', 'ru','pt-BR','ko-KR', 'pt-PT'],
'languages' => ['cs', 'de', 'es', 'ru','pt-BR','ko-KR', 'pt-PT'],
// 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
Expand Down
12 changes: 11 additions & 1 deletion messages/cs/back.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@
'Child permissions' => '',
'Child roles' => '',
'Code' => '',
'Confirmation Token' => '',
'Create' => '',
'Created' => '',
'Creating permission group' => '',
'Current password' => '',
'Data' => '',
'Delete' => '',
'Description' => '',
'E-mail' => '',
'E-mail confirmed' => '',
'E-mail with activation link has been sent to <b>{email}</b>. This link will expire in {minutes} min.' => '',
'Edit' => '',
Expand All @@ -46,7 +48,9 @@
'Editing user: ' => '',
'For example: 123.34.56.78, 168.111.192.12' => '',
'Group' => '',
'ID' => '',
'Inactive' => '',
'IP' => '',
'Language' => '',
'Login' => '',
'Name' => '',
Expand All @@ -56,22 +60,28 @@
'Permission creation' => '',
'Permission groups' => '',
'Permissions' => '',
'Permissions for role - "{role}"' => '',
'Permissions for role:' => '',
'Refresh routes' => '',
'Refresh routes (and delete unused)' => '',
'Registration IP' => '',
'Repeat password' => '',
'Reset' => '',
'Role creation' => '',
'Roles' => '',
'Roles and permissions' => '',
'Roles and permissions for user:' => '',
'Routes that are not exists in this application will be deleted. Do not recommended for application with "advanced" structure, because frontend and backend have they own set of routes.' => '',
'Rule' => '',
'Save' => '',
'Saved' => '',
'Search' => '',
'Search route' => '',
'Settings for permission' => '',
'Show all' => '',
'Show only selected' => '',
'Status' => '',
'Superadmin' => '',
'Token' => '',
'Too many attempts' => '',
'Type' => '',
'Updated' => '',
Expand Down
1 change: 1 addition & 0 deletions messages/cs/front.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
'Confirm E-mail' => '',
'Continue' => '',
'Could not send confirmation email' => '',
'E-mail' => '',
'E-mail confirmation for' => '',
'E-mail confirmed' => '',
'E-mail is invalid' => '',
Expand Down
28 changes: 19 additions & 9 deletions messages/de/back.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Message translations.
*
* This file is automatically generated by 'yii message' command.
* This file is automatically generated by 'yii message/extract' command.
* It contains the localizable messages extracted from source code.
* You may modify this file by translating the extracted messages.
*
Expand All @@ -17,30 +17,29 @@
* NOTE: this file must be saved in UTF-8 encoding.
*/
return [
'Banned' => '',
'Browser' => '',
'Code' => '',
'E-mail with activation link has been sent to <b>{email}</b>. This link will expire in {minutes} min.' => '',
'Login' => '',
'Name' => '',
'Status' => '',
'Active' => 'Aktiv',
'Are you sure you want to delete this user?' => 'Wollen Sie diesen Benutzer wirklich löschen?',
'Banned' => '',
'Bind to IP' => 'An IP binden',
'Browser' => '',
'Change own password' => 'Eigenes Passwort ändern',
'Change password' => 'Passwort ändern',
'Changing password' => 'Ändere Passwort',
'Changing password for user: ' => 'Ändere Passwort von Benutzer: ',
'Child permissions' => 'Kind-Berechtigungen',
'Child roles' => 'Kind-Rollen',
'Code' => '',
'Confirmation Token' => '',
'Create' => 'Erstellen',
'Created' => 'Erstellt',
'Creating permission group' => 'Erstelle Berechtigungs-Gruppe',
'Current password' => 'Aktuelles Passwort',
'Data' => 'Daten',
'Delete' => 'Löschen',
'Description' => 'Beschreibung',
'E-mail' => '',
'E-mail confirmed' => 'E-Mail bestätigt',
'E-mail with activation link has been sent to <b>{email}</b>. This link will expire in {minutes} min.' => '',
'Edit' => 'Bearbeiten',
'Editing' => 'Bearbeite',
'Editing permission group' => 'Bearbeite Berechtigungs-Gruppe',
Expand All @@ -49,29 +48,40 @@
'Editing user: ' => 'Bearbeite Benutzer',
'For example: 123.34.56.78, 168.111.192.12' => 'Zum Beispiel: 123.34.56.78, 168.111.192.12',
'Group' => 'Gruppe',
'ID' => '',
'Inactive' => 'Inaktiv',
'IP' => '',
'Language' => 'Sprache',
'Login' => '',
'Name' => '',
'OS' => 'Betriebssystem',
'Password' => 'Passwort',
'Password has been changed' => 'Passwort wurde geändert',
'Permission creation' => 'Berechtigungserstellung',
'Permission groups' => 'Berechtigungs-Gruppen',
'Permissions' => 'Berechtigungen',
'Permissions for role - "{role}"' => 'Berechtigungen für Rolle - "{role}"',
'Permissions for role:' => 'Berechtigungen für Rolle',
'Refresh routes' => '',
'Refresh routes (and delete unused)' => '',
'Registration IP' => 'Registrierung IP',
'Repeat password' => 'Passwort wiederholen',
'Reset' => 'Zurücksetzen',
'Role creation' => 'Rollenerstellung',
'Roles' => 'Rollen',
'Roles and permissions' => 'Rollen und Berechtigungen',
'Roles and permissions for user:' => 'Rollen und Berechtigungen von Benutzer:',
'Routes that are not exists in this application will be deleted. Do not recommended for application with "advanced" structure, because frontend and backend have they own set of routes.' => '',
'Rule' => 'Rolle',
'Save' => 'Speichern',
'Saved' => 'Gespeichert',
'Search' => 'Suchen',
'Search route' => '',
'Settings for permission' => 'Einstellungen für Berechtigung',
'Show all' => '',
'Show only selected' => '',
'Status' => '',
'Superadmin' => 'Super-Administrator',
'Token' => '',
'Too many attempts' => 'Zu viele Versuche',
'Type' => 'Typ',
'Updated' => 'Aktualisiert',
Expand Down
1 change: 1 addition & 0 deletions messages/de/front.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
'Confirm' => 'Bestätigen',
'Confirm E-mail' => 'E-Mail bestätigen',
'Could not send confirmation email' => 'E-Mail zur Kontoaktivierung konnte nicht versandt werden',
'E-mail' => '',
'E-mail confirmation for' => 'E-Mail-Bestätigung für',
'E-mail confirmed' => 'E-Mail bestätigt',
'E-mail is invalid' => 'E-Mail ist ungültig',
Expand Down
97 changes: 97 additions & 0 deletions messages/es/back.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
<?php
/**
* Message translations.
*
* This file is automatically generated by 'yii message/extract' 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 [
'Active' => 'Activo',
'Are you sure you want to delete this user?' => '¿Está seguro que desea eliminar este usuario?',
'Banned' => 'Bloqueado',
'Bind to IP' => 'Casar a IP',
'Browser' => 'Navegador',
'Change own password' => 'Cambiar propia contraseña',
'Change password' => 'Cambiar contraseña de usuario',
'Changing password' => 'Cambiando contraseña',
'Changing password for user: ' => 'Cambiando contraseña para usuario: ',
'Child permissions' => 'Permisos hijos',
'Child roles' => 'Roles hijos',
'Code' => 'Código',
'Confirmation Token' => 'Token de confirmación',
'Create' => 'Crear',
'Created' => 'Creado',
'Creating permission group' => 'Creación de grupo de permisos',
'Current password' => 'Actual contraseña',
'Data' => 'Dato',
'Delete' => 'Eliminar',
'Description' => 'Descripción',
'E-mail' => 'Correo electrónico',
'E-mail confirmed' => 'Correo confirmado',
'E-mail with activation link has been sent to <b>{email}</b>. This link will expire in {minutes} min.' => 'Un correo electrónico con un enlace de activación ha sido enviado a <b>{email}</b>. El enlace expirara en {minutes} minutos.',
'Edit' => 'Editar',
'Editing' => 'Editando',
'Editing permission group' => 'Editando grupo de permiso',
'Editing permission: ' => 'Editando permiso:',
'Editing role: ' => 'Editando rol:',
'Editing user: ' => 'Editando usuario:',
'For example: 123.34.56.78, 168.111.192.12' => 'Por ejemplo: 123.34.56.78, 168.111.192.12',
'Group' => 'Grupo',
'ID' => 'Id',
'Inactive' => 'Inactivo',
'IP' => 'IP',
'Language' => 'Idioma',
'Login' => 'Inicio de sesión',
'Name' => 'Nombre',
'OS' => 'Sistema Operativo',
'Password' => 'Contraseña',
'Password has been changed' => 'Contraseña ha sido cambiada',
'Permission creation' => 'Creación de permisos',
'Permission groups' => 'Grupos de permisos',
'Permissions' => 'Permisos',
'Permissions for role:' => 'Permisos de role:',
'Refresh routes' => 'Refrescar rutas',
'Refresh routes (and delete unused)' => 'Refrescar rutas (y eliminar sin uso)',
'Registration IP' => 'IP Registrada',
'Repeat password' => 'Repetir contraseña',
'Reset' => 'Reestablecer',
'Role creation' => 'Creación de Rol',
'Roles' => 'Roles',
'Roles and permissions' => 'Roles y permisos',
'Roles and permissions for user:' => 'Roles y permisos para el usuario',
'Routes that are not exists in this application will be deleted. Do not recommended for application with "advanced" structure, because frontend and backend have they own set of routes.' => 'Se eliminarán rutas que no existan en esta aplicación. No se recomienda para aplicaciones con estructura de "avanzada", porque frontend y backend tienen que propio conjunto de rutas.',
'Rule' => 'Regla',
'Save' => 'Guardar',
'Saved' => 'Guardado',
'Search' => 'Buscar',
'Search route' => 'Buscar ruta',
'Settings for permission' => 'Configuración de permiso',
'Show all' => 'Mostrar todos',
'Show only selected' => 'Mostrar solo seleccionados',
'Status' => 'Estatus',
'Superadmin' => 'Super admin',
'Token' => 'Código Token',
'Too many attempts' => 'Demasiados intentos',
'Type' => 'Tipo',
'Updated' => 'Actualizado',
'User' => 'Usuario',
'User agent' => 'Agente de Usuario',
'User creation' => 'Creación de Usuario',
'Users' => 'Usuarios',
'Visit Time' => 'Fecha de visita',
'Visit log' => 'Registro de visita',
'Wrong format. Enter valid IPs separated by comma' => 'Formato incorrecto. Ingrese IPs valida separada por coma',
'Wrong password' => 'Contraseña incorrecta',
'You can not change own permissions' => 'Usted no puede cambiar sus propios permisos',
];
Loading

0 comments on commit 8fe5bbb

Please sign in to comment.