Skip to content

Commit 8fe5bbb

Browse files
authored
Merge pull request #148 from Conectivo/master
Added more improvements about i18n
2 parents 3396c8d + cd53d0a commit 8fe5bbb

File tree

24 files changed

+366
-35
lines changed

24 files changed

+366
-35
lines changed

.gitignore

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
# Sublime project files
2+
*.sublime-*
3+
4+
# phpstorm project files
5+
.idea
6+
7+
# netbeans project files
8+
nbproject
9+
10+
# zend studio for eclipse project files
11+
.buildpath
12+
.project
13+
.settings
14+
15+
# Yii framework
16+
# =========================
17+
!assets/.gitignore
18+
runtime/*
19+
!runtime/.gitignore
20+
data/*.db
21+
themes/classic/views/
22+
!web/uploads
23+
/web/uploads/*
24+
25+
# composer vendor dir
26+
/vendor
27+
28+
# composer itself is not needed
29+
composer.phar
30+
composer.lock
31+
32+
# SASS
33+
.sass-cache
34+
35+
# =========================
36+
# Operating System Files
37+
# =========================
38+
39+
# Unix / Linux
40+
# =========================
41+
*~
42+
43+
# OSX
44+
# =========================
45+
46+
# Mac DS_Store Files
47+
.DS_Store
48+
.AppleDouble
49+
.LSOverride
50+
51+
# Icon must ends with two \r.
52+
Icon
53+
54+
55+
# Thumbnails
56+
._*
57+
58+
# Files that might appear on external disk
59+
.Spotlight-V100
60+
.Trashes
61+
62+
# Windows
63+
# =========================
64+
65+
# Windows image file caches
66+
Thumbs.db
67+
ehthumbs.db
68+
69+
# Folder config file
70+
Desktop.ini
71+
72+
# Recycle Bin used on file shares
73+
$RECYCLE.BIN/
74+
75+
# Windows Installer files
76+
*.cab
77+
*.msi
78+
*.msm
79+
*.msp
80+
81+
# phpunit itself is not needed
82+
phpunit.phar
83+
# local phpunit config
84+
/phpunit.xml

messages/config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
'sourcePath' => __DIR__ . '/../',
66
// array, required, list of language codes that the extracted messages
77
// should be translated to. For example, ['zh-CN', 'de'].
8-
'languages' => ['cs', 'de', 'ru','pt-BR','ko-KR', 'pt-PT'],
8+
'languages' => ['cs', 'de', 'es', 'ru','pt-BR','ko-KR', 'pt-PT'],
99
// string, the name of the function for translating messages.
1010
// Defaults to 'Yii::t'. This is used as a mark to find the messages to be
1111
// translated. You may use a string for single function name or an array for

messages/cs/back.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,15 @@
2929
'Child permissions' => '',
3030
'Child roles' => '',
3131
'Code' => '',
32+
'Confirmation Token' => '',
3233
'Create' => '',
3334
'Created' => '',
3435
'Creating permission group' => '',
3536
'Current password' => '',
3637
'Data' => '',
3738
'Delete' => '',
3839
'Description' => '',
40+
'E-mail' => '',
3941
'E-mail confirmed' => '',
4042
'E-mail with activation link has been sent to <b>{email}</b>. This link will expire in {minutes} min.' => '',
4143
'Edit' => '',
@@ -46,7 +48,9 @@
4648
'Editing user: ' => '',
4749
'For example: 123.34.56.78, 168.111.192.12' => '',
4850
'Group' => '',
51+
'ID' => '',
4952
'Inactive' => '',
53+
'IP' => '',
5054
'Language' => '',
5155
'Login' => '',
5256
'Name' => '',
@@ -56,22 +60,28 @@
5660
'Permission creation' => '',
5761
'Permission groups' => '',
5862
'Permissions' => '',
59-
'Permissions for role - "{role}"' => '',
6063
'Permissions for role:' => '',
64+
'Refresh routes' => '',
65+
'Refresh routes (and delete unused)' => '',
6166
'Registration IP' => '',
6267
'Repeat password' => '',
6368
'Reset' => '',
6469
'Role creation' => '',
6570
'Roles' => '',
6671
'Roles and permissions' => '',
6772
'Roles and permissions for user:' => '',
73+
'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.' => '',
6874
'Rule' => '',
6975
'Save' => '',
7076
'Saved' => '',
7177
'Search' => '',
78+
'Search route' => '',
7279
'Settings for permission' => '',
80+
'Show all' => '',
81+
'Show only selected' => '',
7382
'Status' => '',
7483
'Superadmin' => '',
84+
'Token' => '',
7585
'Too many attempts' => '',
7686
'Type' => '',
7787
'Updated' => '',

messages/cs/front.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
'Confirm E-mail' => '',
2626
'Continue' => '',
2727
'Could not send confirmation email' => '',
28+
'E-mail' => '',
2829
'E-mail confirmation for' => '',
2930
'E-mail confirmed' => '',
3031
'E-mail is invalid' => '',

messages/de/back.php

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Message translations.
44
*
5-
* This file is automatically generated by 'yii message' command.
5+
* This file is automatically generated by 'yii message/extract' command.
66
* It contains the localizable messages extracted from source code.
77
* You may modify this file by translating the extracted messages.
88
*
@@ -17,30 +17,29 @@
1717
* NOTE: this file must be saved in UTF-8 encoding.
1818
*/
1919
return [
20-
'Banned' => '',
21-
'Browser' => '',
22-
'Code' => '',
23-
'E-mail with activation link has been sent to <b>{email}</b>. This link will expire in {minutes} min.' => '',
24-
'Login' => '',
25-
'Name' => '',
26-
'Status' => '',
2720
'Active' => 'Aktiv',
2821
'Are you sure you want to delete this user?' => 'Wollen Sie diesen Benutzer wirklich löschen?',
22+
'Banned' => '',
2923
'Bind to IP' => 'An IP binden',
24+
'Browser' => '',
3025
'Change own password' => 'Eigenes Passwort ändern',
3126
'Change password' => 'Passwort ändern',
3227
'Changing password' => 'Ändere Passwort',
3328
'Changing password for user: ' => 'Ändere Passwort von Benutzer: ',
3429
'Child permissions' => 'Kind-Berechtigungen',
3530
'Child roles' => 'Kind-Rollen',
31+
'Code' => '',
32+
'Confirmation Token' => '',
3633
'Create' => 'Erstellen',
3734
'Created' => 'Erstellt',
3835
'Creating permission group' => 'Erstelle Berechtigungs-Gruppe',
3936
'Current password' => 'Aktuelles Passwort',
4037
'Data' => 'Daten',
4138
'Delete' => 'Löschen',
4239
'Description' => 'Beschreibung',
40+
'E-mail' => '',
4341
'E-mail confirmed' => 'E-Mail bestätigt',
42+
'E-mail with activation link has been sent to <b>{email}</b>. This link will expire in {minutes} min.' => '',
4443
'Edit' => 'Bearbeiten',
4544
'Editing' => 'Bearbeite',
4645
'Editing permission group' => 'Bearbeite Berechtigungs-Gruppe',
@@ -49,29 +48,40 @@
4948
'Editing user: ' => 'Bearbeite Benutzer',
5049
'For example: 123.34.56.78, 168.111.192.12' => 'Zum Beispiel: 123.34.56.78, 168.111.192.12',
5150
'Group' => 'Gruppe',
51+
'ID' => '',
5252
'Inactive' => 'Inaktiv',
53+
'IP' => '',
5354
'Language' => 'Sprache',
55+
'Login' => '',
56+
'Name' => '',
5457
'OS' => 'Betriebssystem',
5558
'Password' => 'Passwort',
5659
'Password has been changed' => 'Passwort wurde geändert',
5760
'Permission creation' => 'Berechtigungserstellung',
5861
'Permission groups' => 'Berechtigungs-Gruppen',
5962
'Permissions' => 'Berechtigungen',
60-
'Permissions for role - "{role}"' => 'Berechtigungen für Rolle - "{role}"',
6163
'Permissions for role:' => 'Berechtigungen für Rolle',
64+
'Refresh routes' => '',
65+
'Refresh routes (and delete unused)' => '',
6266
'Registration IP' => 'Registrierung IP',
6367
'Repeat password' => 'Passwort wiederholen',
6468
'Reset' => 'Zurücksetzen',
6569
'Role creation' => 'Rollenerstellung',
6670
'Roles' => 'Rollen',
6771
'Roles and permissions' => 'Rollen und Berechtigungen',
6872
'Roles and permissions for user:' => 'Rollen und Berechtigungen von Benutzer:',
73+
'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.' => '',
6974
'Rule' => 'Rolle',
7075
'Save' => 'Speichern',
7176
'Saved' => 'Gespeichert',
7277
'Search' => 'Suchen',
78+
'Search route' => '',
7379
'Settings for permission' => 'Einstellungen für Berechtigung',
80+
'Show all' => '',
81+
'Show only selected' => '',
82+
'Status' => '',
7483
'Superadmin' => 'Super-Administrator',
84+
'Token' => '',
7585
'Too many attempts' => 'Zu viele Versuche',
7686
'Type' => 'Typ',
7787
'Updated' => 'Aktualisiert',

messages/de/front.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
'Confirm' => 'Bestätigen',
2727
'Confirm E-mail' => 'E-Mail bestätigen',
2828
'Could not send confirmation email' => 'E-Mail zur Kontoaktivierung konnte nicht versandt werden',
29+
'E-mail' => '',
2930
'E-mail confirmation for' => 'E-Mail-Bestätigung für',
3031
'E-mail confirmed' => 'E-Mail bestätigt',
3132
'E-mail is invalid' => 'E-Mail ist ungültig',

messages/es/back.php

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
<?php
2+
/**
3+
* Message translations.
4+
*
5+
* This file is automatically generated by 'yii message/extract' command.
6+
* It contains the localizable messages extracted from source code.
7+
* You may modify this file by translating the extracted messages.
8+
*
9+
* Each array element represents the translation (value) of a message (key).
10+
* If the value is empty, the message is considered as not translated.
11+
* Messages that no longer need translation will have their translations
12+
* enclosed between a pair of '@@' marks.
13+
*
14+
* Message string can be used with plural forms format. Check i18n section
15+
* of the guide for details.
16+
*
17+
* NOTE: this file must be saved in UTF-8 encoding.
18+
*/
19+
return [
20+
'Active' => 'Activo',
21+
'Are you sure you want to delete this user?' => '¿Está seguro que desea eliminar este usuario?',
22+
'Banned' => 'Bloqueado',
23+
'Bind to IP' => 'Casar a IP',
24+
'Browser' => 'Navegador',
25+
'Change own password' => 'Cambiar propia contraseña',
26+
'Change password' => 'Cambiar contraseña de usuario',
27+
'Changing password' => 'Cambiando contraseña',
28+
'Changing password for user: ' => 'Cambiando contraseña para usuario: ',
29+
'Child permissions' => 'Permisos hijos',
30+
'Child roles' => 'Roles hijos',
31+
'Code' => 'Código',
32+
'Confirmation Token' => 'Token de confirmación',
33+
'Create' => 'Crear',
34+
'Created' => 'Creado',
35+
'Creating permission group' => 'Creación de grupo de permisos',
36+
'Current password' => 'Actual contraseña',
37+
'Data' => 'Dato',
38+
'Delete' => 'Eliminar',
39+
'Description' => 'Descripción',
40+
'E-mail' => 'Correo electrónico',
41+
'E-mail confirmed' => 'Correo confirmado',
42+
'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.',
43+
'Edit' => 'Editar',
44+
'Editing' => 'Editando',
45+
'Editing permission group' => 'Editando grupo de permiso',
46+
'Editing permission: ' => 'Editando permiso:',
47+
'Editing role: ' => 'Editando rol:',
48+
'Editing user: ' => 'Editando usuario:',
49+
'For example: 123.34.56.78, 168.111.192.12' => 'Por ejemplo: 123.34.56.78, 168.111.192.12',
50+
'Group' => 'Grupo',
51+
'ID' => 'Id',
52+
'Inactive' => 'Inactivo',
53+
'IP' => 'IP',
54+
'Language' => 'Idioma',
55+
'Login' => 'Inicio de sesión',
56+
'Name' => 'Nombre',
57+
'OS' => 'Sistema Operativo',
58+
'Password' => 'Contraseña',
59+
'Password has been changed' => 'Contraseña ha sido cambiada',
60+
'Permission creation' => 'Creación de permisos',
61+
'Permission groups' => 'Grupos de permisos',
62+
'Permissions' => 'Permisos',
63+
'Permissions for role:' => 'Permisos de role:',
64+
'Refresh routes' => 'Refrescar rutas',
65+
'Refresh routes (and delete unused)' => 'Refrescar rutas (y eliminar sin uso)',
66+
'Registration IP' => 'IP Registrada',
67+
'Repeat password' => 'Repetir contraseña',
68+
'Reset' => 'Reestablecer',
69+
'Role creation' => 'Creación de Rol',
70+
'Roles' => 'Roles',
71+
'Roles and permissions' => 'Roles y permisos',
72+
'Roles and permissions for user:' => 'Roles y permisos para el usuario',
73+
'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.',
74+
'Rule' => 'Regla',
75+
'Save' => 'Guardar',
76+
'Saved' => 'Guardado',
77+
'Search' => 'Buscar',
78+
'Search route' => 'Buscar ruta',
79+
'Settings for permission' => 'Configuración de permiso',
80+
'Show all' => 'Mostrar todos',
81+
'Show only selected' => 'Mostrar solo seleccionados',
82+
'Status' => 'Estatus',
83+
'Superadmin' => 'Super admin',
84+
'Token' => 'Código Token',
85+
'Too many attempts' => 'Demasiados intentos',
86+
'Type' => 'Tipo',
87+
'Updated' => 'Actualizado',
88+
'User' => 'Usuario',
89+
'User agent' => 'Agente de Usuario',
90+
'User creation' => 'Creación de Usuario',
91+
'Users' => 'Usuarios',
92+
'Visit Time' => 'Fecha de visita',
93+
'Visit log' => 'Registro de visita',
94+
'Wrong format. Enter valid IPs separated by comma' => 'Formato incorrecto. Ingrese IPs valida separada por coma',
95+
'Wrong password' => 'Contraseña incorrecta',
96+
'You can not change own permissions' => 'Usted no puede cambiar sus propios permisos',
97+
];

0 commit comments

Comments
 (0)