You are here

function qtip_i18n_update_strings in qTip (Stylish jQuery Tooltips) 7.2

Update translatable strings.

2 calls to qtip_i18n_update_strings()
qtip_i18n_string_refresh in ./qtip.module
Implements hook_i18n_string_refresh().
qtip_save in ./qtip.module
Create a new qtip instance.

File

./qtip.module, line 868

Code

function qtip_i18n_update_strings($names = array()) {
  if (!function_exists('i18n_string_update')) {
    return;
  }
  $qt = qtip_load_multiple($names);
  foreach ($qt as $name => $qtip) {
    i18n_string_update("qtip:title:{$name}", $qtip->title);
    foreach ($qtip->tabs as $tabkey => $tab) {
      i18n_string_update("qtip:tab:{$name}-{$tabkey}:title", $tab['title']);
    }
  }
}