You are here

function i18n_test_i18n_string_info in Internationalization 7

Implements hook_i18n_string_info()

File

tests/i18n_test.module, line 32
Helper module for testing i18n

Code

function i18n_test_i18n_string_info() {
  $groups['test'] = array(
    'title' => t('Test'),
    'description' => t('Translatable menu items: title and description.'),
    'format' => FALSE,
    // This group doesn't have strings with format
    'refresh callback' => 'i18n_test_i18n_string_refresh',
  );
  $groups['test_cached'] = array(
    'title' => t('Test Cached Strings'),
    'description' => t('Translatable items of a textgroup with caching enabled.'),
    'format' => FALSE,
    // This group doesn't have strings with format
    'class' => variable_get('i18n_string_textgroup_class_test_cached', 'i18n_string_textgroup_cached_logged'),
  );
  return $groups;
}