本文整理匯總了PHP中ThemeUtil::getUserLocale方法的典型用法代碼示例。如果您正苦於以下問題:PHP ThemeUtil::getUserLocale方法的具體用法?PHP ThemeUtil::getUserLocale怎麽用?PHP ThemeUtil::getUserLocale使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ThemeUtil
的用法示例。
在下文中一共展示了ThemeUtil::getUserLocale方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: define
<?php
} else {
?>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8">
<?php
}
?>
<?php
define('DEPLOY', 1);
//change value to disable scripts merging
//define('PACK', 0); //packing scripts is not functional yet (buggy)
//setlocale: this shouldn't be necessary
//this should be taken care of by setThemeDomain
//obviously we're doing something wrong here
$locale = ThemeUtil::getUserLocale();
$encoding = "iso-8859-1";
//"utf-8"
setlocale(LC_ALL, $locale . '.' . $encoding, $locale);
setupDomain("zinenaboxpacity", 'theme');
$siteName = 'Fading Away';
$themeName = '[Zinenaboxpacity]';
require_once 'resources/utils/merge.php';
require_once "theme_functions.php";
require_once "TileSet.php";
$tileSet = TileSet::get();
if (!isset($tileSet)) {
$tileSet = TileSet::init(null, null);
}
?>