You are here

function i18nstrings_load in Internationalization 5.3

Same name and namespace in other branches
  1. 5 experimental/i18nstrings.module \i18nstrings_load()
  2. 5.2 experimental/i18nstrings.module \i18nstrings_load()

Load string translations

1 call to i18nstrings_load()
i18nstrings_admin_form in i18nstrings/i18nstrings.module
Form callback: i18nstrings_admin_form

File

i18nstrings/i18nstrings.module, line 114
Internationalization (i18n) package - translattable strings

Code

function i18nstrings_load($strid) {
  $strings = array();
  $result = db_query("SELECT * FROM {i18n_locale} WHERE strid = '%s'", $strid);
  while ($str = db_fetch_object($result)) {
    $strings[$str->locale] = $str->text;
  }
}