Compare commits

..
13 Commits
214 changed files with 105 additions and 62 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.
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.
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
Loaded 100 of 214 files, more files were not shown because too many files have changed in this diff. Show more