VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: benbogart on July 01, 2011, 21:40:16 PM

Title: Are Product Types Translatable now?
Post by: benbogart on July 01, 2011, 21:40:16 PM
In Virtuemart 2.0 are Product Types translatable with Joomfish?
Title: Re: Are Product Types Translatable now?
Post by: benbogart on July 03, 2011, 15:16:38 PM
Does anybody know the answer to this?  In Virtuemart 1.x they are not translatable because of the data base structure used to store them.
Title: Re: Are Product Types Translatable now?
Post by: Milbo on July 03, 2011, 16:44:43 PM
We think about just to add an JText::_ before the description as we already do for the userfields. So you can then add something like COM_VIRTUEMART_MY_PRODUCTTYPE_ATTR and then oyu add that to the language file. Just an idea, maybe there are better solutions
Title: Re: Are Product Types Translatable now?
Post by: jjk on July 03, 2011, 17:06:52 PM
Milbo replied while I was in the middle of typing this:

The old VM1.1.x attributes, product types, etc. have been replaced by user defineable custom fields. I'm not going to test it for you, but I doubt that current versions of Joomfish would work with VM2. If you want to try, you probably would have to develop a new "content element" file for Joomfish. Perhaps the situation changes with Joomfish 3.0 some time in 2012.

...I wonder if it would be difficult for the VM2 developers to make use of the Joomla 1.7.x language switching capabilities, i.e. treat product descriptions like articles in the CMS, where you can assign one of the installed languages in the article settings... ::)
Title: Re: Are Product Types Translatable now?
Post by: benbogart on July 03, 2011, 17:14:29 PM
Milbo, Thats quite a nice idea actually!  I'll give it a go.

jjk, the problem with the current version is that there is no way to write a new content element file for the Product Type attributes because they use a multi column index in the database table.  I am very happy to know hear that product type attributes have been replaced but user definable fields, it gives me some hope.  But really your suggestion to make use of 1.7 language switching abilities would be even better (assuming a 1.7 ever gets released and they don't move on to 1.8 before they get that far).

Thanks.
Title: Re: Are Product Types Translatable now?
Post by: jjk on July 03, 2011, 17:26:59 PM
Quote from: benbogart on July 03, 2011, 17:14:29 PM
assuming a 1.7 ever gets released ...

I'm shure it will. I have J1.7.0 Beta installed and the "Stable" is due in less than three weeks.
Title: Re: Are Product Types Translatable now?
Post by: Milbo on July 04, 2011, 19:00:46 PM
my idea would exactly use the joomla methods and should then also use the language switching capibilities,.. it is not nice to edit though, but not hard.
Title: Re: Are Product Types Translatable now?
Post by: Studio 42 on July 16, 2011, 18:50:30 PM
Hi,
The field can be translate with standard joomla ini string by adding it to the component.

Set A standard String eg. COM_VIRTUEMART_SIZE="Size" and set it for each language.
Name your field or value as your string >  COM_VIRTUEMART_SIZE
now it's translated by joomla.
For bigger shop, i think it's better to manage it with joomfish.
Title: Re: Are Product Types Translatable now?
Post by: gourky on July 30, 2011, 09:04:12 AM
Hello,

Maybe if we can get just a language combo field for categories and product description, in the configuration page.
Maybe better the default language description always displayed, a combo to select next language, and the next language description field to have the default one as a model.
I think multi language support is mandatory. It would be better to avoid installing a third tool to manage only virtuemart languages.
Title: Re: Are Product Types Translatable now?
Post by: Milbo on July 30, 2011, 12:00:58 PM
It is supporting multi language. btw, what means, "capable of" "supporting" and "featuring" ?