VirtueMart Forum

VirtueMart 2 + 3 + 4 => Language/Translations => Topic started by: patrik60 on July 21, 2012, 09:02:38 AM

Title: Field description in custom fields not translated
Post by: patrik60 on July 21, 2012, 09:02:38 AM
When adding a JText to productdetails/tmpl/default_addtocart.php on line 35 field description will be translated:

<span class="product-field-desc"><?php echo JText::_($field->custom_field_desc?></span>
Title: Re: Field description in custom fields not translated
Post by: rvbgnu on July 24, 2012, 15:57:27 PM
Hi Patbe60,
Do you mean if one uses a language constant (like COM_VIRTUEMART_MY_DESCRIPTION) ?
Title: Re: Field description in custom fields not translated
Post by: patrik60 on July 24, 2012, 17:26:50 PM
Yes
Title: Re: Field description in custom fields not translated
Post by: rvbgnu on July 24, 2012, 18:11:35 PM
Great so, and there may be of few JText missing in the code.
You should post in Development forum, it might be useful for the VM Dev team.

By the way, do you have any idea for the translation of custom fields (Without stock control)? I was struggling with this, you can find some details here:
http://forum.virtuemart.net/index.php?topic=90833.msg351312#msg351312
Title: Re: Field description in custom fields not translated
Post by: patrik60 on July 24, 2012, 18:22:07 PM
No I also don't have any idea. I was hoping you or someone else has a solution. Read also this here:

http://forum.virtuemart.net/index.php?topic=101664.msg350820#msg350820

I have selcted now the custom field type "String" instead of "Cart Variant".
Title: Re: Field description in custom fields not translated
Post by: rvbgnu on July 26, 2012, 19:29:21 PM
Quote from: patbe60 on July 24, 2012, 18:22:07 PM
I have selcted now the custom field type "String" instead of "Cart Variant".
I have to give it a try.

Thanks for the link, I will follow this thread too 8)