Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
360c9d2cc8 | ||
|
|
7a82a9c168 | ||
|
|
4ba7c33472 | ||
|
|
231e49127a | ||
|
|
0dd8c8578c | ||
|
|
68e83749ea | ||
|
|
4b5d884d7a | ||
|
|
b4fc8c8afb | ||
|
|
5feca7e215 | ||
|
|
e569ff65b0 | ||
|
|
5c65c5d768 | ||
|
|
320c62902b | ||
|
|
96901124c4 | ||
|
|
97e78f7cac | ||
|
|
78844a0bad | ||
|
|
05b64814ea | ||
|
|
69c424c68f | ||
|
|
145b58b7ce | ||
|
|
03fa2fb90f | ||
|
|
d394bf5558 | ||
|
|
4eb0a8cd90 |
No files matched your search
+1
-1
@@ -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',
|
||||
|
||||
@@ -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
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
@@ -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
@@ -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.',
|
||||
|
||||
Reference in new issue
Block a user