VirtueMart Forum

VirtueMart 2 + 3 + 4 => Language/Translations => Topic started by: lipes on April 17, 2012, 01:09:05 AM

Title: Problem in change default language
Post by: lipes on April 17, 2012, 01:09:05 AM
Hi!
I've got a problem in 2.0.6 few minutes ago i've tryed to change the default language from en-GB to pt-PT  here:
1) Installed - Site; (en-GB to pt-PT)
2) Installed - Administrator; (en-GB to pt-PT)
3) Content - i've created the pt-PT

But when i go to see the front end the Virtuemart Modules and Component goes away... nothing works... only joomla work!
What could it be?
Title: Re: Problem in change default language
Post by: jjk on April 17, 2012, 07:30:15 AM
Did you check already if you have your portuguese content in the ..._pt_pt database tables? Maybe you stored your content into the _en_GB tables.
Title: Re: Problem in change default language
Post by: jjk on April 17, 2012, 11:44:40 AM
Quote from: lipes on April 17, 2012, 11:26:54 AM
Hi. where i can see that content? in phpmyadmin?
Yes, but there are a few alternative tools. I like this one because it has a nicer user interface:
http://www.heidisql.com/ (http://www.heidisql.com/)
Title: Re: Problem in change default language
Post by: lipes on April 18, 2012, 01:40:03 AM
yes, its true.
I checked all virtuemart "_pt_pt" tables and they dont got "Rows" and its impossible to browse that ..
There is any solution to solve this? Please?!

Tks
Title: Re: Problem in change default language
Post by: jjk on April 18, 2012, 08:55:42 AM
One of the solutions is to export the _en_gb tables with phpmyadmin or heidiSQL, open the files with an editor like Notepad++, use "Search and replace" to replace all _en_gb with _pt_pt, rename the files to _pt_pt and finally import the sql files again.
Title: Re: Problem in change default language
Post by: lipes on April 18, 2012, 13:18:44 PM
Done :)

But i'm thinking in one situation... So there is 2 tables with different languages en_gb and pt_pt .. in future if i add products the tables will not be update automatic.. so i'll have to re upload again all pt_pt tables (or work with pt_pt by default) and let en_GB not be updated too ?
Title: Re: Problem in change default language
Post by: jjk on April 18, 2012, 14:02:20 PM
The problem was that you didn't set your site language to Portuguese before entering your data. So VM2 assumed that the content is english (default). If you click on "Add new product" from now on, VM2 opens the product description in the language you set as site default language in Joomla. So if you set Portuguese as the site default and enter a portuguese product description, only the portuguese product table is updated. As soon as you select English in your backend product description, you will see the british flags next to the translatable fields. When you enter an english description and save it, the english language product table will be updated, too.
Title: Re: Problem in change default language
Post by: lipes on April 18, 2012, 14:45:46 PM
Hummm... ok ok :)

I'am just testing yet the VM2 in a local server, only inserted 10 test products.

But now i'am testing the language area to see whats happen if i change :P

Ok! when i start to add products i will select pt-pt from the beggining to not have this problem :)

Many Thanks! Best Regards!