function _l10n_update_admin_import_options in Localization update 6
Same name and namespace in other branches
- 7.2 l10n_update.admin.inc \_l10n_update_admin_import_options()
- 7 l10n_update.admin.inc \_l10n_update_admin_import_options()
Get array of import options.
The import options of the Locale module are used but the UI text is altered to suit the Localization update cases.
Return value
Keyed array of import options.
2 calls to _l10n_update_admin_import_options()
- l10n_update_admin_import_form in ./
l10n_update.admin.inc - Translation update form.
- l10n_update_admin_settings_form in ./
l10n_update.admin.inc - Page callback: Settings form.
File
- ./
l10n_update.admin.inc, line 216 - Admin settings and update page.
Code
function _l10n_update_admin_import_options() {
return array(
LOCALE_IMPORT_OVERWRITE => t('Translation updates replace existing ones, new ones are added'),
LOCALE_UPDATE_OVERRIDE_DEFAULT => t('Edited translations are kept, only previously imported ones are overwritten and new translations are added'),
LOCALE_IMPORT_KEEP => t('All existing translations are kept, only new translations are added.'),
);
}