function hook_i18n_string_list in Internationalization 7
Provide list of translatable strings for text group.
A module can provide either a list of translatable strings using hook_i18n_string_list() or it can provide a list of objects using hook_i18n_string_objects() from which the string list will be produced automatically. But not both.
Parameters
$group: Text group name.
1 function implements hook_i18n_string_list()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- i18n_string_i18n_string_list in i18n_string/
i18n_string.i18n.inc - Implements hook_i18n_string_list().
2 invocations of hook_i18n_string_list()
- i18n_string_group_string_list in i18n_string/
i18n_string.admin.inc - Get all strings for a text group
- i18n_string_module_string_list in i18n_string/
i18n_string.admin.inc - Get all strings from a module.
File
- i18n_string/
i18n_string.api.php, line 46 - API documentation file for String translation module.
Code
function hook_i18n_string_list($group) {
if ($group == 'mygroup') {
$strings['mygroup']['type1']['key1']['name'] = 'Name of object type1/key1';
$strings['mygroup']['type1']['key1']['description'] = 'Description of object type1/key1';
return $strings;
}
}