False language in popup with SEF in J! 3.4.0 and VM 3.0.6

Started by RobertG, March 03, 2015, 09:40:10 AM

Previous topic - Next topic

RobertG

I confirm: no more problems since I updated in 3.4.1
I moved this test site: http:multi.robertg.fr

jjk

Quote from: prokops on April 14, 2015, 14:38:36 PM
I am baffled at how Robert can have solved this issue with 3.4.1 as it is broken for me with both upgrade and clean install tests.
I think Robert didn't test with the final J3.4.1 release.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

RobertG

My Joomla! version on multi.robertg.fr is:
QuoteJoomla! 3.4.1 Stable [ Ember ] 21-March-2015 20:30 GMT

jjk

Quote from: RobertG on April 15, 2015, 11:35:42 AM
My Joomla! version on multi.robertg.fr is:
QuoteJoomla! 3.4.1 Stable [ Ember ] 21-March-2015 20:30 GMT
So you still share the unsolved problem with us...
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

jjk

As a temporary workaround I've replaced the J3.4.1 file languagefilter.php with the version dated 17th February (last update before J3.4.0 release) from Joomla's Github history. Seems to work for the moment.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

RobertG


Studio 42

Quote from: RobertG on April 15, 2015, 21:56:16 PM
You're right! :(
The problem is still there! Sorry!
HI robert the problem is here:
vmLang = '&lang=fr' ;
this is a javascript problem in Virtuemart not Joomla
Simply uncheck fix language or something similar in the virtuemart config.

En francais:
Salut roberG, le soucis vient de la configuration de virtuemart. il y a une case "fixer le probleme de la langue" enfin dans le genre.
Essaye de décocher la case dans la config et refait un teste.
ce fix ne fonctionne pas car tu n'as pas de langue anglaise, donc virtumart cherche les produits dans myslq en fr_fr, bien évidement cela fait que la popup est en francais ;)

Greets,
Patrick K.

RobertG

The site is using english language (and german, french, spanish and italian), default frontend language is french.

On another site (in construction, offline) I applied the patches that were available on github, and it works fine!
Probably one of them was not merged?

jjk

@Studio 42
I did test your suggestion with J3.4.1/VM 3.0.7.2. Once I played with 'Language Javascript Fix' in VM Configuration > Checkout tab (was it a Fix for Joomla 1.6?), the language switcher doesn't work when going from a category view to a product details view. Fails in both cases, 'Language Javascript Fix' disabled/enabled.

However, it seems that when I enable that old fix when using the latest staging version of Joomla 3.4.2 from Github, languages are always loaded correctly. In Joomla! 3.4.2-dev (latest staging) the languagefilter.php code is a little bit different from the one in the Joomla 3.4.1 release.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

Studio 42

Hi,
The only real solution is to sef all javascript links.
currently the javascript set this :
vmSiteurl = 'http://site.com/' ;
vmLang = "&lang=fr";

but shoud be

vmSiteurl = 'http://site.com/' ;
vmSitewithLang = 'http://site.com/en/' ;
vmLang = "";

or something so. vmSitewithLang can then be used to prevent bad language setting in the case you need it.
I changed myself some url because google pagespeed(in google chrome only) reported me redirecting in ajax when price update, because language was not set and now it work as i needed.

RobertG

Hi,
I tested yesterday with Joomla! staging version 3.4.2dev and VM 3.0.7.4 and the issue was there.
Tomorrow I removed these files and installed Joomla! 3.3.6 and VM 3.0.7.4: all is correct as you can see on http://multi.par-robertg.fr
So I think the problem in in Joomla! not in VM. Right or not?
Robert

Studio 42

RobertG,
THe bug is only for eg. when you have 2 languages in your site and one in virtuemart.
If you set  the shop language as your joomla site, you don't  have the problem with the modal in false language.
If you set the config as i wrote, then you have a redirection in joomla depending you current language, and the modal is in the right language.
Simply make a real multilanguage shop(en+fr) or change the setting as i explained and normally the bug is solved.

RobertG

Non, le site en 3.4.1 a une configuration 5 langues Joomla! et les mêmes 5 langues VM, même si les exemples ne sont pas traduits (tous en anglais donc), les tables de toutes les langues étant remplies avec la version démo anglaise.
En version 3.3.6, le pop-up utilise parfaitement la langue sélectionnée, en 3.4.0 et 3.4.1 et même maintenant en 3.4.2dev, c'est systématiquement la langue par défaut du site qui est utilisée, et non celle choisie par le visiteur.

No, the 3.4.1 site has a 5 Joomla! languages and same 5 languages in VM, though the examples are not translated (all in English), tables of all languages being filled with the English demo version.
In version 3.3.6, the pop-up perfectly uses the selected language, but in 3.4.0 and 3.4.1 and even now 3.4.2dev the default language of the site is always used, not the one chosen by the visitor.

prokops

My shop also have 5 joomla languages and 5 virtuemart languages. Am I correct to read that it will work for me if I downgrade to VM 3.3.6 ? And is that possible by just simply upload the 3.3.6 version ?

Cheers, prokop

RobertG

I don't think you can downgrade to 3.3.6 because database as not the same schema.

There are two test sites using VM 3.0.7.4, both with french default site language: