You are here

function i18nstrings_remove_translation in Internationalization 6

Remove a string translation for a given context and language.

File

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

Code

function i18nstrings_remove_translation($context, $langcode) {
  $context = i18nstrings_context($context);
  if ($source = i18nstrings_get_source($context)) {
    db_query("DELETE FROM {locales_target} WHERE lid = %d AND language = '%s'", $source->lid, $langcode);
  }
}