fritz Developer Depuis Italy Membre depuis avr. 2019 fritz 19 nov. 2024 12:41 I am testing my new site version with Litecart 2.6 and am currently running some tests with my mobile phone (Android 14) to see if the site responds in the correct language. My Litecart shop is set up in three languages, but when I set Chrome for Andoid (v. 131.0.6778.39) to German or English, the homepage is still suggested in Italian. Why? https://rausch.it -> Litecart 2.6.0 with custom template
tim Founder Depuis Sweden Membre depuis mai 2013 tim 19 nov. 2024 14:36 What URL types did you set for your languages? This is the chain of processes for detection: https://github.com/litecart/litecart/blob/2.6.0/public_html/includes/library/lib_language.inc.php#L137-L213
fritz Developer Depuis Italy Membre depuis avr. 2019 fritz 19 nov. 2024 16:45 Thanks Tim for your quick reply! I have not set anything about it. I am attaching the screenshots here.
tim Founder Depuis Sweden Membre depuis mai 2013 tim 19 nov. 2024 17:16 So because Italian is set to None it will be the default one matched rausch.it. Removing this behavior Google could index english for root /. Set it to Path Prefix /it/ or assign english to a different domain for no identification conflicts.
fritz Developer Depuis Italy Membre depuis avr. 2019 fritz 19 nov. 2024 17:48 Sorry, but I can't follow you on this setting; I don't understand the setting logic well. If I set the Italian language like the other two languages, wouldn't it be better to just add "Path Prefix"? The English language would remain as the main language (It would probably be even better for SEO). In any case, if the automatic language detection works, an Italian browser would respond with the correct language. Or not? Please, can you explain this setting better?
fritz Developer Depuis Italy Membre depuis avr. 2019 fritz 19 nov. 2024 19:54 I set English as the primary main language and the other two (Italian and German) as secondary (Path Prefix). Even in this way the automatic language selection (browser language recognition) does not work. I attach the screenshots of the settings.
tim Founder Depuis Sweden Membre depuis mai 2013 tim 21 nov. 2024 04:25 With this setting english should be identified if loading a root URL without a language prefixed in the path. If you still don't see English then it's possibly an error. Make sure you do your tests in incognito mode where you don't have any cookies stored.
fritz Developer Depuis Italy Membre depuis avr. 2019 fritz 21 nov. 2024 07:50 I would like to point out that the three languages must be activated and I need them to work. I have done some more tests and changed the language settings for the umpteenth time. Now all three languages are set this way and English is the primary one: 1 rausch.it/en (Set as default language - Set as store language) 2 rausch.it/it 3 rausch.it/de I used BitDefender VPN with an IP from Germany and set Chrome to German on Android and Windows 10. On both, I always cleared the cache several times before accessing my website. The language of the site is set to English (see third screenshot). I think there is something wrong with my custom template as I can't think of what else would force something like this.
tim Founder Depuis Sweden Membre depuis mai 2013 tim 21 nov. 2024 16:57 Is the problem now that it identifies english for your german browser?
fritz Developer Depuis Italy Membre depuis avr. 2019 fritz 21 nov. 2024 18:01 My browser is installed on an Italian operating system on both Win10 and Android phone. Try it with your operating system that is surely in English; do some checks and see if my site responds in Italian. If not, then the recognition is at the operating system level and not the browser. But I don't believe it. As soon as I can, I'll have some friends who work abroad do some tests in other languages.
tim Founder Depuis Sweden Membre depuis mai 2013 tim 22 nov. 2024 01:58 Here is a script to find out. Put it in the root directory and call it by it's name. whoami.php
fritz Developer Depuis Italy Membre depuis avr. 2019 fritz 22 nov. 2024 07:27 I loaded it and immediately tried it with Chrome 131 on Android 14. The response from your script is always the same: "Detected it identified by already selected language."
tim Founder Depuis Sweden Membre depuis mai 2013 tim 22 nov. 2024 14:42 I tried your URL and got the same Detected it identified by already selected language I can have a look and troubleshoot if you like to create a support ticket. You are entitled to create a support ticket. Click here to begin.
fritz Developer Depuis Italy Membre depuis avr. 2019 fritz 22 nov. 2024 15:54 Your ticket-interface asks me for fields that I can't fill in using cPanel management. Can I send you the credentials via email?
tim Founder Depuis Sweden Membre depuis mai 2013 tim 22 nov. 2024 16:58 Sure that works, send it to support (at) litecart.net.