the language column is in locales_target, noted on IRC by wwwebernet
parent
73e3d6c574
commit
9350f5e6cf
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue