Many thanks Frank !

Best regards,


Xavier


Hi Xavier,



the languagefiles are called module_options.php and reside in
modulefolder/out/admin/language, e.g.
modules/yourmodule/out/admin/de/module_options.php.



keys have prefixes SHOP_MODULE_GROUP_, SHOP_MODULE_ and HELP_SHOP_MODULE_.



So your file module_options.php could be like



<?php

$sLangName  = "Deutsch";

$aLang = array(

'charset'                                       => 'ISO-8859-15',

'SHOP_MODULE_GROUP_main'                         => 'Paybox Einstellungen',

'SHOP_MODULE_paybox_ctx_mode'                         => 'CTX Mode',

'HELP_SHOP_MODULE_paybox_ctx_mode'                     => 'Stellen Sie hier
den CTX-Mode ein',

);



At least this is what I found out looking at the paypal module.



Regards,

Frank





*Von:* [email protected] [
mailto:[email protected]<[email protected]>]
*Im Auftrag von *Xavier VILLARD
*Gesendet:* Mittwoch, 23. Mai 2012 10:34
*An:* [email protected]
*Betreff:* Re: [oxid-dev-general] new module structure in 4.6 and admin
include files not working?



Hi guys,

I’m currently adapting some modules to be 4.6 compatible.

I made my metadata file which is correct.

For this module I’ve some options I declared as settings in metadata.php as
follows :

'settings'  => array(

array('group' => 'main', 'name' => 'paybox_ctx_mode', 'type' => 'str',
'value' => 'TEST'),

array('group' => 'main', 'name' => 'paybox_module_call_method', 'type' =>
'str',  'value' =>
'curl'),


),

My problem is that I don’t know how to manage translations for these
settings.. In the admin area I get the I get translation error messages for
each setting...

Any clue ?

Regards



-- 
Xavier
_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general

Reply via email to