News:

Support the VirtueMart project and become a member

Main Menu

Problem in change default language

Started by lipes, April 17, 2012, 01:09:05 AM

Previous topic - Next topic

lipes

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?
VM V. online: J2.5.14 | VM 2.0.20a | SQL 5.1.70 | PHP 5.3.25

jjk

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.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

jjk

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/
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

lipes

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
VM V. online: J2.5.14 | VM 2.0.20a | SQL 5.1.70 | PHP 5.3.25

jjk

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.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

lipes

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 ?
VM V. online: J2.5.14 | VM 2.0.20a | SQL 5.1.70 | PHP 5.3.25

jjk

#6
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.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

lipes

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!
VM V. online: J2.5.14 | VM 2.0.20a | SQL 5.1.70 | PHP 5.3.25