You are here

function i18nstrings_update_translation in Internationalization 6

Update string translation.

1 call to i18nstrings_update_translation()
i18nprofile_update_2 in i18nprofile/i18nprofile.install
Drop old table and fields.

File

i18nstrings/i18nstrings.module, line 401
Internationalization (i18n) package - translatable strings.

Code

function i18nstrings_update_translation($context, $langcode, $translation) {
  if ($source = i18nstrings_get_source($context, $translation)) {
    db_query("INSERT INTO {locales_target} (lid, language, translation) VALUES(%d, '%s', '%s')", $source->lid, $langcode, $translation);
  }
}