Improve interface contextual documentation for extra fields translation

ofaj
Yannick Warnier 9 years ago
parent b7781338ab
commit af7d1766fb
  1. 4
      main/extrafield/translate.php

@ -46,12 +46,12 @@ $form = new FormValidator('new_lang_variable', 'POST', $translateUrl);
$form->addHeader(get_lang('AddWordForTheSubLanguage'));
$form->addText('variable_language', get_lang('LanguageVariable'), false);
$form->addText('original_name', get_lang('OriginalName'), false);
$form->addSelect('language', array(get_lang('SubLanguage'), get_lang('OnlyActiveSubLanguagesAreListed')), $languagesOptions);
$form->addSelect('language', [get_lang('SubLanguage'), get_lang('OnlyActiveSubLanguagesAreListed')], $languagesOptions);
if ($languageId) {
$languageInfo = api_get_language_info($languageId);
$form->addText('new_language', get_lang('SubLanguage'));
$form->addText('new_language', [get_lang('Translation'), get_lang('IfThisTranslationExistsThisWillReplaceTheTerm')]);
$form->addHidden('file_id', 0);
$form->addHidden('id', $languageInfo['parent_id']);
$form->addHidden('sub', $languageInfo['id']);

Loading…
Cancel
Save