You are here

function casetracker_locale_refresh in Case Tracker 7

Same name and namespace in other branches
  1. 6 casetracker.module \casetracker_locale_refresh()

Refresh locale strings.

1 string reference to 'casetracker_locale_refresh'
casetracker_locale in ./casetracker.module
Implements hook_locale().

File

./casetracker.module, line 840
Enables the handling of projects and their cases.

Code

function casetracker_locale_refresh() {
  $results = db_select('casetracker_case_states', 'c')
    ->addField('c', 'csid')
    ->addField('c', 'case_state_name', 'name')
    ->addField('c', 'case_state_realm', 'realm')
    ->execute();
  foreach ($results as $row) {
    i18nstrings_update("casetracker:case_states:{$row->csid}:name", $row->name);
  }

  // Meaning it completed with no issues. @see i18nmenu_locale_refresh().
  return TRUE;
}