<!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 — 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">« moz-l10n-builder</a></li> <li><a href="pocompendium.html" title="next chapter">pocompendium »</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"><</span><span class="n">command</span><span class="o">></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 <command> <language-dir> <phaselist> <phase-name> phase <command> <language-dir> <phase-name></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 <new-phase-list-name> – creates a phase list</li> <li>listphases <phase-list> – lists the different phases that appear in the phase-list file</li> <li>listfiles <phase-list> <phase-name> – list all files for the given phase in the phase-list file</li> <li>checkphaselist <language-dir> <phase-list> – checks to see which files are not included in the phaselist</li> <li>countpo <language-dir> <phase-list> <phase-name> – counts PO file in the given phase</li> <li>countpot <template-dir> <phase-list> <phase-name> – counts POT file in the given phase</li> <li>missingpo <language-dir> <phase-list> <phase-name> – lists files that have not been returned for a phase</li> <li>packpot <template-dir> <phase-list> <phase-name> – packs all POT files for a given phase into a ZIP file</li> <li>packpo <language-dir> <phase-list> <phase-name> – packs all PO files for a given phase into a ZIP file</li> <li>packall <template-dir> <phase-list> – packs all phases found in the phase list</li> <li>packallpo <language-dir> <phase-list> – packs all phases found in the phase list for the given language</li> <li>countmismatch <language-dir> <template-dir> <phase-list> <phase-name> – compares the source word count between PO and POT to determine if there are any file errors.</li> <li>editpo <language-dir> <phase-list> <phase-name> – edit the PO files in a phase</li> <li>editpochecks <language> <phase-name> – edit the PO checks output by checkpo</li> <li>editconflicts <language-dir> <phase-list> <phase-name> – edit the extracted conflict items</li> <li>checkpo <language-dir> <phase-list> <phase-name> [pofilter options] – run pofilter checks against the given phase</li> <li>mergepo <language> <phase-name> – merge the checks back into the main language directory</li> <li>conflictpo <language-dir> <phase-list> <phase-name> [poconflict options] – run poconflict checks against the given phase</li> <li>diffpo <language-dir> <phase-list> <phase-name> – perform a cvs diff for the phase</li> <li>cvslog <language-dir> <phase-list> <phase-name> – perform a cvs log against files in the phase</li> <li>lastlog <language-dir> <phase-list> <phase-name> – retrieves the last cvs log entry for each file in a phase</li> <li>cvsadd <languages-dir> <phase-list> <phase-name> – CVS adds files and directories that are not already in CVS</li> <li>diffpo <language-dir> <phase-list> <phase-name> – perform a cvs diff for the phase</li> <li>reviewpo <language-dir> <phase-list> <phase-name> [pofilter options] – extract items marked for review for the given phase</li> <li>editreviews <language-dir> <phase-list> <phase-name> – edit the extracted review items</li> <li>countreviews <language-dir> <phase-list> <phase-name> – count the number of strings and words under review</li> <li>checkinpo <language-dir> <phase-list> <phase-name> – cvs checkin the files in the given phase</li> <li>creategsi <language-dir> <en-US.gsi> <traget-language> – creates a BZ2 GSI/SDF file for the language against the en-US GSI file</li> <li>reviewsinout <language> <phase-name> – counts the number of review files returned vs sent and shows which are missing</li> <li>reviewsdiff <language> <phase-name> – 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> © 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>