hpolthof / laravel-translations-db

Laravel Translations from Database
https://packagist.org/packages/hpolthof/laravel-translations-db
GNU General Public License v2.0
52 stars 37 forks source link

Translation Manager not showing any data #1

Closed kay899 closed 8 years ago

kay899 commented 9 years ago

I installed the translation manager packages as described. But when I go to .../_translations the DropDowns are empty. Even when I do "php artisan translation:fetch" it still stays empty. My standard locale is "de" and my fallback_locale is "en".

Any idea what is going wrong? Thanks kay899

hpolthof commented 8 years ago

Are there any translations in your database yet?

kay899 commented 8 years ago

No, database is totally empty

hpolthof commented 8 years ago

That might be the problem. You should first run the migration. After running the migration the database will fill itself with all locales you've already in your project. Every time Lang::get or trans() is called the value will be added.

Does this help you?

kay899 commented 8 years ago

Hi, yes this helped. I now have understood how this is working. One other question: the import of keys via shell is now working at all with "php artisan translation:fetch" My default language is "de", could that cause any problems with that?

hpolthof commented 8 years ago

Your default language is not of any influence. By default the fetch function will just traverse through all language files of all locales and index them based on the language directory their in.