<?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); } ?> <title><?php echo $tileSet->getTitle(); ?> </title>
/** * Setup code for gettext translation * Returns the result of the setlocale call * * @param string $override force locale to this * @return mixed */ function setupCurrentLocale($override = NULL) { if (is_null($override)) { $locale = getOption('locale'); } else { $locale = $override; } if (getOption('disallow_' . $locale)) { if (DEBUG_LOCALE) { debugLogBacktrace("setupCurrentLocale({$override}): {$locale} denied by option."); } $locale = getOption('locale'); if (empty($locale) || getOption('disallow_' . $locale)) { $languages = generateLanguageList(); $locale = array_shift($languages); } } // gettext setup @putenv("LANG={$locale}"); // Windows ??? @putenv("LANGUAGE={$locale}"); // Windows ??? $result = i18nSetLocale($locale); if (!$result) { if (isset($_REQUEST['locale']) || is_null($override)) { // and it was chosen via locale if (isset($_REQUEST['oldlocale'])) { $locale = sanitize($_REQUEST['oldlocale'], 3); setOption('locale', $locale, false); zp_clearCookie('dynamic_locale'); } } } if (DEBUG_LOCALE) { debugLogBacktrace("setupCurrentLocale({$override}): locale={$locale}, \$result={$result}"); } setupDomain(); return $result; }
/** * @deprecated * @since 1.4.6 * */ function setThemeDomain($themedomain) { deprecated_functions::notify(gettext('use setupDomain()')); return setupDomain($themedomain, "theme"); }