Location: PHPKode > projects > OpenBizMap > obm2007.1/mydata/script/script_translateall.html
<?php

  $newonly=get('newonly');
  $translation_array=myecho_load(cfg_lang_path);

  if($newonly!=2)
    $newonly=1;
  else
    $newonly=0;

  echo '<h2>';
  myecho('Manage Translations');
  echo ' ('.basename(cfg_lang_path).')';
  echo '</h2>';

  echo '<p style="margin-left:10px; margin-top:0;"><a href="index.php?odb_script=translateall&odb_newonly=1">';
  myecho('Show only missing translations');
  echo '</a> | ';
  echo '<a href="index.php?odb_script=translateall&odb_newonly=2">';
  myecho('Show all translations');
  echo '</a></p>';

  echo '<table>';
  $cnt=1;

  $tmp_translation_array=$translation_array[cfg_lang_path];
  reset($tmp_translation_array);
  while(list($source,$tmp)=each($tmp_translation_array))
  {
    $destination=myecho($source,'RETURN');
    if(!$newonly or $source==$destination)
    {
      echo '<tr>';
        echo '<td>';
          echo $cnt.'.';
        echo '</td>';

        if($source==$destination)
          echo '<td style="color:#f00;">';
        else
          echo '<td>';

          echo '<span style="margin-left:10px;">';
          echo $source;
          echo '</span><span style="margin-left:20px;">';
          myecho($source,'TRANSLATE');
          echo '</span>';
        echo '</td>';
      echo '</tr>';

      $cnt++;
    }
  }
  echo '</table>';

?>
Return current item: OpenBizMap