VirtueMart Forum

VirtueMart 2 + 3 + 4 => Language/Translations => Topic started by: pauleluard on September 05, 2013, 18:40:10 PM

Title: with virtuemart 2.0.22c no more Translation of my Custom Fields
Post by: pauleluard on September 05, 2013, 18:40:10 PM
Joomla 2.5.11
Virtuemart 2.0.22c
Multilanguage site  French + English.

I've just updated virtuemart 2.0.22b to virtuemart 2.0.22c and everything is fine except that my Custom Fields are no more translated. It works fine on the previous version.
And my Language Overrides file is the same and still there  !

Any idea why ?

Title: Re: with virtuemart 2.0.22c no more Translation of my Custom Fields
Post by: muusik on September 07, 2013, 21:23:19 PM
Same here. Killed by the 2.0.22c.  :-\
Title: Re: with virtuemart 2.0.22c no more Translation of my Custom Fields
Post by: muusik on September 09, 2013, 20:19:06 PM
Any idea from anyone??? Pauleluard - did You find a solution?
Title: Re: with virtuemart 2.0.22c no more Translation of my Custom Fields
Post by: pauleluard on September 10, 2013, 11:56:28 AM
No... and I'm amazed that we are the only one facing this.
Everywhere on the site the translation works fine except for the 4 strings that correspond to the card variant of my custom fields.

Custom Field Type:  Cart Variant
Default : PRINT;FRAME;ALUMINIUM;PLEXIGLASS

In my French override language file, I have :
PRINT="Tirage"
FRAME="Cadre Classique"
ALUMINIUM="Châssis Aluminium"
PLEXIGLASS="Finition plexiglass"

In my English override language file, I have :
PRINT="Print"
FRAME="Classic Frame"
ALUMINIUM="Aluminium framework"
PLEXIGLASS="Plexiglass finish"

Now, on the front end only the strings appears in the drop down options.
Again those strings were translate in 2.0.22b but not anymore in 2.0.22c !
Please help?
Title: Re: with virtuemart 2.0.22c no more Translation of my Custom Fields
Post by: lindapowers on September 11, 2013, 07:34:13 AM
Same issue on C but I just installed version D and it solved it.

Regards
Title: Re: with virtuemart 2.0.22c no more Translation of my Custom Fields
Post by: muusik on September 11, 2013, 08:10:40 AM
Nope, D did nothing for me...  :(

How about You, pauleluard?
Title: Re: with virtuemart 2.0.22c no more Translation of my Custom Fields
Post by: pauleluard on September 11, 2013, 13:13:15 PM
The new version D didn't change the problem.
Still no translation of my custom fields.
Title: Re: with virtuemart 2.0.22c no more Translation of my Custom Fields
Post by: Maxim Pishnyak on September 13, 2013, 11:38:54 AM
Are you sure that you did everything like in tutorial
http://docs.virtuemart.net/tutorials/36-multilingual-store/105-using-language-keys-in-form-fields.html
?
Title: Re: with virtuemart 2.0.22c no more Translation of my Custom Fields
Post by: pauleluard on September 13, 2013, 17:46:11 PM
Thanks for your reply.

I supposed I did it correctly because as I wrote before on the 2.0.22b version everything was translate.
Now with 2.0.22c and d, only the custom field's translations are missing.
I'm talking about the Cart Variant Custom field.

See files attached

[attachment cleanup by admin]
Title: Re: with virtuemart 2.0.22c no more Translation of my Custom Fields
Post by: pauleluard on September 17, 2013, 23:53:18 PM
At last, I finally find the solution :
http://www.youtube.com/watch?v=MYf5FXyoa-A 
Title: Re: with virtuemart 2.0.22c no more Translation of my Custom Fields
Post by: Milbo on September 18, 2013, 10:23:19 AM
Hehe,

It is really strange. There is also another post, youre not the only ones. We just changed nothing there. But you gave a good hint, you have the problem only for "cart variant". So I take a look there.
Title: Re: with virtuemart 2.0.22c no more Translation of my Custom Fields
Post by: Milbo on September 18, 2013, 10:39:28 AM
I doubt that it worked before for your combination.

check your customfield model, function getProductCustomsFieldCart
search for

if ($group->field_type == 'V') {

around line 880

replace the line starting with $productCustom->text by

$productCustom->text = JText::_($productCustom->custom_value) . ' ' . $price;
Title: Re: with virtuemart 2.0.22c no more Translation of my Custom Fields
Post by: pauleluard on September 18, 2013, 12:22:14 PM
Yes yes, thanks so much
The problem is solved now  :)

In administrator/components/com_virtuemart/models/customfiels.php
replaced in line 878 :



$productCustom->text = $productCustom->custom_value . ' ' . $price;


by


$productCustom->text = JText::_($productCustom->custom_value) . ' ' . $price;


Regards