Skip to content

wogelius/Laravel-lang

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel-lang

In this repository, you can find the lang files for the framework PHP, Laravel 4&5.


News of 12 March 2016:

  • 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

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

In the file app/config/app.php, change the value of locale by the short name of your language.


How can I add a language in this project ?

  • fork this repository
  • create a directory with the short name of the language (ex: fr for French) from ISO-639-1 ( see Wikipedia )
  • copy these four files of the English version with your translation
  • run 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

How can I fix a file ?

  • fork this repository
  • update the file
  • run 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

Status of files

  • todo.md

About

List of 52 languages for Laravel4/5

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%