function i18n_string_plain in Internationalization 7
Translation for plain string. In case it finds a translation it applies check_plain() to it
Parameters
$name: Array or string concatenated with ':' that contains textgroup and string context
$default: Default string to return if not found
$options: Array with additional options
2 calls to i18n_string_plain()
- i18n_block_translate_block in i18n_block/
i18n_block.module - Translate block.
- i18n_menu_block_view_alter in i18n_menu/
i18n_menu.module - Implements hook_block_view().
File
- i18n_string/
i18n_string.module, line 749 - Internationalization (i18n) package - translatable strings.
Code
function i18n_string_plain($name, $default, $options = array()) {
$options += array(
'filter' => 'check_plain',
);
return i18n_string_translate($name, $default, $options);
}