Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on use of Locales #18

Closed
LindolfoJunior opened this issue Apr 27, 2018 · 1 comment
Closed

Error on use of Locales #18

LindolfoJunior opened this issue Apr 27, 2018 · 1 comment

Comments

@LindolfoJunior
Copy link

Hi!

I'm trying to use locales but its not working.

I have place the file in /locales/pt_br and its wont show on Users Preferences.

What i have to do?

Below screenshoot

Locales:
locales

User Preferences:
user preferences

@ajdonnison
Copy link
Contributor

You need to have a language descriptor file in that pt_br directory called lang.php, the one in en explains how it is laid out:

<?php
// Entries in the LANGUAGES array are elements that describe the
// countries and language variants supported by this locale pack.
// Elements are keyed by the ISO 2 character language code in lowercase
// followed by an underscore and the 2 character country code in Uppercase.
// Each array element has 4 parts:
// 1. Directory name of locale directory
// 2. English name of language
// 3. Name of language in that language
// 4. Microsoft locale code

$dir = basename(dirname(__FILE__));

$LANGUAGES['en_AU'] = array ($dir, 'English (Aus)', 'English (Aus)', 'ena');
$LANGUAGES['en_CA'] = array ($dir, 'English (Can)', 'English (Can)', 'enc');
$LANGUAGES['en_GB'] = array ($dir, 'English (GB)', 'English (GB)', 'eng');
$LANGUAGES['en_NZ'] = array ($dir, 'English (NZ)', 'English (NZ)', 'enz');
$LANGUAGES['en_US'] = array ($dir, 'English (US)', 'English (US)', 'enu', 'ISO8859-15');
?>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants