function i18n_string_text in Internationalization 7
Get filtered translation.
This function is intended to return translations for strings that have a text format
Parameters
$name: Array or string concatenated with ':' that contains textgroup and string context
$default: Default string to return if not found, already filtered
$options: Array with additional options.
2 calls to i18n_string_text()
- i18n_block_translate_block in i18n_block/
i18n_block.module - Translate block.
- i18n_taxonomy_tokens in i18n_taxonomy/
i18n_taxonomy.tokens.inc - Implements hook_tokens().
File
- i18n_string/
i18n_string.module, line 734 - Internationalization (i18n) package - translatable strings.
Code
function i18n_string_text($name, $default, $options = array()) {
$options += array(
'format' => filter_fallback_format(),
'sanitize' => TRUE,
);
return i18n_string_translate($name, $default, $options);
}