예제 #1
0
/**
* Read the locale string for a theme
* @param string Theme name
* @param string Prefix for file
* @param bool True for admin section, false for front section
*/
function load_theme_locale($theme, $prefix = '')
{
    $exm_locale = get_locale();
    if ($theme == '') {
        return;
    }
    $path = XOOPS_THEME_PATH . '/' . $theme . '/lang/' . $prefix . $exm_locale . '.mo';
    load_locale_file($prefix . $theme, $path);
}
예제 #2
0
/**
* Read the locale string for a theme
* @param string Theme name
* @param string Prefix for file
* @param bool True for admin section, false for front section
*/
function load_theme_locale($theme, $prefix = '', $gui = false)
{
    $exm_locale = get_locale();
    if ($theme == '') {
        return;
    }
    if ($gui) {
        $path = RMCPATH . '/themes/' . $theme . '/lang/' . $prefix . $exm_locale . '.mo';
    } else {
        $path = XOOPS_THEME_PATH . '/' . $theme . '/lang/' . $prefix . $exm_locale . '.mo';
    }
    load_locale_file($prefix . $theme, $path);
}