Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f9d20baf2d42bbb9f9c5746dba0abad5 > files > 205

python-translate-doc-1.10.0-3.mga4.noarch.rpm


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>phase &mdash; Translate Toolkit 1.9.0 documentation</title>
    
    <link rel="stylesheet" href="../_static/basic.css" type="text/css" />
    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
    <link rel="stylesheet" href="../_static/bootstrap.css" type="text/css" />
    <link rel="stylesheet" href="../_static/bootstrap-sphinx.css" type="text/css" />
    
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '../',
        VERSION:     '1.9.0',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="../_static/jquery.js"></script>
    <script type="text/javascript" src="../_static/underscore.js"></script>
    <script type="text/javascript" src="../_static/doctools.js"></script>
    <script type="text/javascript" src="../_static/bootstrap.js"></script>
    <script type="text/javascript" src="../_static/bootstrap-sphinx.js"></script>
    <link rel="top" title="Translate Toolkit 1.9.0 documentation" href="../index.html" />
    <link rel="up" title="Converters" href="index.html" />
    <link rel="next" title="pocompendium" href="pocompendium.html" />
    <link rel="prev" title="moz-l10n-builder" href="moz-l10n-builder.html" /> 
  </head>
  <body>
  <div id="navbar" class="navbar navbar-fixed-top">
    <div class="navbar-inner">
      <div class="container-fluid">
        <a class="brand" href="../index.html">Translate Toolkit</a>
        <span class="navbar-text pull-left"><b>1.9.0</b></span>
          <ul class="nav">
            <li class="divider-vertical"></li>
            
              <li class="dropdown">
  <a href="#" class="dropdown-toggle" data-toggle="dropdown">Site <b class="caret"></b></a>
  <ul class="dropdown-menu globaltoc"><ul class="simple">
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../features.html">Features</a></li>
<li class="toctree-l1"><a class="reference internal" href="../installation.html">Installation</a></li>
<li class="toctree-l1"><a class="reference internal" href="index.html">Converters</a></li>
<li class="toctree-l1"><a class="reference internal" href="index.html#tools">Tools</a></li>
<li class="toctree-l1"><a class="reference internal" href="index.html#scripts">Scripts</a></li>
<li class="toctree-l1"><a class="reference internal" href="../guides/index.html">Use Cases</a></li>
<li class="toctree-l1"><a class="reference internal" href="../formats/index.html">Supported formats</a></li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../styleguide.html">Translate Styleguide</a></li>
<li class="toctree-l1"><a class="reference internal" href="../styleguide.html#documentation">Documentation</a></li>
<li class="toctree-l1"><a class="reference internal" href="../development/building.html">Building</a></li>
<li class="toctree-l1"><a class="reference internal" href="../development/contributing.html">Contributing</a></li>
<li class="toctree-l1"><a class="reference internal" href="../development/developers.html">Translate Toolkit Developers Guide</a></li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../api/index.html">API</a></li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../changelog.html">Important Changes</a></li>
<li class="toctree-l1"><a class="reference internal" href="../history.html">History of the Translate Toolkit</a></li>
<li class="toctree-l1"><a class="reference internal" href="../license.html">License</a></li>
</ul>
</ul>
</li>
              
<li class="dropdown">
  <a href="#" class="dropdown-toggle" data-toggle="dropdown">Page <b class="caret"></b></a>
  <ul class="dropdown-menu localtoc"><ul>
<li><a class="reference internal" href="#">phase</a><ul>
<li><a class="reference internal" href="#prerequisites">Prerequisites</a></li>
<li><a class="reference internal" href="#latest-version">Latest Version</a></li>
<li><a class="reference internal" href="#usage">Usage</a></li>
<li><a class="reference internal" href="#commands">Commands</a></li>
<li><a class="reference internal" href="#bugs">Bugs</a></li>
</ul>
</li>
</ul>
</ul>
</li>
            
            
              
  <li><a href="moz-l10n-builder.html"
         title="previous chapter">&laquo; moz-l10n-builder</a></li>
  <li><a href="pocompendium.html"
         title="next chapter">pocompendium &raquo;</a></li>
            
            
              
            
          </ul>
          
            
