From 44586f3c379192382f2c40d0d53584fbaac5536b Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 15 Sep 2011 15:14:54 +0800 Subject: [PATCH] I18n.php --- I18n.php | 9 +++++++++ 1 file changed, 9 insertions(+) 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'; -- 2.39.2