From: Alan Knowles Date: Thu, 15 Sep 2011 07:14:54 +0000 (+0800) Subject: I18n.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=44586f3c379192382f2c40d0d53584fbaac5536b I18n.php --- diff --git a/I18n.php b/I18n.php index 89f1c225..b2d47d49 100644 --- a/I18n.php +++ b/I18n.php @@ -178,9 +178,18 @@ class Pman_Core_I18N extends Pman return '??'; } $lang = !$au || empty($au->lang ) ? 'en' : is_string($au) ? $au : $au->lang; + + + + + + $lbits = explode('_', strtoupper($lang)); $lang = $lbits[0]; + + + if (!isset($cache[$lang])) { require_once 'I18Nv2/Country.php'; require_once 'I18Nv2/Language.php';