You are here

function i18nstrings_get_string in Internationalization 5.2

Same name and namespace in other branches
  1. 5.3 i18nstrings/i18nstrings.module \i18nstrings_get_string()
  2. 5 experimental/i18nstrings.module \i18nstrings_get_string()
  3. 6 i18nstrings/i18nstrings.module \i18nstrings_get_string()

Get string for a language

2 calls to i18nstrings_get_string()
i18nstrings_admin_form in experimental/i18nstrings.module
Form callback: i18nstrings_admin_form
tt in experimental/i18nstrings.module
Translate configurable string

File

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

Code

function i18nstrings_get_string($strid, $language) {
  return db_result(db_query("SELECT text FROM {i18n_locale_strings} WHERE strid = '%s' AND locale = '%s'", $strid, $language));
}