function i18nstrings_load in Internationalization 5.2
Same name and namespace in other branches
- 5.3 i18nstrings/i18nstrings.module \i18nstrings_load()
- 5 experimental/i18nstrings.module \i18nstrings_load()
Load string translations
1 call to i18nstrings_load()
- i18nstrings_admin_form in experimental/
i18nstrings.module - Form callback: i18nstrings_admin_form
File
- experimental/
i18nstrings.module, line 107 - Internationalization (i18n) package - translattable strings
Code
function i18nstrings_load($strid) {
$strings = array();
$result = db_query("SELECT * FROM {i18n_locale_strings} WHERE strid = '%s'", $strid);
while ($str = db_fetch_object($result)) {
$strings[$str->locale] = $str->text;
}
}