Admin translations from version 4.6.0

Hi,

I’ve created a module in version 4.8.4 and it works as expected. The module introduces some settings in the backend.

After checking the compatibility of that module for all versions >= 4.6.0. it appeared that translations for admin settings aren’t found from 4.6 to 4.7, in versions >= 4.7.0 they can be found, but only after the module has been activated. From 4.8.0 all is working fine.

I couldn’t find anything in the documentation that says there has been something changed on this between 4.6 and 4.8.

Has anybody experienced the same and can help me?

Greets
Thorsten

Hey Thorsten,

think here is what you were looking for:

[quote]The translation files for the admin panel will be moved from modules/modulepath/out/admin/ to modules/modulepath/views/admin/.[/quotes]

Don’t know something about changes in 4.8 at this place either.

Regards

Hallo Marco,

danke für deine Hilfe! :slight_smile: Ja, Versionen unter 4.6 erwarten die Translations unter

MODULE_FOLDER/out/admin/de/module_lang.php
MODULE_FOLDER/out/admin/en/module_lang.php

Leider sieht man die Übersetzungen erst nach Aktivierung des Moduls.

Ab 4.7.0 liegen sie dann unter

MODULE_FOLDER/views/admin/de/module_lang.php
MODULE_FOLDER/views/admin/en/module_lang.php

Leider funktioniert die Anzeige ohne Aktivierung des Moduls erst ab 4.8.0.

Thorsten

Hi Marco,

I could find out that versions below 4.7.0 need the admin translations located at:

MODULE_FOLDER/out/admin/de/module_lang.php
MODULE_FOLDER/out/admin/en/module_lang.php

From version 4.7.0 they need to be located at:

MODULE_FOLDER/views/admin/de/module_lang.php
MODULE_FOLDER/views/admin/en/module_lang.php

Unfortunately, versions below 4.8.0 will not display the translations unless the module has been activated in the backend.

Thanks for your help! :slight_smile:

Thorsten