Pluf Framework

Pluf Framework Commit Details


Date:2010-02-09 02:42:04 (14 years 10 months ago)
Author:Loic d'Anterroches
Branch:develop, master
Commit:b4abca849de9341052b9e7badd84d00be8b5ec3f
Parents: 184787dad4902a7b4dc7e43293b950f4e056b058
Message:Added change of LC_TIME when switching locale to get date translations.

Changes:

File differences

src/Pluf/Translation.php
5555
5656
5757
58
59
60
61
5862
5963
6064
public static function loadSetLocale($lang)
{
$GLOBALS['_PX_current_locale'] = $lang;
setlocale(LC_TIME, array($lang,
$lang.'_'.strtoupper($lang),
$lang.'.UTF-8',
$lang.'_'.strtoupper($lang).'.UTF-8'));
if (isset($GLOBALS['_PX_locale'][$lang])) {
return; // We consider that it was already loaded.
}

Archive Download the corresponding diff file

Branches

Tags

Number of commits:
Page rendered in 0.05596s using 13 queries.