You are here

function quicktabs_locale_refresh in Quick Tabs 6.2

Same name and namespace in other branches
  1. 6.3 quicktabs.module \quicktabs_locale_refresh()

Refresh locale strings.

1 string reference to 'quicktabs_locale_refresh'
quicktabs_locale in ./quicktabs.module
Implementation of hook_locale().

File

./quicktabs.module, line 708

Code

function quicktabs_locale_refresh() {
  $result = db_query("SELECT qtid FROM {quicktabs}");
  while ($row = db_fetch_object($result)) {
    $quicktabs = quicktabs_load($row->qtid, 'locale refresh');
    foreach ($quicktabs['tabs'] as $tabkey => $tab) {
      i18nstrings_update('quicktabs:tab:' . $quicktabs['qtid'] . '--' . $tabkey . ':title', $tab['title']);
    }
  }
  return TRUE;
}