-
-
Notifications
You must be signed in to change notification settings - Fork 549
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create localization to translate for other languages. #18
Comments
With the release of the laravel 5.4, they changed the default translate for a better one, there is the possibility of upgrading this project to 5.4? |
anyway i am going to upgrade it for sure before i will release 1.0. But thanks @cagartner |
Hello @cagartner finally i have upgraded to laravel 5.4 and done basic translation as well. Take a look at modules/base/User/view/lang/en and modules/base/User/view/lang/hi (Hindi) Thanks |
Hello This is a great project, congratulations! AugustoSL |
@agsotelo thank for your help regarding the translation. I will add more lang soon. |
@indpurvesh But how about applying .po .mo style translation? All we have to do is just import .po file, convert&edit it, then download it. For reference, competitor laravel-aimeos already using i18n translation. |
@darron1217 Thanks i keep that idea in my mind. Once i finished some important features then i will implement this one too thanks again. |
@indpurvesh |
I can help for french translation |
May i know where is the directory file path for translation files? Is it inside each of the separate modules? I only saw en folder |
There is one for Admin Lang folder which is here. Admin Lang: https://github.com/avored/framework/tree/master/resources/lang FrontEnd Theme Lang: https://github.com/avored/laravel-ecommerce/tree/master/themes/avored/default/lang/en |
ok, so any translations should be in those directory that you mentioned. |
In Frontend localization we need a fall back path for en as default. @ghermans has some issue when we create a new theme. |
I would suggest to use the default localization method of Laravel: https://laravel.com/docs/5.3/localization, but particulary I don't like this method.
I prefer the https://github.com/xinax/laravel-gettext method, because the readability of the views is much better.
What you thinks?
This project is awesome and soon I intend to help with PR's.
Cheers.
The text was updated successfully, but these errors were encountered: