VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: nrap on September 04, 2013, 15:54:29 PM

Title: Multilanguage flags css problem - v.2.0.22c
Post by: nrap on September 04, 2013, 15:54:29 PM
Joomla 2.5.14
Virtuemart 2.0.22c
Multilanguage site using joomla's built in multilanguage support.

Languages Greek + English.

Default language is Greek in VM.
When changing from Greek to English the popup that there is no language pops up but the flags are nowhere to be shown.
A quick look at the /administrator/components/com_virtuemart/assets/css/menu_images.css shows that the flags are set to:

td.flag-el and td.flag-gb

instead in my website they are set to
td.flag-gr and td.flag-en

adding the following to the menu_images.css fixes the problem

td.flag-en,.flag-gb{ background: url(../images/flag/en.png) no-repeat 0 0; padding-left:20px !important;}
td.flag-gr,.flag-gr{ background: url(../images/flag/el.png) no-repeat 0 0; padding-left:20px !important;}


Title: Re: Multilanguage flags css problem
Post by: guidocx842 on September 05, 2013, 12:37:22 PM
Hi everybody!
After the update to Virtuemart 2.0.22c on Joomla 2.0.14 I'm not able to use the Multilanguage feature!  :( :( :(
Initially, I create all categories only in English but I install also the italian language for the backoffice.
Than I update the Virtuemart 2.0.22b to 2.0.22c and activate the multilanguage option with english (gb) and italian (it).
When I enter into a category, I see the dropdown menu with English (I don't see english flag) and Italian (I see italian flag).
When I select Italian I see the popup that there is no language so I set the italian category name, url, title, meta-description, meta-keys and description.
BUT, if I press save, all this italian information OVERWRITE the english informations and viceversa!
So by now I'm not able to use the multilanguage feature! I try also to use various browser and I try also to create new categories but the problem remain.
Please, can you help me to undersand how to solve!? I have many Virtuemart website and it's the first time that I see this bug!
Thank you so much.
Title: Re: Multilanguage flags css problem
Post by: CE WebDesign München on September 05, 2013, 13:44:54 PM
hi, similar issue here, Virtuemart 2.0.22c / Joomla 2.0.14, standard language en-gb

After update to Virtuemart 2.0.22c:
no matter which language chosen, product-text will get stored to en-gb

works again after downgrading to 2.0.22b...
Title: Re: Multilanguage flags css problem
Post by: guidocx842 on September 05, 2013, 17:40:53 PM
It works if you downgrade?????
How do you do the downgrade? Simply install the 2.0.22b over the 2.0.22c?
Is not a risk? I'm thinking to the database... thanks!
Title: Re: Multilanguage flags css problem
Post by: Kongzi on September 05, 2013, 18:06:14 PM
Hello,

Arf, I'm not alone with desperate mind ...

Joomla 2.5.14
Virtuemart 2.0.22b

I have same problem with flag and if I try to edit any other language, the default language is erase by the new entry !

I modify english or spanish, so french default language is erase by last modification

Default : French
Other : Italian, English, Spanish

I tried on local to update to 2.0.22c, but same problem with language.
I downgrade to 2.0.22b, that's seem to correct the bug. But no english flag yet

What could we do ?

I post here too : http://forum.virtuemart.net/index.php?topic=118456.0 (http://forum.virtuemart.net/index.php?topic=118456.0)

Thanks and all the best
Title: Re: Multilanguage flags css problem
Post by: CE WebDesign München on September 05, 2013, 18:12:15 PM
@ guidocx842

sorry for confusion, i tested on a local backup.

i never update the live-site until the update passed all my testing cases (including clone/new product + new category etc.)

so yes, i simply install the 2.0.22b over the 2.0.22c, works locally for me.

if you have no backup, do a backup now and check locally, if this downgrade works for you
(and backup before EVERY joomla + vm update from now on and keep copies stored for a while...)
Title: Re: Multilanguage flags css problem
Post by: guidocx842 on September 06, 2013, 09:21:42 AM
Quote from: gogo123 on September 05, 2013, 18:12:15 PM
@ guidocx842

sorry for confusion, i tested on a local backup.

i never update the live-site until the update passed all my testing cases (including clone/new product + new category etc.)

so yes, i simply install the 2.0.22b over the 2.0.22c, works locally for me.

if you have no backup, do a backup now and check locally, if this downgrade works for you
(and backup before EVERY joomla + vm update from now on and keep copies stored for a while...)

Hi gogo123 and thank you for your answer!
You're right! I usually make a backup before every update of Joomla or Virtuemart but, in this case, I'm wrong because I think that I can install the update with no problems... I read 2.0.22c STABLE and HARDENED...! It's a sub sub version...   :(
Now I'm copying the website locally and I'll try the downgrade to 2.0.22b... I will say you if I solve... thank you by now!  ;)
Title: Re: Multilanguage flags css problem
Post by: nrap on September 06, 2013, 09:39:24 AM
Hello,
I can confirm that there is a problem there.

After updating to v. 2.0.22c, every time I try to change the language and press save, the default language is overiden by the whatever language I have... Worked on 2.0.22b though.
Any solutions?
Title: Re: Multilanguage flags css problem - v.2.0.22c
Post by: guidocx842 on September 06, 2013, 12:04:52 PM
Hi everybody!
I can confirm that downgrading to 2.0.22b the problem is completely solved.
So, if you are interested in multilanguage support, do not install 2.0.22c release!  ;)
I'm sure that in future release the problem will be solved...  ;)
Title: Re: Multilanguage flags css problem - v.2.0.22c
Post by: mksnz on September 06, 2013, 12:45:01 PM
My menu_images.css was already in that format.
Even 22b caused problems for some reason, I had to downgrade back to 22a and now it works.
Title: Re: Multilanguage flags css problem - v.2.0.22c
Post by: nrap on September 06, 2013, 14:18:27 PM
Same problem in Categories:

Created a category with the default language (greek)
Pressed the English button - popup appeared that there is no en-gb translation - OK
Edited the name (test category english) -> Save
The category reappeared with the Greek text as the English one.
Pressing the English translation popup that there is no english translation reappears...
Title: Re: Multilanguage flags css problem - v.2.0.22c
Post by: Milbo on September 06, 2013, 14:41:13 PM
Shit,

I am really sorry for this. we had to change this part, because it was a big security issue. There are testers with multilanguage pages, but seems they did noticed this error testing a product. Here is a fix. Please test, we will release a d version asap.

path is \administrator\components\com_virtuemart\helpers. thx.

[attachment cleanup by admin]
Title: Re: Multilanguage flags css problem - v.2.0.22c
Post by: CE WebDesign München on September 06, 2013, 15:36:19 PM
2.0.22c + new config.php works for me (local)! thanks milbo for the quick fix!!!


just for far future:
products -> field "product search" is prefilled with "0" now and does not remember searchword like before

on selecting/going back to english (my default) in product (same for category), i see no flags (no problem, but might be confusing to new vm-users)

on saving (not save+close) product (same for category) vm jumps back to english (no problem, but might be confusing to new vm-users too)
Title: Re: Multilanguage flags css problem - v.2.0.22c
Post by: Milbo on September 06, 2013, 16:23:56 PM
thx, also fixed, I fear we must release a D version.
Title: Re: Multilanguage flags css problem - v.2.0.22c
Post by: mksnz on September 07, 2013, 15:03:52 PM
22c and new config.php didn't do anything for me.
Same problem exists, I tried to install it twice but only the first language can be edited (two languages in my shop).

Even 22b has the same problem... 22a works flawlessly.

Title: Re: Multilanguage flags css problem - v.2.0.22c
Post by: guidocx842 on September 08, 2013, 09:53:09 AM
For me the downgrade to 2.0.22b solve the multilanguage problem but not the css flag problem. But in my opinion that were the minus problem so I remain on 2.0.22b by now  ;)
Title: Re: Multilanguage flags css problem - v.2.0.22c
Post by: lexius on September 10, 2013, 07:22:54 AM
I have a 2.0.22b, 2.0.22c (and new config.php) and 2.0.22d (http://dev.virtuemart.net/projects/virtuemart/files) does not work!
I has returned back to 2.0.22a - it works perfect.
Title: Re: Multilanguage flags css problem - v.2.0.22c
Post by: CE WebDesign München on September 10, 2013, 17:25:42 PM
please look here too (php-version/editor):
http://forum.virtuemart.net/index.php?topic=118597.msg402309#msg402309
Title: Re: Multilanguage flags css problem - v.2.0.22c
Post by: lindapowers on September 12, 2013, 04:32:32 AM
downgrade to an insecure version is not a solution.

I installed D and the translations seem to work however there's a bit of a mess with the backend flags, I have 4 languages:

English: shows no flag
French: shows french flag:
Catalan: shows spanish flag
Spanish: shows spanish flag too

Don't know how or where exactly affects that.

PHP 5.3.26

Regards
Title: Re: Multilanguage flags css problem - v.2.0.22c
Post by: ffredt on September 12, 2013, 11:36:23 AM
Quote from: Milbo on September 06, 2013, 16:23:56 PM
thx, also fixed, I fear we must release a D version.

Works for me
Thanks a lot
Fred
Title: Re: Multilanguage flags css problem - v.2.0.22c
Post by: lexius on September 15, 2013, 10:42:47 AM
Quote from: gogo123 on September 10, 2013, 17:25:42 PM
please look here too (php-version/editor):
http://forum.virtuemart.net/index.php?topic=118597.msg402309#msg402309
I did a clean install of Joomla 2.5.14 and  installed Virtuemart2.0.22d. Multilanguage is not working. It only works with version 2.0.22a.
I have three languages​​: Russian (main), English and Estonian.
System Information:
PHP Built On    Linux sn19 2.6.39-400.109.1.el5uek #1 SMP Tue Jun 4 23:15:07 PDT 2013 x86_64
Database Version    5.6.12-log
Database Collation    utf8_general_ci
PHP Version    5.3.27
Web Server    Apache/2.2.25/DataZone SP (Unix) mod_zfpm/0.2
WebServer to PHP Interface    cgi-fcgi
Joomla! Version    Joomla! 2.5.14 Stable [ Ember ] 01-August-2013 14:00 GMT
Joomla! Platform Version    Joomla Platform 11.4.0 Stable [ Brian Kernighan ] 03-Jan-2012 00:00 GMT
User Agent    Mozilla/5.0 (Windows NT 6.1; rv:25.0) Gecko/20100101 Firefox/25.0
Title: Re: Multilanguage flags css problem - v.2.0.22c
Post by: tevfikyazici on September 15, 2013, 16:59:17 PM
I think there are two different problem in this thread.
1. Can not add second language text to db.
2. GB image can not be displayed.

com_virtuemart.2.0.22d release fixes first problem. But second problem still continues. To fix second problem please add below line to JROOT\administrator\components\com_virtuemart\assets\css\menü_images.css file.

td.flag-gb,.flag-gb{ background: url(../images/flag/gb.png) no-repeat 0 0; padding-left:20px !important;}
Title: Re: Multilanguage flags css problem - v.2.0.22c
Post by: lexius on September 15, 2013, 18:09:18 PM
Quote from: tevfikyazici on September 15, 2013, 16:59:17 PM
I think there are two different problem in this thread.
1. Can not add second language text to db.
2. GB image can not be displayed.

com_virtuemart.2.0.22d release fixes first problem. But second problem still continues. To fix second problem please add below line to JROOT\administrator\components\com_virtuemart\assets\css\menü_images.css file.

td.flag-gb,.flag-gb{ background: url(../images/flag/gb.png) no-repeat 0 0; padding-left:20px !important;}

Thank you very much for your answer! Do you really understood the situation correctly and your reply helped me fix the problem.
I've added two line:
td.flag-gb,.flag-gb{ background: url(../images/flag/gb.png) no-repeat 0 0; padding-left:20px !important;}
and
td.flag-ee,.flag-ee{ background: url(../images/flag/et.png) no-repeat 0 0; padding-left:20px !important;}

Now everything is working properly, I can create a translation into another language.
Once again, thank you very much!
Title: Re: Multilanguage flags css problem - v.2.0.22c
Post by: alatak on September 18, 2013, 12:02:51 PM
Hello

QuoteI've added two line:
td.flag-gb,.flag-gb{ background: url(../images/flag/gb.png) no-repeat 0 0; padding-left:20px !important;}
and
td.flag-ee,.flag-ee{ background: url(../images/flag/et.png) no-repeat 0 0; padding-left:20px !important;}
actually if EE is the country code of Estonia (http://countrycode.org/estonia), it is a problem also with the flag name. I have renamed the flag. and added this
td.flag-ee,.flag-ee{ background: url(../images/flag/ee.png) no-repeat 0 0; padding-left:20px !important;}

Title: Re: Multilanguage flags css problem - v.2.0.22c
Post by: CE WebDesign München on September 18, 2013, 13:14:26 PM
Hello and thanks for adding this,
sorry for being late, but I think flags are missing for en-US and en-AU (and maybe others too)
(maybe there should be as much css-lines as there are flags?)
Title: Re: Multilanguage flags css problem - v.2.0.22c
Post by: alatak on September 18, 2013, 14:36:12 PM
Hello

Quotesorry for being late, but I think flags are missing for en-US and en-AU (and maybe others too)
yes you are right, i've added them also

Quote(maybe there should be as much css-lines as there are flags?)
we have our own flags, because we did that for Joomla 1.5
But actually, we should use the flags settings from joomla, the ones that are defined in extensions > language manager > content > image prefix.
I will fix that for a later version
Title: Re: Multilanguage flags css problem - v.2.0.22c
Post by: CE WebDesign München on September 18, 2013, 15:13:43 PM
Thanks again,
using the joomla flags settings will be great,

maybe br and/or pt-br have an issue too...

not shure if these are typos?
td.flag-ga,.flag-gb
td.flag-hans,.flag-hant

and "Catalan: shows spanish flag" (see lindapowers post above) seems to be a different issue?


Title: Re: Multilanguage flags css problem - v.2.0.22c
Post by: alatak on September 18, 2013, 16:48:26 PM
Hello
Quotemaybe br and/or pt-br have an issue too...
no those ones have been fixed

Quotenot shure if these are typos?
td.flag-ga,.flag-gb
td.flag-hans,.flag-hant
i don't know actually, because i don't what are those countries

Quoteand "Catalan: shows spanish flag" (see lindapowers post above) seems to be a different issue?
This is correct, because the language is
Language: Catalan (ca-ES)
and it is country flag which is displayed.

Using the flag settings from Joomla language settings should solve all the flag problems

Title: Re: Multilanguage flags css problem - v.2.0.22c
Post by: CE WebDesign München on September 18, 2013, 17:31:45 PM
thanks a lot, very happy!
Title: Re: Multilanguage flags css problem - v.2.0.22c
Post by: alatak on September 19, 2013, 12:55:48 PM
Hello

I have fixed the flag issue. Now it uses the flag image defined in Joomla: Language manager > Content > image
Those are the flags used on the front end by the module Language Switcher.
Title: Re: Multilanguage flags css problem - v.2.0.22c
Post by: CE WebDesign München on September 19, 2013, 13:58:28 PM
Wow, great and perfect,  :)
thanks a lot for so much attention for the small group of multilingual users!!!

works for me locally with vm2.0.22d + replacements:
\administrator\components\com_virtuemart\assets\css\menu_images.css
\administrator\components\com_virtuemart\helpers\config.php
\administrator\components\com_virtuemart\helpers\vmview.php

one new tiny little maybe confusing issue now
(but everything works fine, when you know it):

on opening a product (no language selected)
it reads "German (DE-CH-AT)" now (my BE-default), no flags showing,
but the data loaded actually is "English (United Kingdom)" (my FE- and VM-default).
Title: Re: Multilanguage flags css problem - v.2.0.22c
Post by: mbmichele on September 20, 2013, 10:03:24 AM
@gogo123
Thanks for reply http://forum.virtuemart.net/index.php?topic=104873.msg403805#msg403805

I've do a fresh install of D but problem remain. (default language is IT end after saving I try to set EN but really saving again in IT).

I've  J 2.5.14  vm2 2.0.22D
PHP 5.3.15
Mysql: 5.1.59-log
memory_limit   48M
post_max_size   32M


I hope to resolve soon.

Michele
Title: Re: Multilanguage flags css problem - v.2.0.22c
Post by: CE WebDesign München on September 20, 2013, 13:39:18 PM
hm, it works for me with italian.
so you can select english (no gb-flag in 2.0.22d ) but when saving, data is stored to italian databasetable?
and joomla setup is ok? (here is how to check:
http://forum.virtuemart.net/index.php?topic=104901.0 )
Title: Re: Multilanguage flags css problem - v.2.0.22c
Post by: mbmichele on September 20, 2013, 16:25:38 PM
Hi gogo123,
I've retried a fresh install and overwirite files and now work!!!!!

GOOD.

Thanks,
Michele
Title: Re: Multilanguage flags css problem - v.2.0.22c
Post by: lindapowers on September 21, 2013, 03:47:11 AM
Hi Valérie

I tested a copy of version E yesterday from Max which solves the Tax issue at the payment fee so thanks a lot for that, however I noticed a multilingual issue.

Some guys in this post made reference to their main language being changed to another one when editing products so they couldn't change the title, description etc for products in their main language.

Thats is the exact problem I noticed testing E, when editing a product instead of spanish it appeared "catalán" language as selected (although all the text is in spanish) Also no flag is displayed, even choosing spanish and trying to change it there wont make any effect.

In version D it was just a display issue for me with the flags but the languages worked perfectly and I could edit all, spanish was taking as main language.

So theres a bit of a mess there at least with this 2 languages, don't know if that version I tested is not finished yet or didnt have the fix but just to let you know before you release it.

Ill comment it to Max too by skype.

Regards
Title: Re: Multilanguage flags css problem - v.2.0.22c
Post by: Milbo on September 21, 2013, 10:39:29 AM
This was fixed imho 1 hour later. I sent you a new E and then we can release it in the forum. As kind of beta for 2.0.24.
Title: Re: Multilanguage flags css problem - v.2.0.22c
Post by: lindapowers on September 21, 2013, 16:01:58 PM
Quote from: Milbo on September 21, 2013, 10:39:29 AM
This was fixed imho 1 hour later. I sent you a new E and then we can release it in the forum. As kind of beta for 2.0.24.

Thanks, tested new beta and for me it works, I have no issues in multilingual and also the tax for payment fee is applied correctly with "apply generic rules".

Regards
Title: Re: Multilanguage flags css problem - v.2.0.22c
Post by: alatak on September 21, 2013, 18:36:01 PM
Hello

Great  :)
Title: Re: Multilanguage flags css problem - v.2.0.22c
Post by: haiverov on September 30, 2013, 10:53:42 AM
I've been playing around with VM for a couple of days trying to set up a Multilanguage store. Tried different versions and finally got it working but with one strange bug which I think is browser related. What I have is:
Joomla 2.5.14 - clean install without sample data
VM 2.0.22e - clean install without samle data
PHP Version    5.2.17
Database Version    5.1.61-rel13.2-log
Web Server    Apache/2.2.24 (Unix) mod_ssl/2.2.24 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_fcgid/2.3.7-dev

I have two languages - Bulgarian and English (Bulgarian is the default one). Joomla is set up as it is supposed to. Both languages are added to VM too. When I create a new product (it's also the same with the categorries) I enter the data for the default language, click save and then I get the dropdown for the additional language. I choose English and then Enter the translations. Here comes the browser dependant stuff. In Firefox 24 (both Windows and Ubuntu) and Chrome 29 (again Windows and Ubuntu) it just doesn't save the English translations but saves the Bulgarian data in the virtuemart_products_en_gb table. In Opera 12.16 (Windows and Ubuntu) this problem does not exist and everything works like a charm.

Furthermore if i open an already added product and try to edit the English (non-default language)  translations it saves it to the database, it shows the new values in the frontend BUT it keeps loading the old values in the backend. This happens in Firefox and Chrome. Again in Opera this issue is not present and it works perfect. Tried in a several machines and the results are identical.

Title: Re: Multilanguage flags css problem - v.2.0.22c
Post by: jjk on September 30, 2013, 11:49:25 AM
@haiverov
Three people and myself tried to reproduce your case, but so far none of us can reproduce that problem. For me it works with Firefox 24, too. Which editor are you using?
You said in Opera the problem doensn't exist, but nevertheless please check if your Joomla multilanguage configuration is configured like in in these tutorials:
http://docs.virtuemart.net/tutorials/36-multilingual-store/99-multilanguage-setup.html (http://docs.virtuemart.net/tutorials/36-multilingual-store/99-multilanguage-setup.html)
Does the 'Multilingual Status' in Joomla show everything in green?
Also, since you tried different VM versions, please go to Tools > Tools & Migration > click on the button "Install or if necessary update tables" and disable Joomla cache.
Title: Re: Multilanguage flags css problem - v.2.0.22c
Post by: haiverov on September 30, 2013, 12:50:25 PM
Hi jjk and thank for your reply.
I've been trying to solve the issue and here's what I achieved.  Installed a copy on my local machine (WAMP Server) and the problem is gone.

Current setup is:
Database Version    5.1.33-community-log
Database Collation    utf8_general_ci
PHP Version    5.3.13
Web Server    Apache/2.2.11 (Win32) PHP/5.3.13

We updated the PHP version on the server on which the problem is still present. It is now:

Database Version    5.1.61-rel13.2-log
Database Collation    utf8_general_ci
PHP Version    5.3.22
Web Server    Apache/2.2.24 (Unix) mod_ssl/2.2.24 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_fcgid/2.3.7-dev

No change at all. Still having the issue.

I also installed a copy on another hosting provider. The problem there does not exist and everything works fine.

Database Version    5.1.63-rel13.4-log
Database Collation    utf8_general_ci
PHP Version    5.3.13
Web Server    Apache

So I assume it's all related to the server setup. Any ideas what might be causing it?
Title: Re: Multilanguage flags css problem - v.2.0.22c
Post by: jjk on September 30, 2013, 13:13:59 PM
I have no idea at the moment. On my local computers I'm using different versions of xampp (instead of WAMPP) and on my live website, my php and database versions are even older than yours before your update. Do you have a link to the website on the problem server?
Title: Re: Multilanguage flags css problem - v.2.0.22c
Post by: alatak on September 30, 2013, 14:17:59 PM
Hello
Can you please PM me . I will have a look.
Title: Re: Multilanguage flags css problem - v.2.0.22c
Post by: alatak on October 02, 2013, 09:00:05 AM
Hello haiverov
We have tested with someone from the test team, and we were able to reproduce the problem on Firefox 22.0/ Mac
Once he has updated his firefox to version24.0 the problem disapeared.
It looks like the Jquery does not find the LangCode, but i have not found why yet.
I cannot myself reproduce the problem with Safari, Opera, Firefox, and Chrome.