Bug #20679 Version Retired

tools utility translate

Version: 2.9.2 Reporter: GDmac - expocom

This is an archived bug report. If you are experiencing a similar issue, upgrade to the latest release and if that does not solve the problem, submit a new bug report

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

  • (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()

    
    
    								
    							
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases