Compare commits

...
21 Commits
Author SHA1 Message Date
caouecs 360c9d2cc8 feature: updated todo 2018-07-01 13:12:05 +02:00
caouecs 7a82a9c168 feature: fr - updated 2018-07-01 13:11:21 +02:00
caouecs 4ba7c33472 fix: todo script and unknown files 2018-07-01 13:06:17 +02:00
Fred Delrieu 231e49127a Merge pull request #853 from pawelmysior/add-password-reset-notification-translations
Add English translations for the password reset notification
2018-07-01 12:54:34 +02:00
Fred Delrieu 0dd8c8578c Merge pull request #852 from pawelmysior/check-json-translations-in-todo-script
Check json translations in todo script
2018-07-01 12:54:11 +02:00
Pawel Mysior 68e83749ea Add English translations for the password reset notification 2018-06-30 12:01:42 +02:00
Pawel Mysior 4b5d884d7a Run todo script 2018-06-30 11:57:49 +02:00
Pawel Mysior b4fc8c8afb Add the json translations to the list of checked files 2018-06-30 11:50:49 +02:00
Pawel Mysior 5feca7e215 Split single parameter into directory and language parameters 2018-06-30 11:44:19 +02:00
caouecs e569ff65b0 feature: fr - json 2018-06-30 11:36:46 +02:00
Fred Delrieu 5c65c5d768 Merge pull request #802 from tpraxl/feature/german-json-for-auth
[de] Add german json for standard artisan make:auth
2018-06-30 11:32:45 +02:00
Thomas Praxl 320c62902b Move en.json as requested 2018-06-30 10:55:58 +02:00
Fred Delrieu 96901124c4 Merge pull request #851 from caouecs/analysis-q1OdDw
Apply fixes from StyleCI
2018-06-30 10:38:58 +02:00
Fred Delrieu 97e78f7cac Apply fixes from StyleCI 2018-06-30 08:38:15 +00:00
caouecs 78844a0bad todo list 2018-06-30 10:36:39 +02:00
Fred Delrieu 05b64814ea Merge pull request #850 from pawelmysior/pl-gt-gte-lt-lte
[pl] Add validation for gt, gte, lt and lte
2018-06-30 10:33:30 +02:00
Pawel Mysior 69c424c68f [pl] Add validation for gt, gte, lt and lte 2018-06-29 14:35:28 +02:00
Thomas Praxl 145b58b7ce Move json files to respective language folders
As requested.
2018-06-29 13:53:19 +02:00
Thomas Praxl 03fa2fb90f Order tags alphabetically 2018-06-29 13:51:34 +02:00
Thomas Praxl d394bf5558 Add dummy en.json as requested 2018-06-29 13:39:46 +02:00
Thomas Praxl 4eb0a8cd90 Add german json for standard artisan make:auth
After running `artisan make:auth`, there are still translations missing, because the published blade files use translation keys as strings (`__('E-Mail Address')`).

