Problem with translation in module settings

Hello!
I have some problems with translations of settings in my custom module. I made it few times ago but i can not figured out why it won’t work in one of my module.
It shows allways: “ERROR: Translation for SHOP_MODULE_mycustomfield not found!” for all fields from translation file.

This is my module structure:

This is how i use translations in module_options:
‘SHOP_MODULE_GROUP_mycustomgroupname’ => ‘My custom group name’,
‘SHOP_MODULE_mycustomfield’ => ‘My custom field label’,
'HELP_SHOP_MODULE_mycustomfieldlabel => ‘Help description for field’,

and this is metadata
‘settings’ => array(
array(‘group’ => ‘mycustomgroupname’, ‘name’ => ‘mycustomfield’’, ‘type’ => ‘str’, ‘value’ => ‘’),
)

anybody help what could be wrong?

Reactivate module and clear the temp dir.

i made this bilion times… :frowning:

So can you show your full module_options.php file?

$sLang should be $aLang

2 Likes

hehehe OMG. thanks a lot!

Hello,

How can i translate this:

search for translations in *lang.php files, e.g. MORE here https://github.com/OXID-eSales/oxideshop_ce/blob/master/source/Application/translations/de/lang.php#L320

2 Likes

Flow-Fix - it’s OK. Thank’s. Now i can’t find where translate “undefined”.

application\views\flow\de\cust_lang.php
‘MORE_IN_LANG’ => ‘Mehr’,
application\views\flow\en\cust_lang.php
‘MORE_IN_LANG’ => ‘More’,

Simply put it in your language:

Everything works, thanks’s a lot !