Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
21b4df6d02 | ||
|
|
0d6cdbb6c7 | ||
|
|
d023b6a238 | ||
|
|
38997dfcc1 | ||
|
|
25dd0c0656 | ||
|
|
7ea7db169c | ||
|
|
cb24a96b71 | ||
|
|
fdd5fbc7d1 | ||
|
|
35e09f0aea | ||
|
|
9d530ce872 | ||
|
|
cb9848442d | ||
|
|
a8763b57bf | ||
|
|
d04e9d4c6b | ||
|
|
cf830f16ec | ||
|
|
9b8d8ea1ca | ||
|
|
e4f1335170 | ||
|
|
0b57f6b4eb | ||
|
|
da46cccb87 | ||
|
|
76dec4eff4 |
No files matched your search
@@ -0,0 +1,20 @@
|
||||
# Changelog
|
||||
|
||||
## [2.0.40] 2016-03-12
|
||||
### Added
|
||||
|
||||
* todo list: in todo.md
|
||||
|
||||
## [2.0.36] 2016-03-07
|
||||
### Added
|
||||
|
||||
* *in_array* in validation
|
||||
|
||||
## [2.0.35] 2016-03-01
|
||||
### Added
|
||||
* *distinct* in validation
|
||||
|
||||
## [2.0.34] 2016-02-27
|
||||
### Added
|
||||
|
||||
* *present* in validation
|
||||
@@ -0,0 +1,36 @@
|
||||
# Contributing
|
||||
|
||||
Contributions are **welcome** and will be fully **credited**.
|
||||
|
||||
We accept contributions via Pull Requests on [Github](https://github.com/caouecs/Laravel-lang).
|
||||
|
||||
## How can I add a language in this project ?
|
||||
|
||||
* fork this repository
|
||||
* create a directory in *src* with the short name of the language (ex: fr for French) from ISO-639-1 ( see [Wikipedia](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) )
|
||||
* copy these four files of the English version with your translation : from *script/en* directory
|
||||
* run [PHP-cs-fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer)
|
||||
* if installed to global, run `php-cs-fixer fix`.
|
||||
* if installed to project local, run `vendor/bin/php-cs-fixer fix`.
|
||||
* add a pull request with the name of the language
|
||||
* ex: [fr] New language
|
||||
|
||||
## How can I fix a file ?
|
||||
|
||||
* fork this repository
|
||||
* update the file
|
||||
* run [PHP-cs-fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer)
|
||||
* if installed to global, run `php-cs-fixer fix`.
|
||||
* if installed to project local, run `vendor/bin/php-cs-fixer fix`.
|
||||
* add a pull request with the name of the language
|
||||
* ex: [fr] Update validation for number in validation
|
||||
|
||||
## Status of files
|
||||
|
||||
* todo.md
|
||||
|
||||
### Update todo file
|
||||
|
||||
```php
|
||||
php script/todo.php
|
||||
```
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
# The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2016 caouecs <caouecs@caouecs.net>
|
||||
|
||||
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
> of this software and associated documentation files (the "Software"), to deal
|
||||
> in the Software without restriction, including without limitation the rights
|
||||
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
> copies of the Software, and to permit persons to whom the Software is
|
||||
> furnished to do so, subject to the following conditions:
|
||||
>
|
||||
> The above copyright notice and this permission notice shall be included in
|
||||
> all copies or substantial portions of the Software.
|
||||
>
|
||||
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
> THE SOFTWARE.
|
||||
@@ -1,32 +1,18 @@
|
||||
Laravel-lang
|
||||
=============
|
||||
# Laravel-lang
|
||||
|
||||
In this repository, you can find the lang files for the framework PHP, [Laravel 4&5](http://www.laravel.com).
|
||||
|
||||
---
|
||||
## Install
|
||||
|
||||
News of 12 March 2016:
|
||||
#### Via Composer
|
||||
* For Laravel 5.* : add `"caouecs/laravel-lang": "~3.0"` in your `composer.json` in "require"
|
||||
* For Laravel 5 : add `"caouecs/laravel4-lang": "~2.0"` in your `composer.json` in "require"
|
||||
* For Laravel 4 : add `"caouecs/laravel4-lang": "~1.0"` in your `composer.json` in "require"
|
||||
* Do "composer update"
|
||||
* Files of languages are in "vendor/caouecs/laravel-lang" directory
|
||||
* Copy the folders of languages that you want, in *app/lang* (*resources/lang* in laravel 5) folder of your application Laravel
|
||||
|
||||
* todo list: in todo.md
|
||||
|
||||
News of 7 March 2016:
|
||||
|
||||
* validation: add *in_array*
|
||||
|
||||
News of 2 March 2016:
|
||||
|
||||
* validation: add *distinct*
|
||||
|
||||
News of 27 February 2016:
|
||||
|
||||
* validation: add *present*
|
||||
|
||||
---
|
||||
|
||||
How add languages in my app ?
|
||||
---
|
||||
|
||||
### Installation by GitHub
|
||||
#### Via GitHub
|
||||
|
||||
* 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)
|
||||
@@ -35,49 +21,29 @@ How add languages in my app ?
|
||||
* `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": "~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* (*resources/lang* in laravel 5) 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
|
||||
## Usage [Laravel only]
|
||||
|
||||
In the file *app/config/app.php*, change the value of *locale* by the short name of your language.
|
||||
|
||||
---
|
||||
## Change log
|
||||
|
||||
How can I add a language in this project ?
|
||||
---
|
||||
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.
|
||||
|
||||
* fork this repository
|
||||
* create a directory with the short name of the language (ex: fr for French) from ISO-639-1 ( see [Wikipedia](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) )
|
||||
* copy these four files of the English version with your translation
|
||||
* for [Laravel](https://github.com/laravel/laravel/tree/master/resources/lang/en)
|
||||
* run [PHP-cs-fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer)
|
||||
* if installed to global, run `php-cs-fixer fix`.
|
||||
* if installed to project local, run `vendor/bin/php-cs-fixer fix`.
|
||||
* add a pull request with the name of the language
|
||||
## Contributing
|
||||
|
||||
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
|
||||
|
||||
How can I fix a file ?
|
||||
---
|
||||
## Status of files
|
||||
|
||||
* fork this repository
|
||||
* update the file
|
||||
* run [PHP-cs-fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer)
|
||||
* if installed to global, run `php-cs-fixer fix`.
|
||||
* if installed to project local, run `vendor/bin/php-cs-fixer fix`.
|
||||
* add a pull request with the name of the language
|
||||
* Check the [todo.md](todo.md) file to see the missing translations.
|
||||
|
||||
Status of files
|
||||
---
|
||||
## Projects based on this package
|
||||
|
||||
* todo.md
|
||||
* [LaravelLang by ARCANEDEV](https://github.com/ARCANEDEV/LaravelLang)
|
||||
* [Laravel-lang by overtrue](https://github.com/overtrue/laravel-lang)
|
||||
* [laravel-lang-installer by ablunier](https://github.com/ablunier/laravel-lang-installer)
|
||||
|
||||
## Credits
|
||||
|
||||
- [caouecs](https://github.com/caouecs)
|
||||
- [All Contributors](https://github.com/caouecs/Laravel-lang/graphs/contributors)
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "caouecs/laravel4-lang",
|
||||
"name": "caouecs/laravel-lang",
|
||||
"description": "Languages for Laravel",
|
||||
"keywords": ["laravel", "languages", "lpm", "lang"],
|
||||
"license": "MIT",
|
||||
|
||||
+1
-1
@@ -141,4 +141,4 @@ class TodoGenerator
|
||||
}
|
||||
}
|
||||
|
||||
TodoGenerator::make(__DIR__.'/..', ['script'])->save(__DIR__.'/../todo.md');
|
||||
TodoGenerator::make(__DIR__.'/../src')->save(__DIR__.'/../todo.md');
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -13,7 +13,7 @@ return [
|
||||
|
|
||||
*/
|
||||
|
||||
'failed' => 'اطلاعات ورود صحیح نمیباشد.',
|
||||
'failed' => 'اطلاعات ورود صحیح نمیباشد.',
|
||||
'throttle' => 'تعداد دفعات تلاش برای ورود از حد مجاز بیشتر است. لطفا پس از :seconds ثانیه مجددا تلاش فرمایید.',
|
||||
|
||||
];
|
||||
File renamed without changes.
@@ -16,7 +16,7 @@ return [
|
||||
'password' => 'رمز عبور باید حداقل شش کاراکتر و مطابقت داشته باشد.',
|
||||
'reset' => 'بازگردانی کلمه عبور انجام شد',
|
||||
'sent' => 'یاد آور رمز عبور ارسال شد.',
|
||||
'token' => 'مشخصه ی بازنشاندن رمز عبور اشتباه است.',
|
||||
'user' => 'کاربری با این ایمیل آدرس یافت نشد.',
|
||||
'token' => 'مشخصهی بازنشاندن رمز عبور اشتباه است.',
|
||||
'user' => 'کاربری با این نشانی ایمیل یافت نشد.',
|
||||
|
||||
];
|
||||
@@ -34,16 +34,16 @@ return [
|
||||
'different' => ':attribute و :other باید متفاوت باشند.',
|
||||
'digits' => ':attribute باید :digits رقم باشد.',
|
||||
'digits_between' => ':attribute باید بین :min و :max رقم باشد.',
|
||||
'distinct' => 'The :attribute field has a duplicate value.',
|
||||
'distinct' => 'فیلد :attribute دارای یک مقدار تکراری میباشد.',
|
||||
'email' => 'فرمت :attribute معتبر نیست.',
|
||||
'exists' => ':attribute انتخاب شده، معتبر نیست.',
|
||||
'filled' => 'فیلد :attribute الزامی است',
|
||||
'image' => ':attribute باید تصویر باشد.',
|
||||
'in' => ':attribute انتخاب شده، معتبر نیست.',
|
||||
'in_array' => 'The :attribute field does not exist in :other.',
|
||||
'in_array' => 'فیلد :attribute در :other وجود ندارد.',
|
||||
'integer' => ':attribute باید نوع داده ای عددی (integer) باشد.',
|
||||
'ip' => ':attribute باید IP آدرس معتبر باشد.',
|
||||
'json' => 'The :attribute must be a valid JSON string.',
|
||||
'json' => 'فیلد :attribute باید یک رشته از نوع JSON باشد.',
|
||||
'max' => [
|
||||
'numeric' => ':attribute نباید بزرگتر از :max باشد.',
|
||||
'file' => ':attribute نباید بزرگتر از :max کیلوبایت باشد.',
|
||||
@@ -63,7 +63,7 @@ return [
|
||||
'regex' => ':attribute یک فرمت معتبر نیست',
|
||||
'required' => 'فیلد :attribute الزامی است',
|
||||
'required_if' => 'فیلد :attribute هنگامی که :other برابر با :value است، الزامیست.',
|
||||
'required_unless' => 'The :attribute field is required unless :other is in :values.',
|
||||
'required_unless' => 'فیلد :attribute ضروری است، مگر آنکه :other در :values وجود داشته باشد.',
|
||||
'required_with' => ':attribute الزامی است زمانی که :values موجود است.',
|
||||
'required_with_all' => ':attribute الزامی است زمانی که :values موجود است.',
|
||||
'required_without' => ':attribute الزامی است زمانی که :values موجود نیست.',
|
||||
@@ -75,7 +75,7 @@ return [
|
||||
'string' => ':attribute باید برابر با :size کاراکتر باشد.',
|
||||
'array' => ':attribute باسد شامل :size آیتم باشد.',
|
||||
],
|
||||
'string' => 'The :attribute must be a string.',
|
||||
'string' => 'فیلد :attribute باید یک String باشد.',
|
||||
'timezone' => 'فیلد :attribute باید یک منطقه صحیح باشد.',
|
||||
'unique' => ':attribute قبلا انتخاب شده است.',
|
||||
'url' => 'فرمت آدرس :attribute اشتباه است.',
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loaded 100 of 215 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user