News:

Looking for documentation? Take a look on our wiki

Main Menu

BUG: Language not being applied to custom fields

Started by Jason Farmer, November 02, 2012, 12:43:43 PM

Previous topic - Next topic

Jason Farmer

J 2.5.6 vm 2.0.12b

BUG REPORT

I want a field that I will apply to many products and if I need to change it I want to do so via Language Overrides without having to reapply it to many products.This issue will also create problems for anyone running multi language sites.


Create a custom field : Cart Variant with Language Elements


Set up language overrides


Apply to a product

Have a look at how it looks on the site ...

Featured products module


Product Detail

I have already fixed some of these using template overrides .. simply adding JTEXT:: calls around the appropriate fields,  it was worse before - I would demo this on the demo site but there's no access to Language Overrides there. However some of the html is still being created in core files. Notably administrator/components/com_virtuemart/models/customfields.php.

Please fix.


[tr][td][/td][td]
Development[/td][td]Production[/td][/tr]
[tr][td]VirtueMart   [/td][td]
2.0.12b
[/td][td]
1.1.3
[/td][/tr]
[tr][td]Joomla!   [/td][td]
2.5.6
[/td][td]
1.5.14
[/td][/tr]
[tr][td]Mysql  [/td][td]
5.5.8
[/td][td]
5.0.51
[/td][/tr]
[tr][td]PhP   [/td][td]
5.3.5
[/td][td]
5.2.4
[/td][/tr]
[/table]

Milbo

Thanks for the good report.

the whole area is completly redesigned, but you are right. It would be nice to be able to use JText there. So you used it for the title and description?
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Jason Farmer

Good to hear, I'll upgrade to the latest version.

Title & Description, Yes, I thought that it would be important to have these covered by language overrides for a multilingual shop.

[tr][td][/td][td]
Development[/td][td]Production[/td][/tr]
[tr][td]VirtueMart   [/td][td]
2.0.12b
[/td][td]
1.1.3
[/td][/tr]
[tr][td]Joomla!   [/td][td]
2.5.6
[/td][td]
1.5.14
[/td][/tr]
[tr][td]Mysql  [/td][td]
5.5.8
[/td][td]
5.0.51
[/td][/tr]
[tr][td]PhP   [/td][td]
5.3.5
[/td][td]
5.2.4
[/td][/tr]
[/table]

bombayx

It seems this is not solved, you mentioned you'll update it but nothing happened yet. Will you do so? Thanks.
Joomla 2.5.19
PHP 5.5
multi-language shop

Milbo

Ehrm, this post is more than a year old and talking about vm2.0.12, and yes that is working since a year.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

bombayx

Could you please bring some details how to use more translations of the Custom field - Cart Variant? How to translate fields like "Title"? Many thanks.
Joomla 2.5.19
PHP 5.5
multi-language shop

jjk

Quote from: bombayx on April 03, 2014, 19:41:58 PM
Could you please bring some details how to use more translations of the Custom field - Cart Variant? How to translate fields like "Title"? Many thanks.
The title translation was made much easier in VM 2.5.4.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

bombayx

#7
But that version is not officially available and I need to work with VM2 version.

Please tell me how to proceed. Please see enclosed screenshot below. Thanks.

http://share.pho.to/5Azpc/cg/original
Joomla 2.5.19
PHP 5.5
multi-language shop

jjk

Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

bombayx

Joomla 2.5.19
PHP 5.5
multi-language shop

Milbo

Just try with the vm2.5.5. Should directly work then.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

bombayx

Any documentation for VM 2.5.5? What about compatibility with the modules and template?  Update procedure is the same as for VM 2.0.26d? Thanks.
Joomla 2.5.19
PHP 5.5
multi-language shop

jjk

http://forum.virtuemart.net/index.php?topic=96758.msg318220#msg318220
If you didn't hack the code, the update from 2.0.26d to the just released 2.6.0 should work without problems. But do test test this on a backup copy of your life site first!
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

bombayx

Quote from: jjk on April 07, 2014, 14:53:39 PM
http://forum.virtuemart.net/index.php?topic=96758.msg318220#msg318220
If you didn't hack the code, the update from 2.0.26d to the just released 2.6.0 should work without problems. But do test test this on a backup copy of your life site first!

Doesn't work because there is no option to define strings like "Title" in more languages!?
Joomla 2.5.19
PHP 5.5
multi-language shop

jjk

The english language keys/strings for Mr. and Mrs. are in the file your-root-folder\components\com_virtuemart\language\en-GB\en-GB.com_virtuemart_shoppers.ini
Search for:
COM_VIRTUEMART_SHOPPER_TITLE_MISS="Miss"
COM_VIRTUEMART_SHOPPER_TITLE_MR="Mr"
COM_VIRTUEMART_SHOPPER_TITLE_MRS="Mrs"

If those are not yet in your (slovak?) xx-XX.com_virtuemart_shoppers.ini, just copy the above keys/strings into it and replace the strings (for example "Miss") with the salutations in your language.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations