Author Topic: Change Joomla default language -> no products are displayed  (Read 9415 times)

hella1289

  • Beginner
  • *
  • Posts: 3
Change Joomla default language -> no products are displayed
« on: February 13, 2012, 21:22:59 pm »
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

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10358
  • VirtueMart Version: 3+
Re: Change Joomla default language -> no products are displayed
« Reply #1 on: February 13, 2012, 21:29:01 pm »
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.

J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

hella1289

  • Beginner
  • *
  • Posts: 3
Re: Change Joomla default language -> no products are displayed
« Reply #2 on: February 13, 2012, 22:11:20 pm »
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

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3505
  • using Matomo instead of Google Analytics
Re: Change Joomla default language -> no products are displayed
« Reply #3 on: February 13, 2012, 22:29:16 pm »
Perhaps this helps:
http://forum.virtuemart.net/index.php?topic=95970.msg317893#msg317893
Instead of the _de_de suffix your ones should be ru_ru of course.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

hella1289

  • Beginner
  • *
  • Posts: 3
Re: Change Joomla default language -> no products are displayed
« Reply #4 on: February 14, 2012, 21:11:03 pm »
Thanks!!

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

All is working now like a charm!

Thanks again.

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3505
  • using Matomo instead of Google Analytics
Re: Change Joomla default language -> no products are displayed
« Reply #5 on: February 14, 2012, 23:43:31 pm »
I suppose in most cases the origin of this problem is when VM2 users are not aware of this:
...VM2 is now always multilanguage, that means, even when you use only one language, vm2 is using spemilded 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

x0148478

  • Beginner
  • *
  • Posts: 2
Re: Change Joomla default language -> no products are displayed
« Reply #6 on: February 20, 2012, 22:33:33 pm »
Works for me to: pt-PT _pt_pt

nickwiebe

  • Jr. Member
  • **
  • Posts: 61
Re: Change Joomla default language -> no products are displayed
« Reply #7 on: June 27, 2013, 22:54:22 pm »
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

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3505
  • using Matomo instead of Google Analytics
Re: Change Joomla default language -> no products are displayed
« Reply #8 on: June 28, 2013, 09:03:38 am »
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