Author Topic: Alternate Language Availability Images  (Read 2726 times)

Gambalunga

  • Beginner
  • *
  • Posts: 31
Alternate Language Availability Images
« on: January 12, 2011, 10:50:09 am »
I am using Joomla 1.5.22 and Virtuemart 1.1.6 in Italian and English using JoomFish

I would like to implement different images for availabilty depending on the language. Does anyone have any ideas how this may be done?

I would imagine something like:

If language english
then dispaly english images
elseif languge italian
then dispay italian images
else
display default images
I thought I had retired but now I have discovered I am just tired

Gambalunga

  • Beginner
  • *
  • Posts: 31
Re: Alternate Language Availability Images
« Reply #1 on: January 28, 2011, 13:42:19 pm »
Translating Product Availability and images resolved

I noticed this field, product_availability, was not available for translation so I added a line to vm_product.xml. The table list is now as follows:
Code: [Select]
       <table name="vm_product">
            <field type="referenceid" name="product_id" translate="0">ID</field>
            <field type="titletext" name="product_name" translate="1">Name</field>
            <field type="htmltext" name="product_s_desc" translate="1">Short description</field>
            <field type="htmltext" name="product_desc" translate="1">Description</field>
            <field type="text" name="product_availability" translate="1">Availability</field>
            <field type="text" name="attribute" translate="1">Attribute</field>
            <field type="text" name="custom_attribute" translate="1">Custom Attribute</field>
            <field type="created_date" name="cdate" translate="0">Created</field>
            <field type="modified_date" name="mdate" translate="0">Modified</field>
         </table>
This simple change allows either text or a alternative gif file to be entered.

I hope this helps someone and may be a good idea for future versions.
I thought I had retired but now I have discovered I am just tired