Translation of custom fields in Products?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
toto
Forum Members
Forum Members
Posts: 29
Joined: Tue Nov 07, 2006 11:38 am

Translation of custom fields in Products?

Post 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
Last edited by toto on Wed Sep 10, 2008 10:03 am, edited 1 time in total.
cmaunoury
Forum Members
Forum Members
Posts: 36
Joined: Sun Jul 19, 2009 9:52 pm

Re: Translation of custom fields in Products?

Post 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
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: Translation of custom fields in Products?

Post by Rolf »

Hi,

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

Grtz. Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Post Reply

Return to “Modules/Add-Ons”