Translation to my language

  • lucgomes
    Inactive member
  • Topic Author
  • Member
  • Member
More
12 years 2 days ago - 12 years 2 days ago #16620 by lucgomes
I need understand why i put my language in joomla the template not working fine. I can see the images and when i click in virtuemart option in the left menu, this message appear:

Warning: Invalid argument supplied for foreach() in /home/storage/a/a5/b2/secutorfight/public_html/store/sqtr/templates/hot_fashionstore/html/com_virtuemart/categories/default.php on line 45.

How can i fix this?

PS.: I did the hotstart installation.
Last edit: 12 years 2 days ago by lucgomes.

Please Log in to join the conversation.

More
12 years 2 days ago #16636 by ivan.milic
Do you have translation for COM_VIRTUEMART_LIST_EMPTY_OPTION in your language .ini file?

Please Log in to join the conversation.

  • lucgomes
    Inactive member
  • Topic Author
  • Member
  • Member
More
12 years 1 day ago #16641 by lucgomes
Yes, inside the file have this line. Please check the attache file.

File Attachment:

File Name: virtuemart...2012.zip
File Size:87 KB
Attachments:

Please Log in to join the conversation.

More
12 years 1 day ago #16651 by ivan.milic
Open that file and change:
Code:
<?php if ($this->searchcustom->custom_parent_id) { foreach ($this->searchcustom->selected as $key =>$custom){ $option = array('custom_value' =>null, 'title' => JText::_('COM_VIRTUEMART_LIST_EMPTY_OPTION')); $options = array_merge(array($option), $custom->fields[$custom->virtuemart_custom_id]); echo JText::_('COM_VIRTUEMART_SET_PRODUCT_TYPE').' '.JHTML::_('select.genericlist', $options, 'customfields['.$custom->virtuemart_custom_id.']', 'class="inputbox"', 'custom_value', 'title', 0); } } ?>

,to:
Code:
<?php if ($this->searchcustom->custom_parent_id && is_array($this->searchcustom->selected)) { foreach ($this->searchcustom->selected as $key =>$custom){ $option = array('custom_value' =>null, 'title' => JText::_('COM_VIRTUEMART_LIST_EMPTY_OPTION')); $options = array_merge(array($option), $custom->fields[$custom->virtuemart_custom_id]); echo JText::_('COM_VIRTUEMART_SET_PRODUCT_TYPE').' '.JHTML::_('select.genericlist', $options, 'customfields['.$custom->virtuemart_custom_id.']', 'class="inputbox"', 'custom_value', 'title', 0); } } ?>

Please Log in to join the conversation.

  • lucgomes
    Inactive member
  • Topic Author
  • Member
  • Member
More
12 years 1 day ago #16656 by lucgomes
Can you change the file and send-me? Wich file i need change? I opened pt-BR.com_virtuemart.ini but i cant found this option.

Please Log in to join the conversation.

More
12 years 1 day ago #16659 by ivan.milic
/templates/hot_fashionstore/html/com_virtuemart/categories/default.php

Please Log in to join the conversation.

Time to create page: 0.177 seconds
Powered by Kunena Forum