XOOPS RMCommon Utilities
2.1.8.91RC
|
Go to the source code of this file.
Functions | |
__ ($text, $domain='rmcommon') | |
_e ($text, $domain='rmcommon') | |
get_locale () | |
load_locale_file ($domain, $file) | |
load_mod_locale ($domain, $prefix='') | |
load_plugin_locale ($plugin, $prefix='', $module='rmcommon') | |
load_theme_locale ($theme, $prefix='', $gui=false) | |
translate ($text, $domain= 'system') | |
__ | ( | $text, | |
$domain = 'rmcommon' |
|||
) |
Translate a text and print it
string | Text to translate |
string | Domain name. Here you must specify the app name (eg. system), or plugin name (eg. rss) or theme Name. The teme name must be specified with prefix "theme_". eg. "theme_exm" or "theme_simplex" |
Definition at line 150 of file l10n.php.
References translate().
Referenced by RMFlashUploader\__construct(), activate_rm_plugin(), activate_users(), ajax_update_details(), category_status(), RMHtaccess\checkHealth(), RMFunctions\comments_form(), configure_block(), configure_rm_plugin(), RMFunctions\create_toolbar(), Twop6Functions\currentModuleMenu(), DesigniaFunctions\currentModuleMenu(), RMTimeFormatter\days(), delete_blocks(), delete_category(), delete_comments(), delete_image(), delete_positions(), delete_users(), download_file(), download_for_later(), edit_comment(), edit_image(), RMTimeFormatter\format(), RMUtilities\formatBytesSize(), RMFunctions\get_comments(), get_file_now(), RMFunctions\get_groups_names(), RMInternalBlock\getOptions(), RMUtilities\image_manager(), images_form(), insertBlock(), install_rm_plugin(), load_modules_page(), module_disable_now(), module_install(), module_install_now(), module_rename(), module_uninstall_now(), module_update_now(), DesigniaFunctions\moduleMenu(), Twop6Functions\moduleMenu(), RMTimeFormatter\months(), new_category(), RMFormDate\render(), RMFormUser\render(), RMFormTextOptions\render(), RMPageNav\render(), RMFormModules\render(), RMForm\renderForTemplate(), resize_images(), rm_change_theme(), rmc_available_mods(), rmc_bkcomments_edit(), rmc_bkcomments_show(), save_block_config(), save_block_order(), save_block_position(), save_category(), save_comment(), save_data(), save_position(), save_settings_rm_plugin(), send_mail(), set_comments_status(), RMTemplate\set_help(), show_available_updates(), show_comments(), show_dashboard(), show_images(), show_mailer(), show_modules_list(), show_rm_blocks(), show_rss_content(), show_rss_options(), show_users(), toggle_visibility(), uninstall_rm_plugin(), update_image(), update_rm_plugin(), user_form(), and xoops_module_update().
_e | ( | $text, | |
$domain = 'rmcommon' |
|||
) |
Translate a text and print it
string | Text to translate |
string | Domain name. Here you must specify the app name (eg. system), or plugin name (eg. rss) or theme Name. The teme name must be specified with prefix "theme_". eg. "theme_exm" or "theme_simplex" |
Definition at line 139 of file l10n.php.
References translate().
Referenced by load_modules_page(), and rmc_available_mods().
get_locale | ( | ) |
EXM System API for i10n
This API provides support for internationalization for components of EXM System. Provides a method to get the current locale If does not exists a locale then returns en_US
Definition at line 16 of file l10n.php.
References RMEvents\get(), and RMCLANG.
Referenced by load_mod_locale(), load_plugin_locale(), and load_theme_locale().
load_locale_file | ( | $domain, | |
$file | |||
) |
Load the language files content in a single object and order these files by domain. The domain must be unique for each element. By example: Application MyWords can have "mywords" as domain. Domains 'global' and 'system' are reserved by EXM System and could not be used by other elements.
string | $domain | Unique identifier for this file |
string | Local path to file |
Definition at line 45 of file l10n.php.
References $file.
Referenced by load_mod_locale(), load_plugin_locale(), and load_theme_locale().
load_mod_locale | ( | $domain, | |
$prefix = '' |
|||
) |
Read the MO file for a specific domain
This function must be called from every application to load the respective language file (mo file)
string | Unique identifier for language file |
string | prefix for file name |
Definition at line 76 of file l10n.php.
References $path, get_locale(), and load_locale_file().
Referenced by RMInternalBlock\buildBlock(), and RMBlocksFunctions\get_available_list().
load_plugin_locale | ( | $plugin, | |
$prefix = '' , |
|||
$module = 'rmcommon' |
|||
) |
Read a MO file for translate a plugin
Definition at line 90 of file l10n.php.
References $path, get_locale(), and load_locale_file().
Referenced by RMInternalBlock\buildBlock(), and main_rm_plugin().
load_theme_locale | ( | $theme, | |
$prefix = '' , |
|||
$gui = false |
|||
) |
Read the locale string for a theme
string | Theme name |
string | Prefix for file |
bool | True for admin section, false for front section |
Definition at line 107 of file l10n.php.
References $path, get_locale(), load_locale_file(), and RMCPATH.
translate | ( | $text, | |
$domain = 'system' |
|||
) |
Allows to translate string from exm system elements
Definition at line 122 of file l10n.php.
References RMEvents\get().