the language column is in locales_target, noted on IRC by wwwebernet

6.x
Gábor Hojtsy 2007-06-17 17:34:12 +00:00
parent 73e3d6c574
commit 9350f5e6cf
1 changed files with 1 additions and 1 deletions

View File

@ -829,7 +829,7 @@ function locale_translate_edit_form_submit($form, &$form_state) {
* Delete a language string.
*/
function locale_translate_delete($lid) {
$langcode = db_result(db_query('SELECT language FROM {locales_source} WHERE lid = %d', $lid));
$langcode = db_result(db_query('SELECT language FROM {locales_target} WHERE lid = %d', $lid));
db_query('DELETE FROM {locales_source} WHERE lid = %d', $lid);
db_query('DELETE FROM {locales_target} WHERE lid = %d', $lid);
if ($langcode) {