function i18nstrings_params in Internationalization 6
Get message parameters from context and string.
2 calls to i18nstrings_params()
- i18nstrings_remove in i18nstrings/
i18nstrings.module - Remove source and translations for user defined string.
- i18nstrings_update in i18nstrings/
i18nstrings.module - Update / create translation source for user defined strings.
File
- i18nstrings/
i18nstrings.module, line 790 - Internationalization (i18n) package - translatable strings.
Code
function i18nstrings_params($context, $string = NULL) {
if (!empty($context)) {
return array(
'%location' => i18nstrings_location($context),
'%textgroup' => isset($context->textgroup) ? $context->textgroup : '',
'%string' => !empty($string) ? $string : t('[empty string]'),
);
}
}