dimsav / laravel-translatable

[Deprecated] A Laravel package for multilingual models
MIT License
1.95k stars 320 forks source link

Any video tutorial? #493

Closed wajid8703 closed 6 years ago

wajid8703 commented 6 years ago

I am facing some issues during work with this package. it would b easy for me if you could send me any video tutorial link for this package?

Thanks

Gummibeer commented 6 years ago

There isn't one - where do you struggle?

wajid8703 commented 6 years ago

@Gummibeer Actually, i am looking for a plugin or package for the solution of dynamic data translation. i am making a website which has two language English and Arabic, i am using only one one input field of english to store data in DB...is there any solution that i save only one language data and translate DB data into arabic by using plugin?.....i shall be very thankful to you if you could help me

Gummibeer commented 6 years ago

Just add the translation trait and config (like described in readme) to your model and save the english and arabic field values as translation. Everything is described in the readme - if you have a specific problem I can help you more.

wajid8703 commented 6 years ago

how it handles the dynamic data translation?...will it create own tables for the Arabic language or it will translate the incoming data into Arabic?

Gummibeer commented 6 years ago

This package needs a second translation table with all translations in it. English & Arabic in your case.

If you want a package that does this in one column take a look into https://github.com/spatie/laravel-translatable - but in both cases you have to provide both values.

If you want automatic translation search for a Google/Bing etc. Translation library.

wajid8703 commented 6 years ago

ok thanks friend for your time and help....it means i have to add data of both languages english and arabic into db and it will be populated according to the selected language.