Same name in other branches
- 8.x-1.x quicktabs.module \quicktabs_i18n_update_strings()
Update translatable strings.
2 calls to quicktabs_i18n_update_strings()
- quicktabs_i18n_string_refresh dans ./
quicktabs.module - Implements hook_i18n_string_refresh().
- quicktabs_save dans ./
quicktabs.module - Creates a new quicktab instance.
Fichier
-
./
quicktabs.module, line 388
Code
function quicktabs_i18n_update_strings($names = array()) {
if (!function_exists('i18n_string_update')) {
return;
}
$qts = quicktabs_load_multiple($names);
foreach ($qts as $name => $quicktabs) {
i18n_string_update("quicktabs:title:{$name}", $quicktabs->title);
foreach ($quicktabs->tabs as $tabkey => $tab) {
i18n_string_update("quicktabs:tab:{$name}:title:" . md5($tab['title']), $tab['title']);
}
}
}