Commit e58c6c36 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#204872 report by hass, patch by myself: Mode radio button in locale import had bad default value

parent 33e80247
......@@ -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';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment