Page 1 of 1

Translation of custom fields in Products?

Posted: Wed Sep 10, 2008 6:57 am
by toto
Hi to all, please help. How to translate custom fields - dropdown options with lang=""?

In products module you can add custom fields on page "Field Definitions" and after that i retrive them in my detail template with

Code: Select all

{foreach from=$entry->fields item='onefield'}
{if $onefield->name == 'transport'}
{if $onefield->value ne ''}<li>{$mod->Lang('transport')}{$name}<strong>{$onefield->value}</strong></li>{/if}{/if}{/foreach}
And here everything is good, but if you add custom field "Dropdown" with some parameters - How to translate these Dropdown parameters, and if is set

Code: Select all

 {Products pagelimit="30" lang="ru_RU"}
.  to display these combobox options in russian lang?

Is there a function on language file somthing like

Code: Select all

$lang['sity']['area'] = 'areositie';
for example for dropdown items?

Please help

Re: Translation of custom fields in Products?

Posted: Mon Nov 30, 2009 10:44 am
by cmaunoury
Hey,

did you get any solution on this?
I have installed CompanyDirectory and tweaked it for my use, but I am using MLE and would like to translate my custom fields labels for the admin area and also in order to make the building of templates easier (not having them in my lang.php files, I have to build a template for each language...)

Thanks!

Colin

Re: Translation of custom fields in Products?

Posted: Mon Nov 30, 2009 10:52 am
by Rolf
Hi,

Perhaps is this usefull?
http://calguy1000.com/Blogs/6/60/custom ... lates.html

Grtz. Rolf