Compare commits

...
7 Commits
Author SHA1 Message Date
Fred Delrieu e1714136d4 Merge pull request #374 from blueberry-media/patch-1
added some common attributes to validation.php
2015-06-08 14:59:35 +02:00
BlueBerry 55e8c36cda added some common attributes to validation.php 2015-06-08 13:23:30 +02:00
Fred Delrieu 57bdaeaa6f Update with #364 2015-04-01 21:17:44 +02:00
Fred Delrieu 776cb2e96a (fa) update with #363 2015-04-01 21:16:17 +02:00
caouecs a3d6115daa feature: fr - update validation with #362 2015-03-30 19:56:53 +02:00
caouecs 32c0eca8d9 fix: name of package 2015-03-29 22:53:31 +02:00
caouecs 439ba86dea feature: new readme 2015-03-29 22:38:06 +02:00
5 changed files with 130 additions and 94 deletions

No files matched your search

+86 -80
View File
@@ -1,83 +1,8 @@
Laravel4-lang
Laravel-lang
=============
In this repository, you can find the lang files for the framework PHP, [Laravel 4&5](http://www.laravel.com).
Laravel 5.0
---
The files of languages have been updated for Laravel 5, in `laravel5` branch.
* array for PHP 5.4+
* validation.filled, with same translation than validation.required
* *reminders* file is now *languages* file
In `passwords` file [#323](https://github.com/caouecs/Laravel4-lang/issues/323) :
"sent" => "We have e-mailed your password reset link!"
"reset" => "Your password has been reset!"
Laravel 4.0
---
We need your help to finish to translate `validation.php` file with array elements.
You can follow translations in the issue [#73](https://github.com/caouecs/Laravel4-lang/issues/73).
Laravel 4.1
---
### Password reminder sent
To be ready for the new version of Laravel, we need your help. In `reminders.php` file, a new line has been added :
"sent" => "Password reminder sent!",
You can follow translations in the issue [#137](https://github.com/caouecs/Laravel4-lang/issues/137).
### Required without all
In `validation.php` file, a new line has been added :
"required_without_all" => "The :attribute field is required when none of :values are present."
You can follow translations in the issue [#172](https://github.com/caouecs/Laravel4-lang/issues/172).
### Validation email
In `validation.php` file, the text for email has been updated :
"email" => "The :attribute must be a valid email address."
You can follow translations in the issue [#187](https://github.com/caouecs/Laravel4-lang/issues/187).
### Required with all
In `validation.php` file, a new line has been added :
"required_with_all" => "The :attribute field is required when :values is present."
You can follow translations in the issue [#193](https://github.com/caouecs/Laravel4-lang/issues/193).
Laravel 4.2
---
### Reset in reminders
In `reminders.php` file, a new line has been added :
"reset" => "Password has been reset!"
You can follow translations in the issue [#258](https://github.com/caouecs/Laravel4-lang/issues/258).
### Validation.timezone
In `validation.php` file, a new line has been added :
"timezone" => "The :attribute must be a valid zone."
You can follow translations in the issue [#259](https://github.com/caouecs/Laravel4-lang/issues/259).
---
How add languages in my app ?
@@ -85,19 +10,25 @@ How add languages in my app ?
### Installation by GitHub
* Clone the [GitHub repository](https://github.com/caouecs/Laravel4-lang/) : *git clone https://github.com/caouecs/Laravel4-lang.git*
* Or download the [zip file](https://github.com/caouecs/Laravel4-lang/archive/master.zip)
* Clone the [GitHub repository](https://github.com/caouecs/laravel-lang/) : *git clone https://github.com/caouecs/laravel-lang.git*
* Or download the [zip file](https://github.com/caouecs/laravel-lang/archive/master.zip)
* Choose the branch:
* `laravel4` for Laravel4 project
* `master` for Laravel5 project
* Copy the folders of languages that you want, in *app/lang* folder of your application Laravel
### Installation by Composer
* For Laravel 4 : add *"caouecs/laravel4-lang": "dev-master"* in your `composer.json` in "require" or run *composer require caouecs/laravel4-lang*
* For Laravel 5 : add *"caouecs/laravel4-lang": "dev-laravel5"* in your `composer.json` in "require"
* For Laravel 4 : add `"caouecs/laravel4-lang": "~1.0"` in your `composer.json` in "require" or run *composer require caouecs/laravel4-lang*
* For Laravel 5 : add `"caouecs/laravel4-lang": "~2.0"` in your `composer.json` in "require"
* Do "composer update"
* Files of languages are in "vendor/caouecs/laravel4-lang" directory
* Copy the folders of languages that you want, in *app/lang* folder of your application Laravel
### Installation by Command
If you have a Laravel5 project, you can use `laravel-lang` project of overtrue : *composer require "overtrue/laravel-lang:dev-master"*
### Language by default in your app
@@ -121,3 +52,78 @@ How can I fix a file ?
* fork this repository
* update the file
* add a pull request with the name of the language
Laravel 4.0
---
We need your help to finish to translate `validation.php` file with array elements.
You can follow translations in the issue [#73](https://github.com/caouecs/laravel-lang/issues/73).
Laravel 4.1
---
### Password reminder sent
To be ready for the new version of Laravel, we need your help. In `reminders.php` file, a new line has been added :
"sent" => "Password reminder sent!",
You can follow translations in the issue [#137](https://github.com/caouecs/laravel-lang/issues/137).
### Required without all
In `validation.php` file, a new line has been added :
"required_without_all" => "The :attribute field is required when none of :values are present."
You can follow translations in the issue [#172](https://github.com/caouecs/laravel-lang/issues/172).
### Validation email
In `validation.php` file, the text for email has been updated :
"email" => "The :attribute must be a valid email address."
You can follow translations in the issue [#187](https://github.com/caouecs/laravel-lang/issues/187).
### Required with all
In `validation.php` file, a new line has been added :
"required_with_all" => "The :attribute field is required when :values is present."
You can follow translations in the issue [#193](https://github.com/caouecs/laravel-lang/issues/193).
Laravel 4.2
---
### Reset in reminders
In `reminders.php` file, a new line has been added :
"reset" => "Password has been reset!"
You can follow translations in the issue [#258](https://github.com/caouecs/laravel-lang/issues/258).
### Validation.timezone
In `validation.php` file, a new line has been added :
"timezone" => "The :attribute must be a valid zone."
You can follow translations in the issue [#259](https://github.com/caouecs/laravel-lang/issues/259).
Laravel 5.0
---
The files of languages have been updated for Laravel 5, in `laravel5` branch.
* array for PHP 5.4+
* validation.filled, with same translation than validation.required
* *reminders* file is now *languages* file
In `passwords` file [#323](https://github.com/caouecs/laravel-lang/issues/323) :
"sent" => "We have e-mailed your password reset link!"
"reset" => "Your password has been reset!"
+1 -1
View File
@@ -21,6 +21,6 @@ return array(
"sent" => "یاد آور رمز عبور ارسال شد.",
"reset" => "Password has been reset!",
"reset" => "بازگردانی کلمه عبور انجام شد",
);
+2 -2
View File
@@ -27,7 +27,7 @@ return array(
"string" => ":attribute باید بین :min و :max کاراکتر باشد.",
"array" => ":attribute باید بین :min و :max آیتم باشد.",
),
"boolean" => "The :attribute field must be true or false",
"boolean" => "فیلد :attribute فقط میتواند صحیح و یا غلط باشد",
"confirmed" => ":attribute با تاییدیه مطابقت ندارد.",
"date" => ":attribute یک تاریخ معتبر نیست.",
"date_format" => ":attribute با الگوی :format مطاقبت ندارد.",
@@ -69,7 +69,7 @@ return array(
"string" => ":attribute باید برابر با :size کاراکتر باشد.",
"array" => ":attribute باسد شامل :size آیتم باشد.",
),
"timezone" => "The :attribute must be a valid zone.",
"timezone" => "فیلد :attribute باید یک منطقه صحیح باشد.",
"unique" => ":attribute قبلا انتخاب شده است.",
"url" => "فرمت آدرس :attribute اشتباه است.",
+10 -10
View File
@@ -23,11 +23,11 @@ return array(
"before" => "Le champ :attribute doit être une date antérieure au :date.",
"between" => array(
"numeric" => "La valeur de :attribute doit être comprise entre :min et :max.",
"file" => "Le fichier :attribute doit avoir une taille entre :min et :max kilobytes.",
"file" => "Le fichier :attribute doit avoir une taille entre :min et :max kilo-octets.",
"string" => "Le texte :attribute doit avoir entre :min et :max caractères.",
"array" => "Le champ :attribute doit avoir entre :min et :max éléments."
"array" => "Le tableau :attribute doit avoir entre :min et :max éléments."
),
"boolean" => "Le champ :attribute doit true ou false",
"boolean" => "Le champ :attribute doit être vrai ou faux",
"confirmed" => "Le champ de confirmation :attribute ne correspond pas.",
"date" => "Le champ :attribute n'est pas une date valide.",
"date_format" => "Le champ :attribute ne correspond pas au format :format.",
@@ -42,16 +42,16 @@ return array(
"ip" => "Le champ :attribute doit être une adresse IP valide.",
"max" => array(
"numeric" => "La valeur de :attribute ne peut être supérieure à :max.",
"file" => "Le fichier :attribute ne peut être plus gros que :max kilobytes.",
"file" => "Le fichier :attribute ne peut être plus gros que :max kilo-octets.",
"string" => "Le texte de :attribute ne peut contenir plus de :max caractères.",
"array" => "Le champ :attribute ne peut avoir plus de :max éléments.",
"array" => "Le tableau :attribute ne peut avoir plus de :max éléments.",
),
"mimes" => "Le champ :attribute doit être un fichier de type : :values.",
"min" => array(
"numeric" => "La valeur de :attribute doit être supérieure à :min.",
"file" => "Le fichier :attribute doit être plus gros que :min kilobytes.",
"file" => "Le fichier :attribute doit être plus gros que :min kilo-octets.",
"string" => "Le texte :attribute doit contenir au moins :min caractères.",
"array" => "Le champ :attribute doit avoir au moins :min éléments."
"array" => "Le tableau :attribute doit avoir au moins :min éléments."
),
"not_in" => "Le champ :attribute sélectionné n'est pas valide.",
"numeric" => "Le champ :attribute doit contenir un nombre.",
@@ -65,11 +65,11 @@ return array(
"same" => "Les champs :attribute et :other doivent être identiques.",
"size" => array(
"numeric" => "La valeur de :attribute doit être :size.",
"file" => "La taille du fichier de :attribute doit être de :size kilobytes.",
"file" => "La taille du fichier de :attribute doit être de :size kilo-octets.",
"string" => "Le texte de :attribute doit contenir :size caractères.",
"array" => "Le champ :attribute doit contenir :size éléments."
"array" => "Le tableau :attribute doit contenir :size éléments."
),
"timezone" => "Le champ :attribute doit être une zone valide.",
"timezone" => "Le champ :attribute doit être un fuseau horaire valide.",
"unique" => "La valeur du champ :attribute est déjà utilisée.",
"url" => "Le format de l'URL de :attribute n'est pas valide.",
+31 -1
View File
@@ -101,6 +101,36 @@ return array(
|
*/
'attributes' => array(),
'attributes' => array(
"name" => "Naam",
"username" => "Gebruikersnaam",
"email" => "E-mailadres",
"first_name" => "Voornaam",
"last_name" => "Achternaam",
"password" => "Wachtwoord",
"password_confirmation" => "Wachtwoord bevestiging",
"city" => "Stad",
"country" => "Land",
"address" => "Adres",
"phone" => "Telefoonnummer",
"mobile" => "Mobiel",
"age" => "Leeftijd",
"sex" => "Geslacht",
"gender" => "Geslacht",
"day" => "Dag",
"month" => "Maand",
"year" => "Jaar",
"hour" => "Uur",
"minute" => "Minuut",
"second" => "Seconde",
"title" => "Titel",
"content" => "Content",
"description" => "Omschrijving",
"excerpt" => "Uittreksel",
"date" => "Datum",
"time" => "Tijd",
"available" => "Beschikbaar",
"size" => "Maat"
),
);