News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

with virtuemart 2.0.22c no more Translation of my Custom Fields

Started by pauleluard, September 05, 2013, 18:40:10 PM

Previous topic - Next topic

pauleluard

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 ?



muusik

Any idea from anyone??? Pauleluard - did You find a solution?

pauleluard

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?

lindapowers

Same issue on C but I just installed version D and it solved it.

Regards

muusik


pauleluard

The new version D didn't change the problem.
Still no translation of my custom fields.


pauleluard

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]


Milbo

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.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Milbo

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;
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

pauleluard

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