function accessibility_accessibility_get_test_translation

cis7 accessibility.module accessibility_accessibility_get_test_translation($test)
cle7 accessibility.module accessibility_accessibility_get_test_translation($test)
elmsmedia7 accessibility.module accessibility_accessibility_get_test_translation($test)
icor7 accessibility.module accessibility_accessibility_get_test_translation($test)
meedjum_blog7 accessibility.module accessibility_accessibility_get_test_translation($test)
mooc7 accessibility.module accessibility_accessibility_get_test_translation($test)

Implements hook_accessibility_get_test_translation().

File

sites/all/modules/ulmus/accessibility/accessibility.module, line 699

Code

function accessibility_accessibility_get_test_translation($test) {
  $strings = &drupal_static('_locale_import_one_string:strings', array());
  $language = language_default();
  if (!count($strings)) {
    require_once ('includes/locale.inc');
    $file = new stdClass();
    $file->uri = drupal_get_path('module', 'accessibility') . '/po/' . $language->language . '.po';
    _locale_import_read_po('mem-store', $file);
  }
  return isset($strings[$test][$test]) ? $strings[$test][$test] : array(
    'title' => $test,
    'body' => '',
  );
}