Same name in other branches
  1. 7.x-3.x quicktabs.module \quicktabs_i18n_update_strings()

Update translatable strings.

2 calls to quicktabs_i18n_update_strings()
quicktabs_i18n_string_refresh in ./quicktabs.module
Implements hook_i18n_string_refresh().
quicktabs_save in ./quicktabs.module
Creates a new quicktab instance.

File

./quicktabs.module, line 325

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}-{$tabkey}:title", $tab['title']);
        }
    }
}