Author Topic: Multilanguage site and Custom Fields translation  (Read 5609 times)

itsystem

  • Beginner
  • *
  • Posts: 5
Multilanguage site and Custom Fields translation
« on: February 06, 2012, 12:04:17 pm »
Hello,

I use Virtuemart 2 in a multilanguage website (french and english) - Joomla 1.5.
French is the default language and I would like to translante all Custom Fields in English
But when I'm editing Custom Fields in French there no flag to switch in english.

How can I translate all my Custom Fields in English ?

Thanks for helping.

balai

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1308
Re: Multilanguage site and Custom Fields translation
« Reply #1 on: February 06, 2012, 12:20:03 pm »
Hi

Just use a variable for a custom field name and value and translate it.
Look http://forum.virtuemart.net/index.php?topic=96758.msg318220#msg318220

itsystem

  • Beginner
  • *
  • Posts: 5
Re: Multilanguage site and Custom Fields translation
« Reply #2 on: April 09, 2012, 11:40:32 am »
Hello and thank you for the answer.
But the website has already more than 300 custom fields.
And the trader who manages the store can not implement this solution.
It would be better if we could switch from one language to another, as in the management of items.
It seems more logical ...

Studio 42

  • Contributing Developer
  • Full Member
  • *
  • Posts: 2433
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
Re: Multilanguage site and Custom Fields translation
« Reply #3 on: April 10, 2012, 13:39:48 pm »
HI
If you must have translation, you must then include a self made translator
or simply add in virtuemart language file the corresponding translation
the simple TEXT are autochecked to use an "existing" key.

We are one thinking the best way to achive the translation for customfields, but now you must find a kick way to do it.

balai

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1308
Re: Multilanguage site and Custom Fields translation
« Reply #4 on: April 10, 2012, 17:34:10 pm »
@Electrocity
In my opinion the whole database structure of the custom fields should change.

Its too redundant and hard to manage records stored multiple times. For example you can find the word "red" 50 times in the same table. Its hard to translate or change 50 records.
All the values should be stored in one table and the relationships of the values with the products in another.

e.g. table CustomValues (custom_value_id, custom_field_id, name,) , table CustomValue_products (custom_value_id,product_id).

I find at least 3 major advantages in this approach the 3rd is the speed of the search queries

balai

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1308
Re: Multilanguage site and Custom Fields translation
« Reply #5 on: August 08, 2017, 20:58:04 pm »
We implemented multi-lingual custom fields in the version 3.1.0 of Custom Fields For All
https://breakdesigns.net/extensions/customfields-for-all

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9416
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Multilanguage site and Custom Fields translation
« Reply #6 on: August 10, 2017, 09:35:47 am »
Its too redundant and hard to manage records stored multiple times. For example you can find the word "red" 50 times in the same table.

Sounds like you do not use the lists, which provide that.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/