Jump to content

Recommended Posts

Posted

I have just published my first PW multi-lingual site.

I'm not understanding the following message and the server locale function

 Warning: your server locale is undefined and may cause issues. Please translate the “C” locale setting for each language to the proper locale in /wire/modules/LanguageSupport/LanguageSupport.module (shortcuts provided below):
• English
• Français
• Deutsch
• Español
• Italiano
For example, the locale setting for US English might be: en_US.UTF-8

Is it just a case to populate each languages "C" field with an appropriate string? IE

English C field: en.UTF-8
Francais C fieldn: fr_FR.UTF-8

Deutsh C field: en.UTF-8
Espanol C field: es_ES.UTF-8
Italiano C field: it_IT.UTF-8

Posted

Lots of info and links about how to handle this - there is more than one approach, so worth reading so you get a better understanding of what is going on:

 

  • Like 1
Posted

To get the correct locales for YOUR server (each server might use different ones) just use the below code.

<pre><?php passthru("locale -a"); ?></pre>

It will show you a list with all locales installed on your server.

  • Like 3
Posted

Thanks guys. I understand the context now and have fixed the issue.

Interestingly a list of UNIX server locales I found online were different than the ones installed on my VPS so that was something to be aware of. 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...