You are here

function i18nstrings_save_string in Internationalization 5.2

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

Save string for a language

2 calls to i18nstrings_save_string()
i18nstrings_admin_form_submit in experimental/i18nstrings.module
Form submit callback
tt in experimental/i18nstrings.module
Translate configurable string

File

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

Code

function i18nstrings_save_string($strid, $language, $value) {
  drupal_set_message("DEBUG: i18n_strings_save: {$strid}({$language})= {$value}");
  db_query("DELETE FROM {i18n_locale_strings} WHERE strid = '%s' AND locale = '%s'", $strid, $language);
  db_query("INSERT INTO {i18n_locale_strings}(strid, locale, text) VALUES('%s', '%s', '%s')", $strid, $language, $value);
}