Maybe this helps as well?

http://wiki.oxidforge.org/Features/Extension_metadata_file#Multilanguage_fields

Ray

________________________________________________

Haller-Händlershop - jetzt Passwort anfordern!
         www.haller-stahlwaren.de/shop
________________________________________________

Haller Stahlwaren GmbH
Am Gartennest 1
74544 Michelbach/Bilz
---
Tel.: 0791/47003
Fax : 0791/47005
www.haller-stahlwaren.de
---
Sitz: Schwäbisch Hall
Registergericht: Stuttgart HRB 570131
Geschäftsführer: Hermann Hebsacker, Karin Hebsacker

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

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]>
 [mailto:[email protected]] Im Auftrag von Xavier VILLARD
Gesendet: Mittwoch, 23. Mai 2012 10:34
An: [email protected]<mailto:[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