Compare commits

...
19 Commits
Author SHA1 Message Date
caouecs 21b4df6d02 feature: todo 2016-05-07 08:40:52 +02:00
Fred Delrieu 0d6cdbb6c7 Merge pull request #548 from imami/master
[fa] Complete translations and fix u+200c (half-space) character.
2016-05-07 08:36:44 +02:00
Fred Delrieu d023b6a238 Merge pull request #547 from laracats/master
translation in_array
2016-05-07 08:36:07 +02:00
Ebrahim Imami 38997dfcc1 Translate Some parts that remain untranslated.
Also use u+200c unicode (Also knowne as Half-Space) in previous translations
2016-05-07 06:22:51 +04:30
laracats 25dd0c0656 feature: todo 2016-05-06 13:01:24 +03:00
laracats 7ea7db169c translation in_array 2016-05-06 12:56:12 +03:00
caouecs cb24a96b71 Merge branch 'v3' 2016-04-23 23:35:10 +02:00
Fred Delrieu fdd5fbc7d1 fix: readme and others projects 2016-04-20 20:27:26 +00:00
Frederic Delrieu 35e09f0aea rollback: attributes with uppercase 2016-04-20 18:23:31 +02:00
Fred Delrieu 9d530ce872 Update README.md 2016-04-20 18:23:31 +02:00
Fred Delrieu cb9848442d Update README.md 2016-04-20 18:23:31 +02:00
Fred Delrieu a8763b57bf feature: readme - add list of projects based on this project 2016-04-20 18:23:31 +02:00
ARCANEDEV d04e9d4c6b Updating README and Adding CHANGELOG, CONTRIBUTING & LICENSE files 2016-04-20 18:23:31 +02:00
Fred Delrieu cf830f16ec doc: changelog, contributing, readme 2016-04-20 18:23:31 +02:00
Fred Delrieu 9b8d8ea1ca doc: readme, license, changelog 2016-04-20 18:23:31 +02:00
Fred Delrieu e4f1335170 feature: uppercase on variables, if needed - just for Laravel 5.2 2016-04-20 18:23:31 +02:00
ARCANEDEV 0b57f6b4eb Updating TodoGenerator script 2016-04-20 18:23:31 +02:00
caouecs da46cccb87 feature: #531 new directory for translated files 2016-04-20 18:23:31 +02:00
caouecs 76dec4eff4 feature: #531 composer - new name of project 2016-04-20 18:23:31 +02:00
215 changed files with 114 additions and 77 deletions

No files matched your search

+20
View File
@@ -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
+36
View File
@@ -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
View File
@@ -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.
+26 -60
View File
@@ -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
View File
@@ -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
View File
@@ -141,4 +141,4 @@ class TodoGenerator
}
}
TodoGenerator::make(__DIR__.'/..', ['script'])->save(__DIR__.'/../todo.md');
TodoGenerator::make(__DIR__.'/../src')->save(__DIR__.'/../todo.md');
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+1 -1
View File
@@ -13,7 +13,7 @@ return [
|
*/
'failed' => 'اطلاعات ورود صحیح نمیباشد.',
'failed' => 'اطلاعات ورود صحیح نمی‌باشد.',
'throttle' => 'تعداد دفعات تلاش برای ورود از حد مجاز بیشتر است. لطفا پس از :seconds ثانیه مجددا تلاش فرمایید.',
];
File renamed without changes.
+2 -2
View File
@@ -16,7 +16,7 @@ return [
'password' => 'رمز عبور باید حداقل شش کاراکتر و مطابقت داشته باشد.',
'reset' => 'بازگردانی کلمه عبور انجام شد',
'sent' => 'یاد آور رمز عبور ارسال شد.',
'token' => 'مشخصه ی بازنشاندن رمز عبور اشتباه است.',
'user' => 'کاربری با این ایمیل آدرس یافت نشد.',
'token' => 'مشخصه‌ی بازنشاندن رمز عبور اشتباه است.',
'user' => 'کاربری با این نشانی ایمیل یافت نشد.',
];
+5 -5
View File
@@ -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 اشتباه است.',
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View File
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