<form class="navbar-search pull-right" action="../search.html" method="get">
  <input type="text" name="q" placeholder="Search" />
  <input type="hidden" name="check_keywords" value="yes" />
  <input type="hidden" name="area" value="default" />
</form>
          
          </ul>
        </div>
      </div>
    </div>
  </div>

<div class="container content">
   
  <div class="section" id="phase">
<span id="id1"></span><h1>phase<a class="headerlink" href="#phase" title="Permalink to this headline">¶</a></h1>
<p>phase is a script that allows you to perform a number of tasks on a set of PO
files that have been broken into phases.  You can create a ZIP file for a
phase, run checks against a phase, review a phase, edit files in a phase, etc.
All the tasks that would be involved in sending work to various translators,
receiving work, checking it and committing to CVS.</p>
<div class="section" id="prerequisites">
<span id="phase-prerequisites"></span><h2>Prerequisites<a class="headerlink" href="#prerequisites" title="Permalink to this headline">¶</a></h2>
<ul class="simple">
<li>An environment that will run <a class="reference external" href="http://linux.die.net/man/1/bash">bash</a></li>
<li><a class="reference external" href="http://linux.die.net/man/1/diff">diff</a></li>
<li><a class="reference external" href="http://linux.die.net/man/1/cvs">cvs</a></li>
</ul>
</div>
<div class="section" id="latest-version">
<span id="phase-latest-version"></span><h2>Latest Version<a class="headerlink" href="#latest-version" title="Permalink to this headline">¶</a></h2>
<p>phase is not currently distributed as part of the toolkit.  You can get the
<a class="reference external" href="https://raw.github.com/translate/translate/master/tools/phase">latest version from Git</a></p>
</div>
<div class="section" id="usage">
<span id="phase-usage"></span><h2>Usage<a class="headerlink" href="#usage" title="Permalink to this headline">¶</a></h2>
<div class="highlight-python"><div class="highlight"><pre><span class="n">phase</span> <span class="o">&lt;</span><span class="n">command</span><span class="o">&gt;</span> <span class="p">[</span><span class="n">options</span><span class="p">]</span>
</pre></div>
</div>
<p>Mostly the usage follows the format of:</p>
<div class="highlight-python"><pre>phase &lt;command&gt; &lt;language-dir&gt; &lt;phaselist&gt; &lt;phase-name&gt;
phase &lt;command&gt; &lt;language-dir&gt; &lt;phase-name&gt;</pre>
</div>
<p>A full list of commands and options can be seen by running:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="n">phase</span> <span class="o">--</span><span class="n">help</span>
</pre></div>
</div>
</div>
<div class="section" id="commands">
<span id="phase-commands"></span><h2>Commands<a class="headerlink" href="#commands" title="Permalink to this headline">¶</a></h2>
<p>These are the commands that you can use:</p>
<ul class="simple">
<li>makephaselist &lt;new-phase-list-name&gt; &#8211; creates a phase list</li>
<li>listphases &lt;phase-list&gt; &#8211; lists the different phases that appear in the
phase-list file</li>
<li>listfiles &lt;phase-list&gt; &lt;phase-name&gt; &#8211; list all files for the given phase in
the phase-list file</li>
<li>checkphaselist &lt;language-dir&gt; &lt;phase-list&gt; &#8211; checks to see which files are
not included in the phaselist</li>
<li>countpo &lt;language-dir&gt; &lt;phase-list&gt; &lt;phase-name&gt; &#8211; counts PO file in the
given phase</li>
<li>countpot &lt;template-dir&gt; &lt;phase-list&gt; &lt;phase-name&gt; &#8211; counts POT file in the
given phase</li>
<li>missingpo &lt;language-dir&gt; &lt;phase-list&gt; &lt;phase-name&gt; &#8211; lists files that have
not been returned for a phase</li>
<li>packpot &lt;template-dir&gt; &lt;phase-list&gt; &lt;phase-name&gt; &#8211; packs all POT files for a
given phase into a ZIP file</li>
<li>packpo &lt;language-dir&gt; &lt;phase-list&gt; &lt;phase-name&gt; &#8211; packs all PO files for a
given phase into a ZIP file</li>
<li>packall &lt;template-dir&gt; &lt;phase-list&gt; &#8211; packs all phases found in the phase
list</li>
<li>packallpo &lt;language-dir&gt; &lt;phase-list&gt; &#8211; packs all phases found in the phase
list for the given language</li>
<li>countmismatch &lt;language-dir&gt; &lt;template-dir&gt; &lt;phase-list&gt; &lt;phase-name&gt; &#8211;
compares the source word count between PO and POT to determine if there are
any file errors.</li>
<li>editpo &lt;language-dir&gt; &lt;phase-list&gt; &lt;phase-name&gt; &#8211; edit the PO files in a
phase</li>
<li>editpochecks &lt;language&gt; &lt;phase-name&gt; &#8211; edit the PO checks output by checkpo</li>
<li>editconflicts &lt;language-dir&gt; &lt;phase-list&gt; &lt;phase-name&gt; &#8211; edit the extracted
conflict items</li>
<li>checkpo &lt;language-dir&gt; &lt;phase-list&gt; &lt;phase-name&gt; [pofilter options] &#8211; run
pofilter checks against the given phase</li>
<li>mergepo &lt;language&gt; &lt;phase-name&gt; &#8211; merge the checks back into the main
language directory</li>
<li>conflictpo &lt;language-dir&gt; &lt;phase-list&gt; &lt;phase-name&gt; [poconflict options] &#8211;
run poconflict checks against the given phase</li>
<li>diffpo &lt;language-dir&gt; &lt;phase-list&gt; &lt;phase-name&gt; &#8211; perform a cvs diff for the
phase</li>
<li>cvslog &lt;language-dir&gt; &lt;phase-list&gt; &lt;phase-name&gt; &#8211; perform a cvs log against
files in the phase</li>
<li>lastlog &lt;language-dir&gt; &lt;phase-list&gt; &lt;phase-name&gt; &#8211; retrieves the last cvs
log entry for each file in a phase</li>
<li>cvsadd &lt;languages-dir&gt; &lt;phase-list&gt; &lt;phase-name&gt; &#8211; CVS adds files and
directories that are not already in CVS</li>
<li>diffpo &lt;language-dir&gt; &lt;phase-list&gt; &lt;phase-name&gt; &#8211; perform a cvs diff for the
phase</li>
<li>reviewpo &lt;language-dir&gt; &lt;phase-list&gt; &lt;phase-name&gt; [pofilter options] &#8211;
extract items marked for review for the given phase</li>
<li>editreviews &lt;language-dir&gt; &lt;phase-list&gt; &lt;phase-name&gt; &#8211; edit the extracted
review items</li>
<li>countreviews &lt;language-dir&gt; &lt;phase-list&gt; &lt;phase-name&gt; &#8211; count the number of
strings and words under review</li>
<li>checkinpo &lt;language-dir&gt; &lt;phase-list&gt; &lt;phase-name&gt; &#8211; cvs checkin the files
in the given phase</li>
<li>creategsi &lt;language-dir&gt; &lt;en-US.gsi&gt; &lt;traget-language&gt; &#8211; creates a BZ2
GSI/SDF file for the language against the en-US GSI file</li>
<li>reviewsinout &lt;language&gt; &lt;phase-name&gt; &#8211; counts the number of review files
returned vs sent and shows which are missing</li>
<li>reviewsdiff &lt;language&gt; &lt;phase-name&gt; &#8211; create a diff between what was sent
for review and what was returned</li>
</ul>
</div>
<div class="section" id="bugs">
<span id="phase-bugs"></span><h2>Bugs<a class="headerlink" href="#bugs" title="Permalink to this headline">¶</a></h2>
<p>There are probably lots mostly the bug is that the command line options are
pretty inconsistent</p>
</div>
</div>


</div>
<hr>

<footer class="footer">
  <div class="container">
    <p class="pull-right"><a href="#">Back to top ↑</a></p>
    <ul class="unstyled muted">
      <li><small>
        &copy; 2012, Translate.org.za.<br/>
      </small></li>
      <li><small>
      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3.
      </small></li>
    </ul>
  </div>
</footer>
  </body>
</html>