Hi
Translating of some core files do not work:
// Foundation
php artisan translate --module=corals-foundation --namespace=Foundation --from=en --to=de// Elfinder
----- TRANSLATING Corals/core/Foundation/resources/lang -----
----- TRANSLATING labels ----- In TranslateLocalisation.php line 135:
Invalid argument supplied for foreach()
php artisan translate --module=corals-elfinder --namespace=Elfinder --from=en --to=de In TranslateLocalisation.php line 87:Is there a reason for that? Regards. Martin
Trying to get property 'type' of non-object
1 Answers
Hello Martin,
the provided namespace is not correct, for Foundation Service provider its: Corals
for file manager namespace it's: elfinder
We just added an example on our documentation on how to grab the namespaces
https://www.laraship.com/docs/laraship/laraship-configuration/localization/
Hi
Thank you for your reply.
The translation for Foundation worked now.
Still, Elfinder, does not (even though there is not a lot to translate 🙂
php artisan translate –module=corals-elfinder –namespace=elfinder –from=en –to=de
In TranslateLocalisation.php line 87:
Trying to get property ‘type’ of non-object
Regards.
Martin
Hello,
The module name is corals-file-manager and corals-elfinder, you can find that inside module.json
Hi
Ok.
Now it works.
Thanks.
Martin
Please login or Register to submit your answer