Hi,

When I tried to import a .po on 'translate/languages/'. $langcode .'/import' page I got strange mysqli_escape_string() errors. This is because the $langcode doesn't get the real langcode in the l10n_community_import_form(), because you forgot the first argument is the $form_state, not the first parameter.

So, you shold modify

function l10n_community_import_form($langcode, $perm)

to

function l10n_community_import_form($form_state, $langcode, $perm)

in import.inc.

(Sorry, I don't think patch is necessary for a one word, I hope you think so :))

Comments

gábor hojtsy’s picture

Status: Needs review » Fixed

Hm, faulty Drupal 6 upgrade. Now added, thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.