hi all.
i have a module that supply a text input to the user and now i'd like to expose that string to the i18n module.
i read some documentation but it is still a little bit unclear to me.
i tried to implement hook_i18n_string_info() and now i see my custom group in config/regional/translate/i18n_string.
function my_module_i18n_string_info() {
$groups['global_filter'] = array(
'title' => t('My module'),
'description' => t('My module labels.'),
'format' => FALSE,
'list' => TRUE
);
return $groups;
}
then i guess i have to implement hook_i18n_string_refresh() somehow to let the refresh strings button list my strings listed in config/regional/translate/translate, am i right?
i also saw hook_i18n_object_info() but the documentation seems to lack specifications on this hook...
can i have some hints on how to proceed?
thanks a lot!
Comments
Comment #1
joachim commentedThis is a bug -- the @return array for hook_i18n_string_info() should be fully documented.
For instance, I've had a look through the code and I can't for the life of me find where the 'list' property is used!