9 require
RMCPATH.
'/class/gettext/gettext.php';
10 require
RMCPATH.
'/class/gettext/streams.php';
19 if (isset($exm_locale) && $exm_locale!=
'')
20 return RMEvents::get()->run_event(
'rmcommon.get_locale', $exm_locale);
24 if (defined(
'RMCLANG'))
28 $exm_locale =
'en_US';
31 $exm_locale =
RMEvents::get()->run_event(
'rmcommon.get_locale', $exm_locale);
48 if(isset($l10n[$domain]))
51 if ( is_readable(
$file))
58 if (isset($l10n[$domain])) {
59 $l10n[$domain]->load_tables();
60 $gettext->load_tables();
61 $l10n[$domain]->cache_translations = array_merge($gettext->cache_translations, $l10n[$domain]->cache_translations);
63 $l10n[$domain] = $gettext;
65 unset($input, $gettext);
82 $path = XOOPS_ROOT_PATH.
'/modules/'.$domain.
'/lang/'.$prefix.$exm_locale.
'.mo';
93 if ($plugin==
'')
return;
95 $path = XOOPS_ROOT_PATH.
'/modules/'.$module.
'/plugins/'.$plugin.
'/lang/'.$prefix.$exm_locale.
'.mo';
109 if ($theme==
'')
return;
112 $path =
RMCPATH.
'/themes/'.$theme.
'/lang/'.$prefix.$exm_locale.
'.mo';
114 $path = XOOPS_THEME_PATH.
'/'.$theme.
'/lang/'.$prefix.$exm_locale.
'.mo';
125 if (isset($l10n[$domain])){
126 return RMEvents::get()->run_event(
'rmcommon.get_locale_text', $l10n[$domain]->
translate($text), $text, $domain);
128 return RMEvents::get()->run_event(
'rmcommon.get_locale_text', $text, $text, $domain);
139 function _e($text, $domain=
'rmcommon'){
150 function __($text, $domain=
'rmcommon'){