Jump to content

Recommended Posts

Posted

Hello everyone!

I had an error related to "C" locale which told me to translate "C" locale settings. Where can I find this "C" locale in admin for translating it? I can't find it anywhere.

Posted

You can configure your locale, according to your server settings, inside site/config.php like this:

setlocale(LC_ALL, 'it_IT.UTF-8'); // where 'it_IT.UTF-8' is MY locale setting.

You can find a list of all locales here on Stack Overflow

  • Like 2
Posted

@3fingers, thank you for your answer! Unfortunately, I have a multi-language and the locale should not be hard-coded in site/config.php. Maybe there is a way to define locale from user current settings? I've thought that I somehow need "C" for this purpose.

Posted

You can translate your "C" inside admin translation files, the right one is:

wire--modules--languagesupport--languagesupport-module

for each language you can define the setting there.

More on setlocale here, if you want to set it via api: Docs

  • Like 1
  • Thanks 1

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...