Bug #20679 New

tools utility translate

Version: EE 2.9.2 Reporter: GDmac - expocom

In an effort to amend the dutch translation, i bumped into a couple of small issues.

  • Nobody has said anything yet.

You must be signed in to comment on a bug report.

  • (1) In the view/tools/translate.php i added the following code to fill in missing translations with the original line.
    (2) Added a ‘uniqish’ key to the form submit button

    ...
      foreach ($language_list as $label => $value)
      {
       $this->table->add_row(
        array('data' => form_label($value['original'], $label), 'style' => 'text-align:right;'),
        ($value['trans']==''?'* ':'').form_input(array('id' => $label,
          'name' => $label,
          'value' => ($value['trans'] ? $value['trans'] : $value['original'] ),
          'class'=>'field translate_field'))
       );
      }
       
      echo $this->table->generate();
      ?>
      
      <?=form_submit('translate_submit', lang('update'), 'class="submit"')?>
    ...

    In controllers/cp/tools_utilities.php i then filter out the submit button (2) before saving the file in method translation_save()

    
    
    								
    							

ExpressionEngine News

#eecms, #events, #releases