You are here

function i18n_string_locale in Internationalization 7

Implements hook_locale().

Provide the information from i18n_string groups to locale module

File

i18n_string/i18n_string.module, line 185
Internationalization (i18n) package - translatable strings.

Code

function i18n_string_locale($op = 'groups') {
  if ($op == 'groups') {
    $groups = array();
    foreach (i18n_string_group_info() as $name => $info) {
      $groups[$name] = $info['title'];
    }
    return $groups;
  }
}