avored / laravel-ecommerce

AvoRed an Open Source Laravel Shopping Cart
https://avored.com
1.52k stars 549 forks source link

Create localization to translate for other languages. #18

Open cagartner opened 7 years ago

cagartner commented 7 years ago

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.

cagartner commented 7 years ago

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?

https://laravel-news.com/json-based-translations

indpurvesh commented 7 years ago

anyway i am going to upgrade it for sure before i will release 1.0. But thanks @cagartner

indpurvesh commented 7 years ago

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

agsotelo commented 7 years ago

Hello @indpurvesh I'm interested in helping with Spanish translation.

This is a great project, congratulations!

AugustoSL

indpurvesh commented 7 years ago

@agsotelo thank for your help regarding the translation. I will add more lang soon.

darron1217 commented 7 years ago

@indpurvesh I can help with Korean translation.

But how about applying .po .mo style translation? If then, we can utilize google translation. Which makes translation super-easy :) https://translate.google.com/toolkit

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.

indpurvesh commented 7 years ago

@darron1217 Thanks i keep that idea in my mind. Once i finished some important features then i will implement this one too thanks again.

mahdi7abash commented 6 years ago

@indpurvesh I can help you with arabic translation

nbrabant commented 6 years ago

I can help for french translation

Hungez commented 6 years ago

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

indpurvesh commented 6 years ago

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

Hungez commented 6 years ago

ok, so any translations should be in those directory that you mentioned.

indpurvesh commented 5 years ago

In Frontend localization we need a fall back path for en as default. @ghermans has some issue when we create a new theme.