Author Topic: BUG: Language not being applied to custom fields  (Read 4664 times)

Jason Farmer

  • Beginner
  • *
  • Posts: 49
BUG: Language not being applied to custom fields
« on: November 02, 2012, 12:43:43 pm »
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.

DevelopmentProduction
VirtueMart  
2.0.12b
1.1.3
Joomla!  
2.5.6
1.5.14
Mysql 
5.5.8
5.0.51
PhP  
5.3.5
5.2.4

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9997
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: BUG: Language not being applied to custom fields
« Reply #1 on: November 02, 2012, 20:28:17 pm »
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?
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Jason Farmer

  • Beginner
  • *
  • Posts: 49
Re: BUG: Language not being applied to custom fields
« Reply #2 on: November 03, 2012, 16:17:43 pm »
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.
DevelopmentProduction
VirtueMart  
2.0.12b
1.1.3
Joomla!  
2.5.6
1.5.14
Mysql 
5.5.8
5.0.51
PhP  
5.3.5
5.2.4

bombayx

  • Beginner
  • *
  • Posts: 17
  • Skype Name: norwaiz
  • VirtueMart Version: 2.6.0
Re: BUG: Language not being applied to custom fields
« Reply #3 on: April 02, 2014, 22:49:19 pm »
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

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9997
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: BUG: Language not being applied to custom fields
« Reply #4 on: April 03, 2014, 16:19:14 pm »
Ehrm, this post is more than a year old and talking about vm2.0.12, and yes that is working since a year.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

bombayx

  • Beginner
  • *
  • Posts: 17
  • Skype Name: norwaiz
  • VirtueMart Version: 2.6.0
Re: BUG: Language not being applied to custom fields
« Reply #5 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.
Joomla 2.5.19
PHP 5.5
multi-language shop

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3548
  • using Matomo instead of Google Analytics
Re: BUG: Language not being applied to custom fields
« Reply #6 on: April 03, 2014, 21:24:43 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

  • Beginner
  • *
  • Posts: 17
  • Skype Name: norwaiz
  • VirtueMart Version: 2.6.0
Re: BUG: Language not being applied to custom fields
« Reply #7 on: April 03, 2014, 22:21:50 pm »
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

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3548
  • using Matomo instead of Google Analytics
Re: BUG: Language not being applied to custom fields
« Reply #8 on: April 03, 2014, 22:27:50 pm »
Your attached jpg consists of a single dot.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

bombayx

  • Beginner
  • *
  • Posts: 17
  • Skype Name: norwaiz
  • VirtueMart Version: 2.6.0
Re: BUG: Language not being applied to custom fields
« Reply #9 on: April 05, 2014, 17:02:45 pm »
I fixed the link.
Joomla 2.5.19
PHP 5.5
multi-language shop

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9997
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: BUG: Language not being applied to custom fields
« Reply #10 on: April 06, 2014, 10:27:34 am »
Just try with the vm2.5.5. Should directly work then.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

bombayx

  • Beginner
  • *
  • Posts: 17
  • Skype Name: norwaiz
  • VirtueMart Version: 2.6.0
Re: BUG: Language not being applied to custom fields
« Reply #11 on: April 06, 2014, 11:03:24 am »
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

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3548
  • using Matomo instead of Google Analytics
Re: BUG: Language not being applied to custom fields
« Reply #12 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!
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

bombayx

  • Beginner
  • *
  • Posts: 17
  • Skype Name: norwaiz
  • VirtueMart Version: 2.6.0
Re: BUG: Language not being applied to custom fields
« Reply #13 on: April 08, 2014, 20:51:12 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

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3548
  • using Matomo instead of Google Analytics
Re: BUG: Language not being applied to custom fields
« Reply #14 on: April 08, 2014, 21:27:29 pm »
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