Pluf Framework

Pluf Framework Commit Details


Date:2011-03-10 03:44:28 (13 years 9 months ago)
Author:Baptiste Durand-Bret
Branch:develop, master
Commit:0b090e2a673e1037011848655f2f6b2c01fa9cb6
Parents: cdd0c69102fb4b2ba068c100f10f2518f8eeaa2a
Message:Always force UTF-8 locales to be loaded for specific languages (closes issue 457)

Changes:

File differences

src/Pluf/Translation.php
5555
5656
5757
58
59
60
58
6159
6260
6361
public static function loadSetLocale($lang)
{
$GLOBALS['_PX_current_locale'] = $lang;
setlocale(LC_TIME, array($lang,
$lang.'_'.strtoupper($lang),
$lang.'.UTF-8',
setlocale(LC_TIME, array($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.06745s using 14 queries.