← Back to team overview

mahara-contributors team mailing list archive

[Bug 597097] Re: langconfig needs a new command to display names correctly

 

On master I am moving locales to a string in langconfig.php, because we
want to remove all php code out of the language packs.  setlocale will
be called on every request, the first time the current user language is
retrieved. Langpacks for master should therefore define the 'locales'
string in langconfig.php (comma-separated list) instead of calling
setlocale directly, e.g.

  $string['locales'] = 'en_US.utf8,en_GB.utf8,en';

I've tested this using the German language pack with the de_DE.utf8
locale installed on my server, and

  $string['locales'] = 'de_DE.utf8';

in langconfig.php, and it's showing the German month names correctly.
It would be nice to make the locale a user preference, but I think
that's overkill for what we need at the moment.

-- 
langconfig needs a new command to display names correctly
https://bugs.launchpad.net/bugs/597097
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.

Status in Mahara ePortfolio: New

Bug description:
Hi,

using the german langpack I noticed that the month names are not displayed in German letters.

Example: in groups te joinded date shows 4. may   

Penny showed me to insert a line in the langconfig.php file, but it should be handled better.

setlocale (LC_ALL, 'de_DE.utf8');





References