The required german translations are added with this commit.
2018-03-20 12:18:49 +01:00
7 changed files with 1012 additions and 30 deletions

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@
return [
'2018-01-29' => [
'uz-cyrillic' => 'add new language : Uzbek cyrillic',
'yz-latin' => 'add new language : Uzbek latin',
'yz-latin' => 'add new language : Uzbek latin',
],
'2018-01-23' => [
'lv' => 'fix rename validation file',
+16
View File
@@ -0,0 +1,16 @@
{
"Confirm Password": "Confirm Password",
"E-Mail Address": "E-Mail Address",
"Forgot Your Password?": "Forgot Your Password?",
"If you did not request a password reset, no further action is required.": "If you did not request a password reset, no further action is required.",
"Login": "Login",
"Logout": "Logout",
"Name": "Name",
"Password": "Password",
"Register": "Register",
"Remember Me": "Remember Me",
"Reset Password": "Reset Password",
"Reset Password Notification": "Reset Password Notification",
"Send Password Reset Link": "Send Password Reset Link",
"You are receiving this email because we received a password reset request for your account.": "You are receiving this email because we received a password reset request for your account."
}
+20 -9
View File
@@ -69,7 +69,7 @@ class TodoGenerator
private function load()
{
// Get English version
$english = $this->getTranslations(__DIR__.'/en');
$english = $this->getTranslations(__DIR__, 'en');
$languages = $this->getLanguages();
$this->output = "# Todo list\n\n";
@@ -79,17 +79,26 @@ class TodoGenerator
/**
* Returns array of translations by language.
*
* @param string $language language code
* @param string $directory directory
* @param string $language language code
*
* @return array
*/
private function getTranslations($language)
private function getTranslations($directory, $language)
{
$contentJson = '';
$fileJson = $directory.'/'.$language.'/'.$language.'.json';
if (file_exists($fileJson)) {
$contentJson = json_decode(file_get_contents($fileJson), true);
}
return [
'auth' => include($language.'/auth.php'),
'pagination' => include($language.'/pagination.php'),
'passwords' => include($language.'/passwords.php'),
'validation' => include($language.'/validation.php'),
'json' => $contentJson,
'auth' => include($directory.'/'.$language.'/auth.php'),
'pagination' => include($directory.'/'.$language.'/pagination.php'),
'passwords' => include($directory.'/'.$language.'/passwords.php'),
'validation' => include($directory.'/'.$language.'/validation.php'),
];
}
@@ -122,10 +131,12 @@ class TodoGenerator
// Return diff language by language
foreach ($languages as $language) {
$this->output .= "\n * ".$language.":\n";
$current = $this->getTranslations("{$this->basePath}/{$language}");
$current = $this->getTranslations($this->basePath, $language);
foreach ($default as $key => $values) {
foreach ($values as $key2 => $value2) {
$valuesKeys = array_keys($values);
foreach ($valuesKeys as $key2) {
if (in_array($key2, ['custom', 'attributes'], true)) {
continue;
}
+13
View File
@@ -0,0 +1,13 @@
{
"Confirm Password": "Passwort bestätigen",
"E-Mail Address": "E-Mail Adresse",
"Forgot Your Password?": "Passwort vergessen?",
"Login": "Einloggen",
"Logout": "Ausloggen",
"Name": "Name",
"Password": "Passwort",
"Register": "Registrieren",
"Remember Me": "Angemeldet bleiben",
"Reset Password": "Passwort zurücksetzen",
"Send Password Reset Link": "Link zum Zurücksetzen des Passworts senden"
}
+16
View File
@@ -0,0 +1,16 @@
{
"Confirm Password": "Confirmez le mot de passe",
"E-Mail Address": "Adresse courriel",
"Forgot Your Password?": "Vous avez oublié votre mot de passe ?",
"If you did not request a password reset, no further action is required.": "Si vous n'avez pas demandé de réinitialisation de mot de passe, aucune autre action n'est requise.",
"Login": "Connexion",
"Logout": "Déconnexion",
"Name": "Nom",
"Password": "Mot de passe",
"Register": "S'inscrire",
"Remember Me": "Se souvenir de moi",
"Reset Password": "Réinitialisation du mot de passe",
"Reset Password Notification": "Notification de réinitialisation du mot de passe",
"Send Password Reset Link": "Envoyer le lien de réinitialisation du mot de passe",
"You are receiving this email because we received a password reset request for your account.": "Vous avez reçu ce courriel parce que nous avons reçu une demande de réinitialisation de mot de passe pour votre compte."
}
+16 -16
View File
@@ -42,16 +42,16 @@ return [
'file' => ':attribute musi być plikiem.',
'filled' => 'Pole :attribute jest wymagane.',
'gt' => [
'numeric' => 'The :attribute must be greater than :value.',
'file' => 'The :attribute must be greater than :value kilobytes.',
'string' => 'The :attribute must be greater than :value characters.',
'array' => 'The :attribute must have more than :value items.',
'numeric' => ':attribute musi być większy niż :value.',
'file' => ':attribute musi być większy niż :value kilobajtów.',
'string' => ':attribute musi być dłuższy niż :value znaków.',
'array' => ':attribute musi mieć więcej niż :value elementów.',
],
'gte' => [
'numeric' => 'The :attribute must be greater than or equal :value.',
'file' => 'The :attribute must be greater than or equal :value kilobytes.',
'string' => 'The :attribute must be greater than or equal :value characters.',
'array' => 'The :attribute must have :value items or more.',
'numeric' => ':attribute musi być większy lub równy :value.',
'file' => ':attribute musi być większy lub równy :value kijobajtów.',
'string' => ':attribute musi być dłuższy lub równy :value znaków.',
'array' => ':attribute musi mieć :value lub więcej elementów.',
],
'image' => ':attribute musi być obrazkiem.',
'in' => 'Zaznaczony :attribute jest nieprawidłowy.',
@@ -62,16 +62,16 @@ return [
'ipv6' => ':attribute musi być prawidłowym adresem IPv6.',
'json' => ':attribute musi być poprawnym ciągiem znaków JSON.',
'lt' => [
'numeric' => 'The :attribute must be less than :value.',
'file' => 'The :attribute must be less than :value kilobytes.',
'string' => 'The :attribute must be less than :value characters.',
'array' => 'The :attribute must have less than :value items.',
'numeric' => ':attribute musi być mniejszy niż :value.',
'file' => ':attribute musi być mniejszy niż :value kijobajtów.',
'string' => ':attribute musi być krótszy niż :value znaków.',
'array' => ':attribute musi mieć mniej niż :value elementów.',
],
'lte' => [
'numeric' => 'The :attribute must be less than or equal :value.',
'file' => 'The :attribute must be less than or equal :value kilobytes.',
'string' => 'The :attribute must be less than or equal :value characters.',
'array' => 'The :attribute must not have more than :value items.',
'numeric' => ':attribute musi być mniejszy lub równy :value.',
'file' => ':attribute musi być mniejszy lub równy :value kijobajtów.',
'string' => ':attribute musi być krótszy lub równy :value znaków.',
'array' => ':attribute musi mieć :value lub mniej elementów.',
],
'max' => [
'numeric' => ':attribute nie może być większy niż :max.',
+930 -4
View File
File diff suppressed because it is too large. Load diff