How Can We Change The Default Language?

Hi,

Is possible to change the Default Language of the website?

Thanks

Hello!

Hi,

Is possible to change the Default Language of the website?

Thanks


You can choose the default language for the administration panel and for the storefront on the Settings > Appearance page in the administration panel:


If you mean something else, please, clarify.

Best regards,

@Cart-Power : Many thanks for your reply.

Yes sure, i know about this option from the settings. But it's not solving our problem.

Let me explain please:

- In our website we have two languages: English (the default since we install the cs-cart) and Arabic

- Let's say that our main domain is: www.abc.com

- After enabling the default SEO addon we have two domains:

www.abc.com/en/

www.abc.com/ar/

- If the visitor enters the main domain "www.abc.com" he will be redirected to "www.abc.com/en/"

- Our goal is if the visitor enters "www.abc.com" he should go to "www.abc.com/ar/" instead

- I have already tried the solution you suggested but it's not working for us. Still "www.abc.com" goes to "www.abc.com/en/"

In seo settings there is an option to have language in the url.

In seo settings there is an option to have language in the url.

Yes correct .. we already set that .. that is why we have two urls:

www.abc.com/en/

www.abc.com/ar/

If the selected language is not stored in the session, CS-Cart defines language by browser language. So it should work like described out of the box

If the selected language is not store in the session, CS-Cart defines language by browser language. So it should work like described out of the box

But what if the language is not stored in the session and we selected a language as a default language from the appearance settings.

- For example: when we put the domain www.abc.com in Google Search Console to be crawled and indexed , which index will be crawled: (no session here)

www.abc.com/en/ or www.abc.com/ar/?

So you want Arabic to be your default language? If so, change the default in Administration->Languages->Manage langauges.

So you want Arabic to be your default language? If so, change the default in Administration->Languages->Manage langauges.

And then ? Sorry but I can not find from where to set the default language ?

And then ? Sorry but I can not find from where to set the default language ?

The first language in the list at Administration->Languages->Manage langauges is the default language. You need to edit it with the default language that you want.

But what if the language is not stored in the session and we selected a language as a default language from the appearance settings.

- For example: when we put the domain www.abc.com in Google Search Console to be crawled and indexed , which index will be crawled: (no session here)

www.abc.com/en/ or www.abc.com/ar/?

CS-Cart checks the following (sorted by priority)

- language parameter in the URL

- language in the session

- browser language

- default setting

CS-Cart checks the following (sorted by priority)

- language parameter in the URL

- language in the session

- browser language

- default setting

How to make Google and all other SEs index only URLs with sl=xx appended, as they are present in the sitemap? and ban in robots.txt all urls that do not contain that suffix?

If this is done then redirecting the visitor to any language-specific domain or subdomain is easy-peasy.

I hope @Jamalla has resolved his issue

If not, another solution might be to ask any new visitor to select his/her language before going to the site. I don't know how to do it, but this is the logical thing to be done.

Put that in robots.txt

User-agent: *
Allow: /$
Allow: /*sl=en$
Allow: /*sl=ru$
Allow: /*sl=de$
Disallow: /

How to make Google and all other SEs index only URLs with sl=xx appended, as they are present in the sitemap? and ban in robots.txt all urls that do not contain that suffix?

If this is done then redirecting the visitor to any language-specific domain or subdomain is easy-peasy.

I hope @Jamalla has resolved his issue

If not, another solution might be to ask any new visitor to select his/her language before going to the site. I don't know how to do it, but this is the logical thing to be done.

Hi Imago ..

No we did not .. :)

Hi Imago ..

No we did not .. :)

If you have one installation of CS-Cart and just use the language param in the URL as set in the SEO addon, then you have no worries at all because ... see the priority list posted by @eComLabs

Still, if this default prioritization doesn't work for you, install some GeoIP solution - there is now a promotion on GeoIP Languages here

https://www.webgraphiq.com/geoip-languages-v4.html

But if these are two separate folders of sub-domains, or parked domains, then the GeoIP will work only on one of them.

Just bought it and know for sure.