diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-02 13:27:26 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-02 13:27:26 +0000 |
commit | e58c6c36a7d346ba6f83bb204f4eef93ea8da624 (patch) | |
tree | 5437a592d48efeb6c4b92615b6b5ce6a0db6ba44 | |
parent | 33e8024752eeb1d2b82704248932d7222d22e148 (diff) | |
download | brdo-e58c6c36a7d346ba6f83bb204f4eef93ea8da624.tar.gz brdo-e58c6c36a7d346ba6f83bb204f4eef93ea8da624.tar.bz2 |
#204872 report by hass, patch by myself: Mode radio button in locale import had bad default value
-rw-r--r-- | includes/locale.inc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/includes/locale.inc b/includes/locale.inc index aeb114878..c52a7299b 100644 --- a/includes/locale.inc +++ b/includes/locale.inc @@ -625,8 +625,11 @@ function locale_translate_import_form() { ); $form['import']['mode'] = array('#type' => 'radios', '#title' => t('Mode'), - '#default_value' => 'overwrite', - '#options' => array(LOCALE_IMPORT_OVERWRITE => t('Strings in the uploaded file replace existing ones, new ones are added'), LOCALE_IMPORT_KEEP => t('Existing strings are kept, only new strings are added')), + '#default_value' => LOCALE_IMPORT_KEEP, + '#options' => array( + LOCALE_IMPORT_OVERWRITE => t('Strings in the uploaded file replace existing ones, new ones are added'), + LOCALE_IMPORT_KEEP => t('Existing strings are kept, only new strings are added') + ), ); $form['import']['submit'] = array('#type' => 'submit', '#value' => t('Import')); $form['#attributes']['enctype'] = 'multipart/form-data'; |