Failed setting locale after installation

Merchant
Fra Germany
Medlem siden

Hello,
I have just installed Litecart via Softaculous. The installed languages are German and English. When I want to make German the shop and default language, I get the following error message:

Warning: Failed setting locale de_DE.utf8,de_DE.UTF-8,german for de in ~/includes/library/lib_language.inc.php (Line 121)

Another error message is:

de_DE.utf8,de_DE.UTF-8,german is not a valid system locale on this machine.

The website is running on a webhosting. Can I as a user change something myself, or does the provider have to do it?

Jorge

PS:
Apart from these small teething troubles (for me) a really wonderful software script.

Designer
Fra Turkey
Medlem siden

Hi Jorge.
This is about you server configuration. i don't know what kind of machine you are running but there are several ways to solve this. if you have root access you can run a command and list which languages your machine has. İf german not listed that means its disabled or not installed on your machine.

Generaly the machines includes it but deactivated by default. You should check the configuration file and uncomment for german languages which one includes your locale codes. After that you can generate german language for machine again. This an advanced but simple process.

If you don't have Terminal access, ask for help your hosting provider.

tim
Founder
Fra Sweden
Medlem siden
tim

I had cases where some machines only wanted to take the locale one by one instead of comma separation. Try "de_DE.utf8".

On Linux you can list installed locales with the Terminal command "locale -a".

This article should be helpful:
https://www.litecart.net/wiki/system_locale

Merchant
Fra Germany
Medlem siden

Hello,

many thanks to @tim and @alins!
My provider finally managed to install the locales file for Germany that was missing on the server yesterday.
Now we can continue :-)
Jorge

Du
This website uses no cookies and no third party tracking technology. We think we can do better than others and really think about your privacy.