VirtueMart Forum

VirtueMart 2 + 3 + 4 => Language/Translations => Topic started by: bright on July 29, 2020, 07:26:30 AM

Title: AddtoCart Popup is always switched to german
Post by: bright on July 29, 2020, 07:26:30 AM
Hi

I have a big problem. i have created my shop in german. now i need english / french and italian. the articles appear in the respective language. so do the article details. but when i put an article into the shopping cart, the popup (addto cart) is always german and therefore the shopping cart is also german. this happens even without a popup. how is the language controlled here and what could be the problem?
thanks a lot for the feedback

Title: Re: AddtoCart Popup is always switched to german
Post by: Jörgen on July 29, 2020, 09:02:58 AM
VM version ?
Custom Template ?
Screenshot ?

Jörgen @ Kreativ Fotografi
Title: Re: AddtoCart Popup is always switched to german
Post by: bright on July 29, 2020, 10:13:36 AM
VirtueMart 3.4.5 10063

Template was first Yootheme with VMuikit
Now I changed to vmbreeze for test reasons and deactivated everything from VMuikit an all overwrites.
Title: Re: AddtoCart Popup is always switched to german
Post by: pinochico on July 29, 2020, 10:17:34 AM
How do you setup content language in joomla admin
Do you have all language table for VM in DB table
Which language is for this article (is multilanguage?)
Which URL can I test?
Title: Re: AddtoCart Popup is always switched to german
Post by: bright on July 29, 2020, 11:13:07 AM
I installed the languages over Erweiterungen / Verwalten / Installieren
All languages are installed
For this article I have de and en (only the article with EN in the title are "translated")
(The languages fr and it are for the moment not in the languagemodul (flags))

You can test in my klone Installation with the vmbeeze template under https://mausswitzerland.ch/klone6
Title: Re: AddtoCart Popup is always switched to german
Post by: Jörgen on July 29, 2020, 11:28:11 AM
Do You have menu items for cart in both languages ?
Do You have menu items for VM pages in both languages ?

When I test i always get English. I get the feeling it takes the language from the used browser, in my case English instead of German.

Jörgen
Title: Re: AddtoCart Popup is always switched to german
Post by: jjk on July 29, 2020, 11:38:50 AM
At a first glance it it looks to me like you have entered the german language descriptions into the english language VirtueMart database tables. Check that with phpmyadmin. On your live site I also don't see the VM language switcher modules. You will need one copy of the language switcher for each language.

Also, when I change from ...mausswitzerland.ch/en/shop to ...mausswitzerland.ch/de/shop, I see for example the same MAUS Xtin "Klein" EN.
Title: Re: AddtoCart Popup is always switched to german
Post by: bright on July 29, 2020, 12:37:13 PM
jjk

I have a the language switcher for all. Do you need one modul for each language?

the URL mausswitzerland.ch/de/shop is the aktiv page german not my klone and there ist the shop built with widgetkit (vmuikit) (This  know I have to change with multilanguages)

now I activated the template except the categorical view in the shop - please ignore the position
Title: Re: AddtoCart Popup is always switched to german
Post by: bright on July 29, 2020, 12:51:54 PM
the tables are io
But - I can see the table of de-CH -> first I installes Swiss-German - the I removed this an installed de-DE
Title: Re: AddtoCart Popup is always switched to german
Post by: Jörgen on July 29, 2020, 13:15:45 PM
I use only one language switcher module, but as I had problems with the original switcher I use the studio42 version. If the original module works without one version for each language is to me unknown.

Jörgen @ Kreativ Fotografi
Title: Re: AddtoCart Popup is always switched to german
Post by: bright on July 29, 2020, 13:29:25 PM
the switch to the other language works correctly. the other language is displayed correctly. Only with addtocart reset to German. Or does the switcher come into effect with every page change? 
Title: Re: AddtoCart Popup is always switched to german
Post by: Jörgen on July 29, 2020, 13:51:35 PM
Try to switch off sef and see what You get.

Jörgen
Title: Re: AddtoCart Popup is always switched to german
Post by: bright on July 29, 2020, 15:16:26 PM
switch off sef ? what do you meen?
Title: Re: AddtoCart Popup is always switched to german
Post by: bright on July 29, 2020, 15:34:20 PM
without SEO articles are not translated at all.... only text from the language files is translated... strange...
Title: Re: AddtoCart Popup is always switched to german
Post by: Jörgen on July 29, 2020, 16:04:21 PM
This should be the "safe" way to test.
Check that you have translations in english in Your product description.

Jörgen
Title: Re: AddtoCart Popup is always switched to german
Post by: bright on July 29, 2020, 16:13:01 PM
Yes I have - but now not even the shopping cart of the homepage is translated (only for the homepage)
Title: Re: AddtoCart Popup is always switched to german
Post by: Jörgen on July 29, 2020, 16:38:52 PM
Time to turn on Joomla language debug and see what happens.
System->Global settings

Jörgen
Title: Re: AddtoCart Popup is always switched to german
Post by: bright on July 29, 2020, 16:55:10 PM
No translated content / see appendix
by the way: i'm incredibly happy to get an input from somewhere and hope not to have to rebuild the whole site - thank you
Title: Re: AddtoCart Popup is always switched to german
Post by: bright on July 29, 2020, 17:39:50 PM
which function allows me to cleanly remove the whole VM (including tables) without affecting the rest of the page. I don't want to recreate the whole page in the original.
Title: Re: AddtoCart Popup is always switched to german
Post by: jjk on July 29, 2020, 18:15:54 PM
Usually  the button "Alle Tabellen zurücksetzen und neue installieren" is safe, but don't do anything with the database without a backup of the complete site. And I would suggest to export the database from within phpmyadmin, too. It's just a few mouse clicks to import the database again in case you accidentally mess it up.

As I mentioned earlier, it seems that you have German product descriptions in the English VM database tables. If you look at the source code of your shop pages, you will see that they all load with the en-GB language tag. It's possible to correct it without having to rebuild the site, but we need to locate the exact source of the problem first.

In VM configuration I would temporarily remove the checkmark from 'Nicht übersetzte Programmtexte in Englisch anzeigen'. Makes it easier to see if the language switch works.

Another check you can do is to go to 'Extensions' - 'Module Manager' - switch from 'site' to 'administrator' in the filter dropdown list and publish 'Multilingual Status'. Thereafter you can click on 'Multilanguage Status' in the status bar. If everything is green on the status page, your Joomla multilanguage setup should be correct and you can unpubilish the 'Multilingual Status' module again. If something is red, you should solve that problem first.
Title: Re: AddtoCart Popup is always switched to german
Post by: bright on July 29, 2020, 21:58:25 PM
i have noticed that the default language of joomla (extensions/languages) is always used for arikel in the category layout and "addtocart" and cart. this is also the case after uninstalling the virtuemarts and reinstalling - i will probably have to rebuild the whole site

does anyone have any idea what the problem might be?
Title: Re: AddtoCart Popup is always switched to german
Post by: pinochico on July 29, 2020, 22:54:29 PM
Without login to admin and phpmyadmin?

No :)
Title: Re: AddtoCart Popup is always switched to german
Post by: Jörgen on July 30, 2020, 07:02:00 AM
Check multilanguage status as jjk said.
If something is wrong, fix or report.
Unpublish extensions that may cause trouble, especially free extensions that has not been updated for a long time.

Jörgen
Title: Re: AddtoCart Popup is always switched to german
Post by: GJC Web Design on July 30, 2020, 08:47:08 AM
If as I suspect you have filled in all the English VM fields in German then all VM messages and labels will be in English

I assume u have installed VM German files?

Then u need to switch to German in the VM lang config and copy all the VM en-gb tables in the DB to the new ( empty?) de-de tables
Title: Re: AddtoCart Popup is always switched to german
Post by: Jumbo! on July 30, 2020, 08:54:07 AM
I think there is a 3rd party plugin installed in your site which is creating the issue.  Try by disabling the 3rd party system plugins one by one.

For better understanding see the "lang" attribute in the html tag of German language. It is always lang="en-gb" irrespective to the language you select.
Title: Re: AddtoCart Popup is always switched to german
Post by: bright on July 30, 2020, 10:54:51 AM
I got it. The Virtuemart system plugin "Widgetkit Virtuemart" caused the error. WOW - Thank you all for your support! You are great!
And... Jumbo! You are my salvation!

Tausend DANK!
Title: Re: AddtoCart Popup is always switched to german
Post by: Jumbo! on July 30, 2020, 13:01:33 PM
Quote from: bright on July 30, 2020, 10:54:51 AM
I got it. The Virtuemart system plugin "Widgetkit Virtuemart" caused the error. WOW - Thank you all for your support! You are great!
And... Jumbo! You are my salvation!

Tausend DANK!

You are welcome. :)