Giter Club home page Giter Club logo

laravel-lang's Introduction

Laravel-lang

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


Update 29 March

The project changes its name, but not yet its Composer package's name.
You must choose the number of version of this project in your composer.json.

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 language 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 this three files of the english version with your translate
  • add a pull request with the name of the language

How can I fix a file ?

  • fork this repository
  • update the file
  • add a pull request with the name of the language

The files for Laravel 4 are in laravel4 branch, and for Laravel 5, are in master branch.

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.

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.

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.

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.

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.

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.

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.

Laravel 5.0

  • array for PHP 5.4+
  • validation.filled, with same translation than validation.required
  • reminders file is now languages file

In passwords file #323 :

"sent" => "We have e-mailed your password reset link!"
"reset" => "Your password has been reset!"

laravel-lang's People

Contributors

ammarcodes avatar anhskohbo avatar billmn avatar bo3bdo avatar caouecs avatar chanthoeun avatar chotikarn avatar coldkingdom avatar danielboendergaard avatar davidmb91 avatar djug avatar grrnikos avatar idhamperdameian avatar isa424 avatar kthoth avatar lanort avatar lcdss avatar linusodenring avatar mariuso avatar miguelbgouveia avatar mitjarogl avatar mrakodol avatar overtrue avatar sineld avatar sintemaa avatar stojankukrika avatar takahashiyuya avatar thomasdezeeuw avatar thomeu avatar whsyu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.