See the documentation for detailed installation.
We also have official chats in Telegram.
Please see CONTRIBUTING for details.
❤️ Laravel Lang? Please consider supporting our collective on Boosty.
This package is licensed under the MIT License.
List of 126 languages for Laravel Framework, Laravel Jetstream, Laravel Fortify, Laravel Breeze, Laravel Cashier, Laravel Nova, Laravel Spark and Laravel UI.
Home Page: https://laravel-lang.com
License: MIT License
See the documentation for detailed installation.
We also have official chats in Telegram.
Please see CONTRIBUTING for details.
❤️ Laravel Lang? Please consider supporting our collective on Boosty.
This package is licensed under the MIT License.
The aim of the version 1.1.1 is to have files with new line.
New line :
"required_without_all" => "The :attribute field is required when none of :values are present."
Status :
The Finnish translations are obiously generated computationally, and they are horrible. Not usable at all.
Unfortunately I don't have time to provide better translations at the moment.
1- make a new branch for the json file type.
2- include a script to convert the php
to json
for easier maintenance.
3- make the new json branch available to composer so user only install what he needs php or json
https://laravel.com/docs/5.4/localization#using-translation-strings-as-keys, it seems its more of accustomed to each user preference rather than specific like the current php version, so really no need to bother.
I see in the README that this package is installed for Laravel 5 as:
composer require caouecs/laravel4-lang ~2.0
Probably for Laravel 5, it would be less confusing if you create or transition the package to laravel-lang without the "4" marking the version. That is:
composer require caouecs/laravel-lang ~2.0
Since you can use milestones or tags supporting the 5.x or 6.x in future if available and it doesn't make sense keep the 4 in 5 versions or future versions. And actually you are using Laravel-lang currently as this repo name (probably it should be also laravel-lang without the capital uppercase letter).
Also this should be updated in packagist
I know that it is probably a tedious change and probably it is not neccessary, but it is important for keep the things cleaned in future versions too.
Hey there,
What about languages and countries translations?
The aim of the version 1.1 is to have files ready for Laravel 4.1.
New line :
Status :
A new line in validation.php
"required_with_all" => "The :attribute field is required when :values is present.",
Status :
"timezone" => "The :attribute must be a valid zone."
Status :
Hello,
can you check if files are ok with the new value for validation.filled ?
'filled' => 'The :attribute field must have a value.',
I think you need to update it again, please look at original source here
https://github.com/caouecs/Laravel-lang/blob/827aa1240855862582573495aa67b50835792bc5/script/en/validation.php#L44
Since Laravel 5.2, we can define letters capitalized. A new branch has been created to add this feature : capital_letters
.
Hi Caouecs,
I have a doubt. Is it needed to copy the langs from /vendor/caouecs/laravel4-lang to /resources/lang in order to make them working? If so, how can I can update langs from my laravel 5.1 project when your ones get changed in vendor?
Thanks for your attention.
When I run php script/todo.php
receives a message:
Warning: include(...\src/lv/validation.php): failed to open stream: No such file or directory in Laravel-lang-master\script\todo.php on line 82
Problem in incorrect format file src/lv/validation
. Must be src/lv/validation.php
In line 73 "String" the translation is in english. =>The :attribute must be a string
"boolean" => "The :attribute field must be true or false"
Status :
Hi!
I made a small package to install language files from an artisan command on any Laravel project and it uses as source your repository :)
https://github.com/ablunier/laravel-lang-installer
Just wanted to inform about it, cheers!
Sometimes i just need only Mongolian [mn] for my app. And no need of multi lang package in the composer. In this case laravel-lang cli tool would be very useful to me. See the scenerio below:
cd ~/projects/some-laravel-project
laravel-lang add mn
After this command [mn] lang files gonna copied to resources directory and app.locale config changed to mn.
laravel-lang should be installed globally. Then use it like the laravel-installer.
Hi, @caouecs , I am working on my package overtrue/laravel-lang
, I want to make it lumen support.
So, do you think is that alright?
People, before everything, thanks a lot for your project, you helped me very much. :D
But the problem that I noticed is that in the line 75 in pt-BR/validation.php file should be like this:
"string" => "O campo :attribute deve ser um texto.",
instead of that:
"string" => "The :attribute must be a string.",
:)
i have four textboxes (textbox_1, textbox_2, textbox_3, textbox_4).
if textbox_4 is empty i need to check if textbox_2 and textbox_3 are not empty , then i need to require textbox_1 to not empty.
please help me do this inside the App\Http\Request\MyFormRequests.php
Rights to the files do not allow them to read laravel.
With few changes to ".php_cs" rules we can increase files readability like this:
This can also be automatically fixed using StyleCI (https://styleci.io/).
Thoughts?
I would greatly appreciate it if anyone could share Latvian translations for Laravel 4.
Thanks in advance.
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing caouecs/laravel4-lang (dev-master 8cd5048)
Downloading: Connecting... Failed to download caouecs/laravel4-lang from dist: The "https://api.github.com/repos/caouecs/Laravel4-lang/zipball/8cd50480137307b620d574804289f800e6b50246" file could not be downloaded (HTTP/1.1 404 Not Found)
Now trying to download from source
maybe you have to change the canonical setting on packagist?
There is something changed with 'email' rule for english translation. You can check at this link laravel/laravel#2655.
I think this changes affect to all translation.
As Laravel 5 is now official and stable, it's probably the perfect time to make these tiny but important updates. Imho, a slightly different but simpler name such as "laralang", "laralangs" or "laravel-lang" would be even better. What's your thought?
hi
i translate this to persian (farsi) but i can't sent for you,
The aim of the version 1 is to propose the same number of languages than Laravel 3, with new files translated.
Status :
Translation:
/*
|--------------------------------------------------------------------------
| Языковые ресурсы аутентификации
|--------------------------------------------------------------------------
|
| Следующие языковые ресурсы используются вовремя аутентификации для
| различных сообщений которые мы должны вывести пользователю на экран.
| Вы можете свободно изменять эти языковые ресурсы в соответствии
| с требованиями вашего приложения.
|
*/
It's useful to create a CONTRIBUTING.md and cleaning up the README.md :
Check this CONTRIBUTING.md and/or this CONTRIBUTING.md for inspiration.
I'm facing an issue with Danish validation file and I'm getting this exception for the email rule for example.
Malformed UTF-8 characters, possibly incorrectly encoded
What should be the proper fix for this kind of issue?
Thanks.
What about adding the en language folder as well?
It looks like there are some custom validation attributes translations on other languages but not in english...
'attributes' => [
"name" => "الاسم",
"username" => "اسم المُستخدم",
"email" => "البريد الالكتروني",
"first_name" => "الاسم",
I'd appreciate it if you've plan for it.
Hello,
I propose to do a command for Artisan for :
with a cache system for versions
"sent" => "We have e-mailed your password reset link!",
"reset" => "Your password has been reset!"
Just in laravel5
branch.
Status :
Salut Fred 👍,
I've recently created a package ARCANEDEV/LaravelLang based on your package translations.
This package offer more functionalities than overtrue/laravel-lang
.
The main features are :
I want you and other artisans to try it and having some feedbacks.
Best regards
When installing via composer, all lang folders should be automatically copied to app/lang so updates of the repo via composer also reflect any changes.
I can help you make your package able to publish all the translation files when executing the php artisan vendor:publish
command.
I think this is much better translation
'attributes' => [
...
'first_name' => 'الاسم الأول',
.
.
'address' => 'عنوان السكن',
.
.
'title' => 'العنوان',
....
],
Best regards M. Saud 🤠
I can fix those.
"reset" => "Password has been reset!"
Status :
Hello :-)
I started a Laravel template to start my fresh projects: https://github.com/kneipp/brazilian-laravel-template/ and would be nice if can link /lang/pt-BR to Laravel-lang submodule.
Can be nice for someone else.
Le champ email est obligatoire (payer ses impôts aussi)
Le champ email est requis.
Vote, PR...
Hello,
the aim of this project is the translation of Laravel files, all Laravel versions, and just translations.
For the version 3 :
The text of validation.email has been updated ( see #185 ) :
"email" => "The :attribute must be a valid email address."
Status :
😄
From : "sent" => "Password reminder sent!"
To : "sent" => "Password reset link sent!"
Just in laravel5
branch.
Status :
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.