News:

Looking for documentation? Take a look on our wiki

Main Menu

Change Joomla default language -> no products are displayed

Started by hella1289, February 13, 2012, 21:22:59 PM

Previous topic - Next topic

hella1289

Hi to all!

I've got a problem. Joomla 1.7 and Virtuemart 2.0 installed successfully.  After that installed Russian language packs for Joomla and Virtuemart. Changing admin panel language makes sense and admin panel is translated successfully (including Virtuemart admin).
When setting the whole site default language to Russian the products disappeared along with a categories list. The following warning is displayed on the category list page:

Warning: Invalid argument supplied for foreach() in /home/alife/boom5.com.ua/www/components/com_virtuemart/views/categories/tmpl/default.php on line 41

Please let me know if there is any solution or any hints on what may be causing the issue.

Thanks!

PRO

hella1289,

If a product ONLY has the ENGLISH part filled out. THEN, if you change the default to russian. The prducts will not show.

WHEN, you fill in the russian for each category, and product it will show up.

Go to a product or category in administrator, and you will see the dropdown to fill in the description. AS soon as you will the other language in. The category/product will show up.


hella1289

Thanks for getting back!

Actually when editing the product I can see only English flag with the description and there is no way to choose Russian and fill that part.
When switching the default site language to Russian there are indeed no categories and products in the VW admin but when trying to add a new category it says that it is saved with the warning posted in the details part of the category description:

Warning: Invalid argument supplied for foreach() in /home/alife/boom5.com.ua/www/administrator/components/com_virtuemart/helpers/shopfunctions.php on line 929

Warning: Invalid argument supplied for foreach() in /home/alife/boom5.com.ua/www/libraries/joomla/html/html/select.php on line 518

It says saved successfully but there is no category in the list after that.

Thanks for your efforts.

jjk

Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

hella1289

Thanks!!

The latest suggestion works. A stupid mistake, just a  newbie)))

All is working now like a charm!

Thanks again.

jjk

I suppose in most cases the origin of this problem is when VM2 users are not aware of this:
Quote from: Milbo on December 01, 2011, 14:12:30 PM
...VM2 is now always multilanguage, that means, even when you use only one language, vm2 is using speshitpilled tables to store translatable data. Therefore it is very important before you update to check that your default joomla frontend language is the same as you use in the description of your products. So when you used atm english in your store, but it should be a spain shop than it is important that you change the joomla frontend language to spain before the upgrade.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations


nickwiebe

I'm having a similar problem, my Template for joomla 2.5 is set to en-gb but i'm in the US.  When I change the joomla language to en-us all products, categories and store go blank.  I'm only changing from english to english so i'm not sure why it is doing this.

jjk

First you will have to make a decision if you want a single language en-US website or a bilingual en-GB/en-US website, because a bilingual site requires to configure a multilingual setup in Joomla and VM2. (Let us know in your next reply)

Note: Currently the en-US VM2 files are just a copy of the en-GB files, because even though many Americans are using VM2, nobody volunteered yet to take care of the en-US files at https://www.transifex.com/projects/p/virtuemart/language/en_US/

Your post above sounds like you didn't install an en-US language pack for Joomla. VM2 looks for the installed Joomla (frontend) languages. You can download en-US language packs for Joomla 2.5 at one at these locations (I don't know the difference between those two):
http://extensions.joomla.org/extensions/languages/translations-for-joomla/10621
http://joomlacode.org/gf/project/jtranslation1_6/frs/?action=FrsReleaseBrowse&frs_package_id=5642

Then please check in which category/product tables your shop content has been stored. I suppose they are in tables with with en_gb suffix.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations