Hi!
I know this is probably a question for the plugin devs but my account has expired, and yes: I´m a bit cheap :-). So I´ll try a question here first.
It´s the Virtueplanet one page checkout plugin that started showing english field labels on first name, last name, adress and so on (site runs in swedish). And this happened when I updated VM and joomla to latest versions. J 2.5.22 and VM 2.6.6.
The weird thing is that I run two different sites with the same version of plugin, joomla and VM and on the other site the language in the checkout still is in swedish as it should.
I really have tried to look over all the settings in backend and that the same language overrides are in use and so on. But still the first site shows english labels in checkout.
The difference is that the sites run different templates and are hosted on different services. But it cannot be the template since the problem is still there if I switch too Beez.
Feels like I am missing something simple and basic here. Frustrating.
Thanks for any input!
You will probably need to update it as the lang files are now stored differently in the 2.6.x series as a perlude to doing it the recommended joomla 3 way..
lang files are now in the component as before they were in the /language/ folders - you may be able to hack the plug to pull the correct files
turn on your joomla lang debug and you'll probably see where the plug is trying to load them from
Thanks for replying! When I turned on the lang debug it just showed info like ????COM_VIRTUEMART_SHOPPER_FORM_FIRST_NAME???? and so on. When I list those language keys in override it displays the correct swedish expressions. So it seems as if the plugin shows the correct language tags but fails to show the swedish translation which is there.
And as I said: my other site that I run has exaclty the same versions and has been updated in the same way and it shows the texts in swedish as it should.
you need to scroll down to the bottom with debug on where you can see sliders that open for language, session etc to see what is being loaded and what not
Aha! Now I see it being more useful :-)!
But I also found a quickfix: if i made the english virtuemart files inaccesable by renaming them in /languages/en-GB/ i got it working and the OPC shows swedish text where it should be. Works for me right now atleast since i dont need multilanguage.
But I still wonder why the plugin fails to load the swedish language if I have the english files there. I got joomla set to swedish in both front and backend
The problem is that joomla does not correctly load the files, so we have our own language loader (internally using the joomla one).
So the virtueplanet guys must just use the VmPlugin instead of the JPlugin. Or call our method manually "loadJLang"
The method checks first for the relative location, then for the absolute one. It does it also for the english Fallback.
Thanks for replying, Milbo. I got pretty much same answer from Virtueplanet. Their recent version of the plugin has been changed to address this. So while singing the 3rd party blues I'll have to pay for an account renewal and get the update