- Posts: 25
- Thank you received: 0
Translation to my language
-
lucgomes
Inactive member -
Topic Author
- Member
-
Less
More
13 years 1 week ago - 13 years 1 week ago #16620
by lucgomes
Translation to my language was created 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.
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: 13 years 1 week ago by lucgomes.
Please Log in to join the conversation.
-
ivan.milic
Support Staff -
- Moderator
-
Less
More
- Posts: 14116
- Thank you received: 1639
13 years 1 week ago #16636
by ivan.milic
Replied by ivan.milic on topic Re: Translation to my language
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
-
Less
More
- Posts: 25
- Thank you received: 0
13 years 1 week ago #16641
by lucgomes
Replied by lucgomes on topic Re: Translation to my language
Yes, inside the file have this line. Please check the attache file.
Please Log in to join the conversation.
-
ivan.milic
Support Staff -
- Moderator
-
Less
More
- Posts: 14116
- Thank you received: 1639
13 years 1 week ago #16651
by ivan.milic
Replied by ivan.milic on topic Re: Translation to my language
Open that file and change:
,to:
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
-
Less
More
- Posts: 25
- Thank you received: 0
13 years 1 week ago #16656
by lucgomes
Replied by lucgomes on topic Re: Translation to my language
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.
-
ivan.milic
Support Staff -
- Moderator
-
Less
More
- Posts: 14116
- Thank you received: 1639
13 years 1 week ago #16659
by ivan.milic
Replied by ivan.milic on topic Re: Translation to my language
/templates/hot_fashionstore/html/com_virtuemart/categories/default.php
Please Log in to join the conversation.
Time to create page: 0.168 seconds