Sophie

Sophie

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

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>convert &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="API" href="index.html" />
    <link rel="next" title="filters" href="filters.html" />
    <link rel="prev" title="API" href="index.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="../commands/index.html">Converters</a></li>
<li class="toctree-l1"><a class="reference internal" href="../commands/index.html#tools">Tools</a></li>
<li class="toctree-l1"><a class="reference internal" href="../commands/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="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="#">convert</a><ul>
<li><a class="reference internal" href="#module-translate.convert.accesskey">acesskey</a></li>
<li><a class="reference internal" href="#id1">convert</a></li>
<li><a class="reference internal" href="#module-translate.convert.csv2po">csv2po</a></li>
<li><a class="reference internal" href="#module-translate.convert.csv2tbx">csv2tbx</a></li>
<li><a class="reference internal" href="#module-translate.convert.dtd2po">dtd2po</a></li>
<li><a class="reference internal" href="#module-translate.convert.factory">factory</a></li>
<li><a class="reference internal" href="#module-translate.convert.html2po">html2po</a></li>
<li><a class="reference internal" href="#module-translate.convert.ical2po">ical2po</a></li>
<li><a class="reference internal" href="#module-translate.convert.ini2po">ini2po</a></li>
<li><a class="reference internal" href="#module-translate.convert.json2po">json2po</a></li>
<li><a class="reference internal" href="#module-translate.convert.moz2po">moz2po</a></li>
<li><a class="reference internal" href="#module-translate.convert.mozfunny2prop">mozfunny2prop</a></li>
<li><a class="reference internal" href="#module-translate.convert.mozlang2po">mozlang2po</a></li>
<li><a class="reference internal" href="#module-translate.convert.odf2xliff">odf2xliff</a></li>
<li><a class="reference internal" href="#module-translate.convert.oo2po">oo2po</a></li>
<li><a class="reference internal" href="#module-translate.convert.oo2xliff">oo2xliff</a></li>
<li><a class="reference internal" href="#module-translate.convert.php2po">php2po</a></li>
<li><a class="reference internal" href="#module-translate.convert.po2csv">po2csv</a></li>
<li><a class="reference internal" href="#module-translate.convert.po2dtd">po2dtd</a></li>
<li><a class="reference internal" href="#module-translate.convert.po2html">po2html</a></li>
<li><a class="reference internal" href="#module-translate.convert.po2ical">po2ical</a></li>
<li><a class="reference internal" href="#module-translate.convert.po2ini">po2ini</a></li>
<li><a class="reference internal" href="#module-translate.convert.po2json">po2json</a></li>
<li><a class="reference internal" href="#module-translate.convert.po2mozlang">po2mozlang</a></li>
<li><a class="reference internal" href="#module-translate.convert.po2moz">po2moz</a></li>
<li><a class="reference internal" href="#module-translate.convert.po2oo">po2oo</a></li>
<li><a class="reference internal" href="#module-translate.convert.po2php">po2php</a></li>
<li><a class="reference internal" href="#module-translate.convert.po2prop">po2prop</a></li>
<li><a class="reference internal" href="#module-translate.convert.po2rc">po2rc</a></li>
<li><a class="reference internal" href="#module-translate.convert.po2sub">po2sub</a></li>
<li><a class="reference internal" href="#module-translate.convert.po2symb">po2symb</a></li>
<li><a class="reference internal" href="#module-translate.convert.po2tiki">po2tiki</a></li>
<li><a class="reference internal" href="#module-translate.convert.po2tmx">po2tmx</a></li>
<li><a class="reference internal" href="#module-translate.convert.po2ts">po2ts</a></li>
<li><a class="reference internal" href="#module-translate.convert.po2txt">po2txt</a></li>
<li><a class="reference internal" href="#module-translate.convert.po2web2py">po2web2py</a></li>
<li><a class="reference internal" href="#module-translate.convert.po2wordfast">po2wordfast</a></li>
<li><a class="reference internal" href="#module-translate.convert.po2xliff">po2xliff</a></li>
<li><a class="reference internal" href="#module-translate.convert.poreplace">poreplace</a></li>
<li><a class="reference internal" href="#module-translate.convert.pot2po">pot2po</a></li>
<li><a class="reference internal" href="#module-translate.convert.prop2mozfunny">prop2mozfunny</a></li>
<li><a class="reference internal" href="#module-translate.convert.prop2po">prop2po</a></li>
<li><a class="reference internal" href="#module-translate.convert.rc2po">rc2po</a></li>
<li><a class="reference internal" href="#module-translate.convert.sub2po">sub2po</a></li>
<li><a class="reference internal" href="#module-translate.convert.symb2po">symb2po</a></li>
<li><a class="reference internal" href="#module-translate.convert.tiki2po">tiki2po</a></li>
<li><a class="reference internal" href="#module-translate.convert.ts2po">ts2po</a></li>
<li><a class="reference internal" href="#module-translate.convert.txt2po">txt2po</a></li>
<li><a class="reference internal" href="#module-translate.convert.web2py2po">web2py2po</a></li>
<li><a class="reference internal" href="#module-translate.convert.xliff2odf">xliff2odf</a></li>
<li><a class="reference internal" href="#module-translate.convert.xliff2oo">xliff2oo</a></li>
<li><a class="reference internal" href="#module-translate.convert.xliff2po">xliff2po</a></li>
</ul>
</li>
</ul>
</ul>
</li>
            
            
              
  <li><a href="index.html"
         title="previous chapter">&laquo; API</a></li>
  <li><a href="filters.html"
         title="next chapter">filters &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="module-translate.convert">
<span id="convert"></span><h1>convert<a class="headerlink" href="#module-translate.convert" title="Permalink to this headline">¶</a></h1>
<p>Code to convert between different storage formats for localizations.</p>
<div class="section" id="module-translate.convert.accesskey">
<span id="acesskey"></span><h2>acesskey<a class="headerlink" href="#module-translate.convert.accesskey" title="Permalink to this headline">¶</a></h2>
<p>functions used to manipulate access keys in strings</p>
<dl class="class">
<dt id="translate.convert.accesskey.UnitMixer">
<em class="property">class </em><tt class="descclassname">translate.convert.accesskey.</tt><tt class="descname">UnitMixer</tt><big>(</big><em>labelsuffixes</em>, <em>accesskeysuffixes</em><big>)</big><a class="headerlink" href="#translate.convert.accesskey.UnitMixer" title="Permalink to this definition">¶</a></dt>
<dd><p>Helper to mix separately defined labels and accesskeys into one unit.</p>
<dl class="method">
<dt id="translate.convert.accesskey.UnitMixer.match_entities">
<tt class="descname">match_entities</tt><big>(</big><em>index</em><big>)</big><a class="headerlink" href="#translate.convert.accesskey.UnitMixer.match_entities" title="Permalink to this definition">¶</a></dt>
<dd><p>Populates mixedentities from the index.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.accesskey.UnitMixer.mix_units">
<tt class="descname">mix_units</tt><big>(</big><em>label_unit</em>, <em>accesskey_unit</em>, <em>target_unit</em><big>)</big><a class="headerlink" href="#translate.convert.accesskey.UnitMixer.mix_units" title="Permalink to this definition">¶</a></dt>
<dd><p>Mix the given units into the given target_unit if possible.</p>
<p>Might return None if no match is possible.</p>
</dd></dl>

</dd></dl>

<dl class="function">
<dt id="translate.convert.accesskey.combine">
<tt class="descclassname">translate.convert.accesskey.</tt><tt class="descname">combine</tt><big>(</big><em>label</em>, <em>accesskey</em>, <em>accesskey_marker=u'&amp;'</em><big>)</big><a class="headerlink" href="#translate.convert.accesskey.combine" title="Permalink to this definition">¶</a></dt>
<dd><p>Combine a label and and accesskey to form a label+accesskey string</p>
<p>We place an accesskey marker before the accesskey in the label and this
creates a string with the two combined e.g. &#8220;File&#8221; + &#8220;F&#8221; = &#8220;&amp;File&#8221;</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>label</strong> (<a class="reference external" href="http://docs.python.org/2.7/library/functions.html#unicode" title="(in Python v2.7)"><em>unicode</em></a>) &#8211; a label</li>
<li><strong>accesskey</strong> (<em>unicode char</em>) &#8211; The accesskey</li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first">unicode or None</p>
</td>
</tr>
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">label+accesskey string or None if uncombineable</p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="translate.convert.accesskey.extract">
<tt class="descclassname">translate.convert.accesskey.</tt><tt class="descname">extract</tt><big>(</big><em>string</em>, <em>accesskey_marker=u'&amp;'</em><big>)</big><a class="headerlink" href="#translate.convert.accesskey.extract" title="Permalink to this definition">¶</a></dt>
<dd><p>Extract the label and accesskey from a label+accesskey string</p>
<p>The function will also try to ignore &amp;entities; which would obviously not
contain accesskeys.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
<li><strong>string</strong> (<em>Unicode</em>) &#8211; A string that might contain a label with accesskey marker</li>
<li><strong>accesskey_marker</strong> (<em>Char</em>) &#8211; The character that is used to prefix an access key</li>
</ul>
</td>
</tr>
</tbody>
</table>
</dd></dl>

</div>
<div class="section" id="id1">
<h2>convert<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h2>
<span class="target" id="module-translate.convert.convert"></span><p>Handles converting of files between formats (used by
<a class="reference internal" href="index.html#module-translate.convert" title="translate.convert"><tt class="xref py py-mod docutils literal"><span class="pre">translate.convert</span></tt></a> tools).</p>
<dl class="class">
<dt id="translate.convert.convert.ArchiveConvertOptionParser">
<em class="property">class </em><tt class="descclassname">translate.convert.convert.</tt><tt class="descname">ArchiveConvertOptionParser</tt><big>(</big><em>formats</em>, <em>usetemplates=False</em>, <em>usepots=False</em>, <em>description=None</em>, <em>archiveformats=None</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser" title="Permalink to this definition">¶</a></dt>
<dd><p>ConvertOptionParser that can handle recursing into single archive files.</p>
<p><tt class="docutils literal"><span class="pre">archiveformats</span></tt> maps extension to class. If the extension doesn&#8217;t
matter, it can be None.</p>
<p>If the extension is only valid for input/output/template, it can be
given as <tt class="docutils literal"><span class="pre">(extension,</span> <span class="pre">filepurpose)</span></tt>.</p>
<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.add_duplicates_option">
<tt class="descname">add_duplicates_option</tt><big>(</big><em>default='msgctxt'</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.add_duplicates_option" title="Permalink to this definition">¶</a></dt>
<dd><p>Adds an option to say what to do with duplicate strings.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.add_fuzzy_option">
<tt class="descname">add_fuzzy_option</tt><big>(</big><em>default=False</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.add_fuzzy_option" title="Permalink to this definition">¶</a></dt>
<dd><p>Adds an option to include / exclude fuzzy translations.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.add_multifile_option">
<tt class="descname">add_multifile_option</tt><big>(</big><em>default='single'</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.add_multifile_option" title="Permalink to this definition">¶</a></dt>
<dd><p>Adds an option to say how to split the po/pot files.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.add_option">
<tt class="descname">add_option</tt><big>(</big><em>Option</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.add_option" title="Permalink to this definition">¶</a></dt>
<dd><p>add_option(opt_str, ..., kwarg=val, ...)</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.check_values">
<tt class="descname">check_values</tt><big>(</big><em>values : Values, args : [string]</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.check_values" title="Permalink to this definition">¶</a></dt>
<dd><p>-&gt; (values : Values, args : [string])</p>
<p>Check that the supplied option values and leftover arguments are
valid.  Returns the option values and leftover arguments
(possibly adjusted, possibly completely new &#8211; whatever you
like).  Default implementation just returns the passed-in
values; subclasses may override as desired.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.checkoutputsubdir">
<tt class="descname">checkoutputsubdir</tt><big>(</big><em>options</em>, <em>subdir</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.checkoutputsubdir" title="Permalink to this definition">¶</a></dt>
<dd><p>Checks to see if subdir under <tt class="docutils literal"><span class="pre">options.output</span></tt> needs to be
created, creates if neccessary.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.define_option">
<tt class="descname">define_option</tt><big>(</big><em>option</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.define_option" title="Permalink to this definition">¶</a></dt>
<dd><p>Defines the given option, replacing an existing one of the same short
name if neccessary...</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.destroy">
<tt class="descname">destroy</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.destroy" title="Permalink to this definition">¶</a></dt>
<dd><p>Declare that you are done with this OptionParser.  This cleans up
reference cycles so the OptionParser (and all objects referenced by
it) can be garbage-collected promptly.  After calling destroy(), the
OptionParser is unusable.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.disable_interspersed_args">
<tt class="descname">disable_interspersed_args</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.disable_interspersed_args" title="Permalink to this definition">¶</a></dt>
<dd><p>Set parsing to stop on the first non-option. Use this if
you have a command processor which runs another command that
has options of its own and you want to make sure these options
don&#8217;t get confused.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.enable_interspersed_args">
<tt class="descname">enable_interspersed_args</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.enable_interspersed_args" title="Permalink to this definition">¶</a></dt>
<dd><p>Set parsing to not stop on the first non-option, allowing
interspersing switches with command arguments. This is the
default behavior. See also disable_interspersed_args() and the
class documentation description of the attribute
allow_interspersed_args.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.error">
<tt class="descname">error</tt><big>(</big><em>msg : string</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.error" title="Permalink to this definition">¶</a></dt>
<dd><p>Print a usage message incorporating &#8216;msg&#8217; to stderr and exit.
If you override this in a subclass, it should not return &#8211; it
should either exit or raise an exception.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.filterinputformats">
<tt class="descname">filterinputformats</tt><big>(</big><em>options</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.filterinputformats" title="Permalink to this definition">¶</a></dt>
<dd><p>Filters input formats, processing relevant switches in options.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.filteroutputoptions">
<tt class="descname">filteroutputoptions</tt><big>(</big><em>options</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.filteroutputoptions" title="Permalink to this definition">¶</a></dt>
<dd><p>Filters output options, processing relevant switches in options.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.finalizetempoutputfile">
<tt class="descname">finalizetempoutputfile</tt><big>(</big><em>options</em>, <em>outputfile</em>, <em>fulloutputpath</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.finalizetempoutputfile" title="Permalink to this definition">¶</a></dt>
<dd><p>Write the temp outputfile to its final destination.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.format_manpage">
<tt class="descname">format_manpage</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.format_manpage" title="Permalink to this definition">¶</a></dt>
<dd><p>returns a formatted manpage</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.getarchiveclass">
<tt class="descname">getarchiveclass</tt><big>(</big><em>fileext</em>, <em>filepurpose</em>, <em>isdir=False</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.getarchiveclass" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the archiveclass for the given fileext and filepurpose</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.getformathelp">
<tt class="descname">getformathelp</tt><big>(</big><em>formats</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.getformathelp" title="Permalink to this definition">¶</a></dt>
<dd><p>Make a nice help string for describing formats...</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.getfullinputpath">
<tt class="descname">getfullinputpath</tt><big>(</big><em>options</em>, <em>inputpath</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.getfullinputpath" title="Permalink to this definition">¶</a></dt>
<dd><p>Gets the absolute path to an input file.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.getfulloutputpath">
<tt class="descname">getfulloutputpath</tt><big>(</big><em>options</em>, <em>outputpath</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.getfulloutputpath" title="Permalink to this definition">¶</a></dt>
<dd><p>Gets the absolute path to an output file.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.getfulltemplatepath">
<tt class="descname">getfulltemplatepath</tt><big>(</big><em>options</em>, <em>templatepath</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.getfulltemplatepath" title="Permalink to this definition">¶</a></dt>
<dd><p>Gets the absolute path to a template file.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.getoutputname">
<tt class="descname">getoutputname</tt><big>(</big><em>options</em>, <em>inputname</em>, <em>outputformat</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.getoutputname" title="Permalink to this definition">¶</a></dt>
<dd><p>Gets an output filename based on the input filename.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.getoutputoptions">
<tt class="descname">getoutputoptions</tt><big>(</big><em>options</em>, <em>inputpath</em>, <em>templatepath</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.getoutputoptions" title="Permalink to this definition">¶</a></dt>
<dd><p>Works out which output format and processor method to use...</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.getpassthroughoptions">
<tt class="descname">getpassthroughoptions</tt><big>(</big><em>options</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.getpassthroughoptions" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the options required to pass to the filtermethod...</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.gettemplatename">
<tt class="descname">gettemplatename</tt><big>(</big><em>options</em>, <em>inputname</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.gettemplatename" title="Permalink to this definition">¶</a></dt>
<dd><p>Gets an output filename based on the input filename.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.getusageman">
<tt class="descname">getusageman</tt><big>(</big><em>option</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.getusageman" title="Permalink to this definition">¶</a></dt>
<dd><p>returns the usage string for the given option</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.getusagestring">
<tt class="descname">getusagestring</tt><big>(</big><em>option</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.getusagestring" title="Permalink to this definition">¶</a></dt>
<dd><p>returns the usage string for the given option</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.initoutputarchive">
<tt class="descname">initoutputarchive</tt><big>(</big><em>options</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.initoutputarchive" title="Permalink to this definition">¶</a></dt>
<dd><p>Creates an outputarchive if required.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.initprogressbar">
<tt class="descname">initprogressbar</tt><big>(</big><em>allfiles</em>, <em>options</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.initprogressbar" title="Permalink to this definition">¶</a></dt>
<dd><p>Sets up a progress bar appropriate to the options and files.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.inittemplatearchive">
<tt class="descname">inittemplatearchive</tt><big>(</big><em>options</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.inittemplatearchive" title="Permalink to this definition">¶</a></dt>
<dd><p>Opens the <tt class="docutils literal"><span class="pre">templatearchive</span></tt> if not already open.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.isarchive">
<tt class="descname">isarchive</tt><big>(</big><em>fileoption</em>, <em>filepurpose='input'</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.isarchive" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns whether the file option is an archive file.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.isexcluded">
<tt class="descname">isexcluded</tt><big>(</big><em>options</em>, <em>inputpath</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.isexcluded" title="Permalink to this definition">¶</a></dt>
<dd><p>Checks if this path has been excluded.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.isrecursive">
<tt class="descname">isrecursive</tt><big>(</big><em>fileoption</em>, <em>filepurpose='input'</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.isrecursive" title="Permalink to this definition">¶</a></dt>
<dd><p>Checks if <strong>fileoption</strong> is a recursive file.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.isvalidinputname">
<tt class="descname">isvalidinputname</tt><big>(</big><em>options</em>, <em>inputname</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.isvalidinputname" title="Permalink to this definition">¶</a></dt>
<dd><p>Checks if this is a valid input filename.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.mkdir">
<tt class="descname">mkdir</tt><big>(</big><em>parent</em>, <em>subdir</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.mkdir" title="Permalink to this definition">¶</a></dt>
<dd><p>Makes a subdirectory (recursively if neccessary).</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.openarchive">
<tt class="descname">openarchive</tt><big>(</big><em>archivefilename</em>, <em>filepurpose</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.openarchive" title="Permalink to this definition">¶</a></dt>
<dd><p>Creates an archive object for the given file.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.openinputfile">
<tt class="descname">openinputfile</tt><big>(</big><em>options</em>, <em>fullinputpath</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.openinputfile" title="Permalink to this definition">¶</a></dt>
<dd><p>Opens the input file.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.openoutputfile">
<tt class="descname">openoutputfile</tt><big>(</big><em>options</em>, <em>fulloutputpath</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.openoutputfile" title="Permalink to this definition">¶</a></dt>
<dd><p>Opens the output file.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.opentemplatefile">
<tt class="descname">opentemplatefile</tt><big>(</big><em>options</em>, <em>fulltemplatepath</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.opentemplatefile" title="Permalink to this definition">¶</a></dt>
<dd><p>Opens the template file (if required).</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.opentempoutputfile">
<tt class="descname">opentempoutputfile</tt><big>(</big><em>options</em>, <em>fulloutputpath</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.opentempoutputfile" title="Permalink to this definition">¶</a></dt>
<dd><p>Opens a temporary output file.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.parse_args">
<tt class="descname">parse_args</tt><big>(</big><em>args=None</em>, <em>values=None</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.parse_args" title="Permalink to this definition">¶</a></dt>
<dd><p>Parses the command line options, handling implicit input/output
args.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.potifyformat">
<tt class="descname">potifyformat</tt><big>(</big><em>fileformat</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.potifyformat" title="Permalink to this definition">¶</a></dt>
<dd><p>Converts a .po to a .pot where required.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.print_help">
<tt class="descname">print_help</tt><big>(</big><em>file : file = stdout</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.print_help" title="Permalink to this definition">¶</a></dt>
<dd><p>Print an extended help message, listing all options and any
help text provided with them, to &#8216;file&#8217; (default stdout).</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.print_manpage">
<tt class="descname">print_manpage</tt><big>(</big><em>file=None</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.print_manpage" title="Permalink to this definition">¶</a></dt>
<dd><p>outputs a manpage for the program using the help information</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.print_usage">
<tt class="descname">print_usage</tt><big>(</big><em>file : file = stdout</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.print_usage" title="Permalink to this definition">¶</a></dt>
<dd><p>Print the usage message for the current program (self.usage) to
&#8216;file&#8217; (default stdout).  Any occurrence of the string &#8220;%prog&#8221; in
self.usage is replaced with the name of the current program
(basename of sys.argv[0]).  Does nothing if self.usage is empty
or not defined.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.print_version">
<tt class="descname">print_version</tt><big>(</big><em>file : file = stdout</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.print_version" title="Permalink to this definition">¶</a></dt>
<dd><p>Print the version message for this program (self.version) to
&#8216;file&#8217; (default stdout).  As with print_usage(), any occurrence
of &#8220;%prog&#8221; in self.version is replaced by the current program&#8217;s
name.  Does nothing if self.version is empty or undefined.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.processfile">
<tt class="descname">processfile</tt><big>(</big><em>fileprocessor</em>, <em>options</em>, <em>fullinputpath</em>, <em>fulloutputpath</em>, <em>fulltemplatepath</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.processfile" title="Permalink to this definition">¶</a></dt>
<dd><p>Run an invidividual conversion.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.recursearchivefiles">
<tt class="descname">recursearchivefiles</tt><big>(</big><em>options</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.recursearchivefiles" title="Permalink to this definition">¶</a></dt>
<dd><p>Recurse through archive files and convert files.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.recurseinputfilelist">
<tt class="descname">recurseinputfilelist</tt><big>(</big><em>options</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.recurseinputfilelist" title="Permalink to this definition">¶</a></dt>
<dd><p>Use a list of files, and find a common base directory for them.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.recurseinputfiles">
<tt class="descname">recurseinputfiles</tt><big>(</big><em>options</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.recurseinputfiles" title="Permalink to this definition">¶</a></dt>
<dd><p>Recurse through archive file / directories and return files
to be converted.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.recursiveprocess">
<tt class="descname">recursiveprocess</tt><big>(</big><em>options</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.recursiveprocess" title="Permalink to this definition">¶</a></dt>
<dd><p>Recurse through directories and convert files.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.reportprogress">
<tt class="descname">reportprogress</tt><big>(</big><em>filename</em>, <em>success</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.reportprogress" title="Permalink to this definition">¶</a></dt>
<dd><p>Shows that we are progressing...</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.run">
<tt class="descname">run</tt><big>(</big><em>argv=None</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.run" title="Permalink to this definition">¶</a></dt>
<dd><p>Parses the command line options and runs the conversion.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.set_usage">
<tt class="descname">set_usage</tt><big>(</big><em>usage=None</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.set_usage" title="Permalink to this definition">¶</a></dt>
<dd><p>sets the usage string - if usage not given, uses getusagestring for
each option</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.setarchiveoptions">
<tt class="descname">setarchiveoptions</tt><big>(</big><em>**kwargs</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.setarchiveoptions" title="Permalink to this definition">¶</a></dt>
<dd><p>Allows setting options that will always be passed to openarchive.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.seterrorleveloptions">
<tt class="descname">seterrorleveloptions</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.seterrorleveloptions" title="Permalink to this definition">¶</a></dt>
<dd><p>Sets the errorlevel options.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.setformats">
<tt class="descname">setformats</tt><big>(</big><em>formats</em>, <em>usetemplates</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.setformats" title="Permalink to this definition">¶</a></dt>
<dd><p>Sets the format options using the given format dictionary.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>formats</strong> (<em>Dictionary</em>) &#8211; <p>The dictionary <em>keys</em> should be:</p>
<ul class="simple">
<li>Single strings (or 1-tuples) containing an
input format (if not <em>usetemplates</em>)</li>
<li>Tuples containing an input format and
template format (if <em>usetemplates</em>)</li>
<li>Formats can be <em>None</em> to indicate what to do
with standard input</li>
</ul>
<p>The dictionary <em>values</em> should be tuples of
outputformat (string) and processor method.</p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.setmanpageoption">
<tt class="descname">setmanpageoption</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.setmanpageoption" title="Permalink to this definition">¶</a></dt>
<dd><p>creates a manpage option that allows the optionparser to generate a
manpage</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.setpotoption">
<tt class="descname">setpotoption</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.setpotoption" title="Permalink to this definition">¶</a></dt>
<dd><p>Sets the <tt class="docutils literal"><span class="pre">-P</span></tt>/<tt class="docutils literal"><span class="pre">--pot</span></tt> option depending on input/output
formats etc.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.setprogressoptions">
<tt class="descname">setprogressoptions</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.setprogressoptions" title="Permalink to this definition">¶</a></dt>
<dd><p>Sets the progress options.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.splitext">
<tt class="descname">splitext</tt><big>(</big><em>pathname</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.splitext" title="Permalink to this definition">¶</a></dt>
<dd><p>Splits <em>pathname</em> into name and ext, and removes the extsep.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>pathname</strong> (<a class="reference external" href="http://docs.python.org/2.7/library/string.html#string" title="(in Python v2.7)"><em>string</em></a>) &#8211; A file path</td>
</tr>
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">root, ext</td>
</tr>
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">tuple</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.splitinputext">
<tt class="descname">splitinputext</tt><big>(</big><em>inputpath</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.splitinputext" title="Permalink to this definition">¶</a></dt>
<dd><p>Splits an <em>inputpath</em> into name and extension.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.splittemplateext">
<tt class="descname">splittemplateext</tt><big>(</big><em>templatepath</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.splittemplateext" title="Permalink to this definition">¶</a></dt>
<dd><p>Splits a <em>templatepath</em> into name and extension.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.templateexists">
<tt class="descname">templateexists</tt><big>(</big><em>options</em>, <em>templatepath</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.templateexists" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns whether the given template exists...</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.verifyoptions">
<tt class="descname">verifyoptions</tt><big>(</big><em>options</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.verifyoptions" title="Permalink to this definition">¶</a></dt>
<dd><p>Verifies that the options are valid (required options are
present, etc).</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ArchiveConvertOptionParser.warning">
<tt class="descname">warning</tt><big>(</big><em>msg</em>, <em>options=None</em>, <em>exc_info=None</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ArchiveConvertOptionParser.warning" title="Permalink to this definition">¶</a></dt>
<dd><p>Print a warning message incorporating &#8216;msg&#8217; to stderr and exit.</p>
</dd></dl>

</dd></dl>

<dl class="class">
<dt id="translate.convert.convert.ConvertOptionParser">
<em class="property">class </em><tt class="descclassname">translate.convert.convert.</tt><tt class="descname">ConvertOptionParser</tt><big>(</big><em>formats</em>, <em>usetemplates=False</em>, <em>usepots=False</em>, <em>allowmissingtemplate=False</em>, <em>description=None</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser" title="Permalink to this definition">¶</a></dt>
<dd><p>A specialized Option Parser for convertor tools...</p>
<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.add_duplicates_option">
<tt class="descname">add_duplicates_option</tt><big>(</big><em>default='msgctxt'</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.add_duplicates_option" title="Permalink to this definition">¶</a></dt>
<dd><p>Adds an option to say what to do with duplicate strings.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.add_fuzzy_option">
<tt class="descname">add_fuzzy_option</tt><big>(</big><em>default=False</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.add_fuzzy_option" title="Permalink to this definition">¶</a></dt>
<dd><p>Adds an option to include / exclude fuzzy translations.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.add_multifile_option">
<tt class="descname">add_multifile_option</tt><big>(</big><em>default='single'</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.add_multifile_option" title="Permalink to this definition">¶</a></dt>
<dd><p>Adds an option to say how to split the po/pot files.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.add_option">
<tt class="descname">add_option</tt><big>(</big><em>Option</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.add_option" title="Permalink to this definition">¶</a></dt>
<dd><p>add_option(opt_str, ..., kwarg=val, ...)</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.check_values">
<tt class="descname">check_values</tt><big>(</big><em>values : Values, args : [string]</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.check_values" title="Permalink to this definition">¶</a></dt>
<dd><p>-&gt; (values : Values, args : [string])</p>
<p>Check that the supplied option values and leftover arguments are
valid.  Returns the option values and leftover arguments
(possibly adjusted, possibly completely new &#8211; whatever you
like).  Default implementation just returns the passed-in
values; subclasses may override as desired.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.checkoutputsubdir">
<tt class="descname">checkoutputsubdir</tt><big>(</big><em>options</em>, <em>subdir</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.checkoutputsubdir" title="Permalink to this definition">¶</a></dt>
<dd><p>Checks to see if subdir under options.output needs to be created,
creates if neccessary.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.define_option">
<tt class="descname">define_option</tt><big>(</big><em>option</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.define_option" title="Permalink to this definition">¶</a></dt>
<dd><p>Defines the given option, replacing an existing one of the same short
name if neccessary...</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.destroy">
<tt class="descname">destroy</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.destroy" title="Permalink to this definition">¶</a></dt>
<dd><p>Declare that you are done with this OptionParser.  This cleans up
reference cycles so the OptionParser (and all objects referenced by
it) can be garbage-collected promptly.  After calling destroy(), the
OptionParser is unusable.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.disable_interspersed_args">
<tt class="descname">disable_interspersed_args</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.disable_interspersed_args" title="Permalink to this definition">¶</a></dt>
<dd><p>Set parsing to stop on the first non-option. Use this if
you have a command processor which runs another command that
has options of its own and you want to make sure these options
don&#8217;t get confused.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.enable_interspersed_args">
<tt class="descname">enable_interspersed_args</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.enable_interspersed_args" title="Permalink to this definition">¶</a></dt>
<dd><p>Set parsing to not stop on the first non-option, allowing
interspersing switches with command arguments. This is the
default behavior. See also disable_interspersed_args() and the
class documentation description of the attribute
allow_interspersed_args.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.error">
<tt class="descname">error</tt><big>(</big><em>msg : string</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.error" title="Permalink to this definition">¶</a></dt>
<dd><p>Print a usage message incorporating &#8216;msg&#8217; to stderr and exit.
If you override this in a subclass, it should not return &#8211; it
should either exit or raise an exception.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.filterinputformats">
<tt class="descname">filterinputformats</tt><big>(</big><em>options</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.filterinputformats" title="Permalink to this definition">¶</a></dt>
<dd><p>Filters input formats, processing relevant switches in options.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.filteroutputoptions">
<tt class="descname">filteroutputoptions</tt><big>(</big><em>options</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.filteroutputoptions" title="Permalink to this definition">¶</a></dt>
<dd><p>Filters output options, processing relevant switches in options.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.finalizetempoutputfile">
<tt class="descname">finalizetempoutputfile</tt><big>(</big><em>options</em>, <em>outputfile</em>, <em>fulloutputpath</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.finalizetempoutputfile" title="Permalink to this definition">¶</a></dt>
<dd><p>Write the temp outputfile to its final destination.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.format_manpage">
<tt class="descname">format_manpage</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.format_manpage" title="Permalink to this definition">¶</a></dt>
<dd><p>returns a formatted manpage</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.getformathelp">
<tt class="descname">getformathelp</tt><big>(</big><em>formats</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.getformathelp" title="Permalink to this definition">¶</a></dt>
<dd><p>Make a nice help string for describing formats...</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.getfullinputpath">
<tt class="descname">getfullinputpath</tt><big>(</big><em>options</em>, <em>inputpath</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.getfullinputpath" title="Permalink to this definition">¶</a></dt>
<dd><p>Gets the absolute path to an input file.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.getfulloutputpath">
<tt class="descname">getfulloutputpath</tt><big>(</big><em>options</em>, <em>outputpath</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.getfulloutputpath" title="Permalink to this definition">¶</a></dt>
<dd><p>Gets the absolute path to an output file.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.getfulltemplatepath">
<tt class="descname">getfulltemplatepath</tt><big>(</big><em>options</em>, <em>templatepath</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.getfulltemplatepath" title="Permalink to this definition">¶</a></dt>
<dd><p>Gets the absolute path to a template file.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.getoutputname">
<tt class="descname">getoutputname</tt><big>(</big><em>options</em>, <em>inputname</em>, <em>outputformat</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.getoutputname" title="Permalink to this definition">¶</a></dt>
<dd><p>Gets an output filename based on the input filename.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.getoutputoptions">
<tt class="descname">getoutputoptions</tt><big>(</big><em>options</em>, <em>inputpath</em>, <em>templatepath</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.getoutputoptions" title="Permalink to this definition">¶</a></dt>
<dd><p>Works out which output format and processor method to use...</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.getpassthroughoptions">
<tt class="descname">getpassthroughoptions</tt><big>(</big><em>options</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.getpassthroughoptions" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the options required to pass to the filtermethod...</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.gettemplatename">
<tt class="descname">gettemplatename</tt><big>(</big><em>options</em>, <em>inputname</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.gettemplatename" title="Permalink to this definition">¶</a></dt>
<dd><p>Gets an output filename based on the input filename.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.getusageman">
<tt class="descname">getusageman</tt><big>(</big><em>option</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.getusageman" title="Permalink to this definition">¶</a></dt>
<dd><p>returns the usage string for the given option</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.getusagestring">
<tt class="descname">getusagestring</tt><big>(</big><em>option</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.getusagestring" title="Permalink to this definition">¶</a></dt>
<dd><p>returns the usage string for the given option</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.initprogressbar">
<tt class="descname">initprogressbar</tt><big>(</big><em>allfiles</em>, <em>options</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.initprogressbar" title="Permalink to this definition">¶</a></dt>
<dd><p>Sets up a progress bar appropriate to the options and files.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.isexcluded">
<tt class="descname">isexcluded</tt><big>(</big><em>options</em>, <em>inputpath</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.isexcluded" title="Permalink to this definition">¶</a></dt>
<dd><p>Checks if this path has been excluded.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.isrecursive">
<tt class="descname">isrecursive</tt><big>(</big><em>fileoption</em>, <em>filepurpose='input'</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.isrecursive" title="Permalink to this definition">¶</a></dt>
<dd><p>Checks if fileoption is a recursive file.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.isvalidinputname">
<tt class="descname">isvalidinputname</tt><big>(</big><em>options</em>, <em>inputname</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.isvalidinputname" title="Permalink to this definition">¶</a></dt>
<dd><p>Checks if this is a valid input filename.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.mkdir">
<tt class="descname">mkdir</tt><big>(</big><em>parent</em>, <em>subdir</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.mkdir" title="Permalink to this definition">¶</a></dt>
<dd><p>Makes a subdirectory (recursively if neccessary).</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.openinputfile">
<tt class="descname">openinputfile</tt><big>(</big><em>options</em>, <em>fullinputpath</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.openinputfile" title="Permalink to this definition">¶</a></dt>
<dd><p>Opens the input file.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.openoutputfile">
<tt class="descname">openoutputfile</tt><big>(</big><em>options</em>, <em>fulloutputpath</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.openoutputfile" title="Permalink to this definition">¶</a></dt>
<dd><p>Opens the output file.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.opentemplatefile">
<tt class="descname">opentemplatefile</tt><big>(</big><em>options</em>, <em>fulltemplatepath</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.opentemplatefile" title="Permalink to this definition">¶</a></dt>
<dd><p>Opens the template file (if required).</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.opentempoutputfile">
<tt class="descname">opentempoutputfile</tt><big>(</big><em>options</em>, <em>fulloutputpath</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.opentempoutputfile" title="Permalink to this definition">¶</a></dt>
<dd><p>Opens a temporary output file.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.parse_args">
<tt class="descname">parse_args</tt><big>(</big><em>args=None</em>, <em>values=None</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.parse_args" title="Permalink to this definition">¶</a></dt>
<dd><p>Parses the command line options, handling implicit input/output
args.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.potifyformat">
<tt class="descname">potifyformat</tt><big>(</big><em>fileformat</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.potifyformat" title="Permalink to this definition">¶</a></dt>
<dd><p>Converts a .po to a .pot where required.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.print_help">
<tt class="descname">print_help</tt><big>(</big><em>file : file = stdout</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.print_help" title="Permalink to this definition">¶</a></dt>
<dd><p>Print an extended help message, listing all options and any
help text provided with them, to &#8216;file&#8217; (default stdout).</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.print_manpage">
<tt class="descname">print_manpage</tt><big>(</big><em>file=None</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.print_manpage" title="Permalink to this definition">¶</a></dt>
<dd><p>outputs a manpage for the program using the help information</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.print_usage">
<tt class="descname">print_usage</tt><big>(</big><em>file : file = stdout</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.print_usage" title="Permalink to this definition">¶</a></dt>
<dd><p>Print the usage message for the current program (self.usage) to
&#8216;file&#8217; (default stdout).  Any occurrence of the string &#8220;%prog&#8221; in
self.usage is replaced with the name of the current program
(basename of sys.argv[0]).  Does nothing if self.usage is empty
or not defined.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.print_version">
<tt class="descname">print_version</tt><big>(</big><em>file : file = stdout</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.print_version" title="Permalink to this definition">¶</a></dt>
<dd><p>Print the version message for this program (self.version) to
&#8216;file&#8217; (default stdout).  As with print_usage(), any occurrence
of &#8220;%prog&#8221; in self.version is replaced by the current program&#8217;s
name.  Does nothing if self.version is empty or undefined.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.processfile">
<tt class="descname">processfile</tt><big>(</big><em>fileprocessor</em>, <em>options</em>, <em>fullinputpath</em>, <em>fulloutputpath</em>, <em>fulltemplatepath</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.processfile" title="Permalink to this definition">¶</a></dt>
<dd><p>Process an individual file.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.recurseinputfilelist">
<tt class="descname">recurseinputfilelist</tt><big>(</big><em>options</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.recurseinputfilelist" title="Permalink to this definition">¶</a></dt>
<dd><p>Use a list of files, and find a common base directory for them.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.recurseinputfiles">
<tt class="descname">recurseinputfiles</tt><big>(</big><em>options</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.recurseinputfiles" title="Permalink to this definition">¶</a></dt>
<dd><p>Recurse through directories and return files to be processed.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.recursiveprocess">
<tt class="descname">recursiveprocess</tt><big>(</big><em>options</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.recursiveprocess" title="Permalink to this definition">¶</a></dt>
<dd><p>Recurse through directories and process files.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.reportprogress">
<tt class="descname">reportprogress</tt><big>(</big><em>filename</em>, <em>success</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.reportprogress" title="Permalink to this definition">¶</a></dt>
<dd><p>Shows that we are progressing...</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.run">
<tt class="descname">run</tt><big>(</big><em>argv=None</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.run" title="Permalink to this definition">¶</a></dt>
<dd><p>Parses the command line options and runs the conversion.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.set_usage">
<tt class="descname">set_usage</tt><big>(</big><em>usage=None</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.set_usage" title="Permalink to this definition">¶</a></dt>
<dd><p>sets the usage string - if usage not given, uses getusagestring for
each option</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.seterrorleveloptions">
<tt class="descname">seterrorleveloptions</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.seterrorleveloptions" title="Permalink to this definition">¶</a></dt>
<dd><p>Sets the errorlevel options.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.setformats">
<tt class="descname">setformats</tt><big>(</big><em>formats</em>, <em>usetemplates</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.setformats" title="Permalink to this definition">¶</a></dt>
<dd><p>Sets the format options using the given format dictionary.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>formats</strong> (<em>Dictionary</em>) &#8211; <p>The dictionary <em>keys</em> should be:</p>
<ul class="simple">
<li>Single strings (or 1-tuples) containing an
input format (if not <em>usetemplates</em>)</li>
<li>Tuples containing an input format and
template format (if <em>usetemplates</em>)</li>
<li>Formats can be <em>None</em> to indicate what to do
with standard input</li>
</ul>
<p>The dictionary <em>values</em> should be tuples of
outputformat (string) and processor method.</p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.setmanpageoption">
<tt class="descname">setmanpageoption</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.setmanpageoption" title="Permalink to this definition">¶</a></dt>
<dd><p>creates a manpage option that allows the optionparser to generate a
manpage</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.setpotoption">
<tt class="descname">setpotoption</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.setpotoption" title="Permalink to this definition">¶</a></dt>
<dd><p>Sets the <tt class="docutils literal"><span class="pre">-P</span></tt>/<tt class="docutils literal"><span class="pre">--pot</span></tt> option depending on input/output
formats etc.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.setprogressoptions">
<tt class="descname">setprogressoptions</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.setprogressoptions" title="Permalink to this definition">¶</a></dt>
<dd><p>Sets the progress options.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.splitext">
<tt class="descname">splitext</tt><big>(</big><em>pathname</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.splitext" title="Permalink to this definition">¶</a></dt>
<dd><p>Splits <em>pathname</em> into name and ext, and removes the extsep.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>pathname</strong> (<a class="reference external" href="http://docs.python.org/2.7/library/string.html#string" title="(in Python v2.7)"><em>string</em></a>) &#8211; A file path</td>
</tr>
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">root, ext</td>
</tr>
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">tuple</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.splitinputext">
<tt class="descname">splitinputext</tt><big>(</big><em>inputpath</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.splitinputext" title="Permalink to this definition">¶</a></dt>
<dd><p>Splits an <em>inputpath</em> into name and extension.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.splittemplateext">
<tt class="descname">splittemplateext</tt><big>(</big><em>templatepath</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.splittemplateext" title="Permalink to this definition">¶</a></dt>
<dd><p>Splits a <em>templatepath</em> into name and extension.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.templateexists">
<tt class="descname">templateexists</tt><big>(</big><em>options</em>, <em>templatepath</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.templateexists" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns whether the given template exists...</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.verifyoptions">
<tt class="descname">verifyoptions</tt><big>(</big><em>options</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.verifyoptions" title="Permalink to this definition">¶</a></dt>
<dd><p>Verifies that the options are valid (required options are
present, etc).</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.ConvertOptionParser.warning">
<tt class="descname">warning</tt><big>(</big><em>msg</em>, <em>options=None</em>, <em>exc_info=None</em><big>)</big><a class="headerlink" href="#translate.convert.convert.ConvertOptionParser.warning" title="Permalink to this definition">¶</a></dt>
<dd><p>Print a warning message incorporating &#8216;msg&#8217; to stderr and exit.</p>
</dd></dl>

</dd></dl>

<dl class="class">
<dt id="translate.convert.convert.Replacer">
<em class="property">class </em><tt class="descclassname">translate.convert.convert.</tt><tt class="descname">Replacer</tt><big>(</big><em>searchstring</em>, <em>replacestring</em><big>)</big><a class="headerlink" href="#translate.convert.convert.Replacer" title="Permalink to this definition">¶</a></dt>
<dd><p>An object that knows how to replace strings in files.</p>
<dl class="method">
<dt id="translate.convert.convert.Replacer.doreplace">
<tt class="descname">doreplace</tt><big>(</big><em>text</em><big>)</big><a class="headerlink" href="#translate.convert.convert.Replacer.doreplace" title="Permalink to this definition">¶</a></dt>
<dd><p>actually replace the text</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.Replacer.searchreplaceinput">
<tt class="descname">searchreplaceinput</tt><big>(</big><em>inputfile</em>, <em>outputfile</em>, <em>templatefile</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#translate.convert.convert.Replacer.searchreplaceinput" title="Permalink to this definition">¶</a></dt>
<dd><p>copies the input file to the output file, searching and replacing</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.convert.Replacer.searchreplacetemplate">
<tt class="descname">searchreplacetemplate</tt><big>(</big><em>inputfile</em>, <em>outputfile</em>, <em>templatefile</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#translate.convert.convert.Replacer.searchreplacetemplate" title="Permalink to this definition">¶</a></dt>
<dd><p>Copies the template file to the output file, searching and
replacing.</p>
</dd></dl>

</dd></dl>

<dl class="function">
<dt id="translate.convert.convert.copyinput">
<tt class="descclassname">translate.convert.convert.</tt><tt class="descname">copyinput</tt><big>(</big><em>inputfile</em>, <em>outputfile</em>, <em>templatefile</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#translate.convert.convert.copyinput" title="Permalink to this definition">¶</a></dt>
<dd><p>Copies the input file to the output file.</p>
</dd></dl>

<dl class="function">
<dt id="translate.convert.convert.copytemplate">
<tt class="descclassname">translate.convert.convert.</tt><tt class="descname">copytemplate</tt><big>(</big><em>inputfile</em>, <em>outputfile</em>, <em>templatefile</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#translate.convert.convert.copytemplate" title="Permalink to this definition">¶</a></dt>
<dd><p>Copies the template file to the output file.</p>
</dd></dl>

</div>
<div class="section" id="module-translate.convert.csv2po">
<span id="csv2po"></span><h2>csv2po<a class="headerlink" href="#module-translate.convert.csv2po" title="Permalink to this headline">¶</a></h2>
<p>Convert Comma-Separated Value (.csv) files to Gettext PO localization files.</p>
<p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/csv2po.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/csv2po.html</a>
for examples and usage instructions.</p>
<dl class="function">
<dt id="translate.convert.csv2po.convertcsv">
<tt class="descclassname">translate.convert.csv2po.</tt><tt class="descname">convertcsv</tt><big>(</big><em>inputfile</em>, <em>outputfile</em>, <em>templatefile</em>, <em>charset=None</em>, <em>columnorder=None</em>, <em>duplicatestyle='msgctxt'</em><big>)</big><a class="headerlink" href="#translate.convert.csv2po.convertcsv" title="Permalink to this definition">¶</a></dt>
<dd><p>reads in inputfile using csvl10n, converts using csv2po, writes to
outputfile</p>
</dd></dl>

<dl class="class">
<dt id="translate.convert.csv2po.csv2po">
<em class="property">class </em><tt class="descclassname">translate.convert.csv2po.</tt><tt class="descname">csv2po</tt><big>(</big><em>templatepo=None</em>, <em>charset=None</em>, <em>duplicatestyle='keep'</em><big>)</big><a class="headerlink" href="#translate.convert.csv2po.csv2po" title="Permalink to this definition">¶</a></dt>
<dd><p>a class that takes translations from a .csv file and puts them in a
.po file</p>
<dl class="method">
<dt id="translate.convert.csv2po.csv2po.convertstore">
<tt class="descname">convertstore</tt><big>(</big><em>thecsvfile</em><big>)</big><a class="headerlink" href="#translate.convert.csv2po.csv2po.convertstore" title="Permalink to this definition">¶</a></dt>
<dd><p>converts a csvfile to a pofile, and returns it. uses templatepo if
given at construction</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.csv2po.csv2po.convertunit">
<tt class="descname">convertunit</tt><big>(</big><em>csvunit</em><big>)</big><a class="headerlink" href="#translate.convert.csv2po.csv2po.convertunit" title="Permalink to this definition">¶</a></dt>
<dd><p>converts csv unit to po unit</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.csv2po.csv2po.handlecsvunit">
<tt class="descname">handlecsvunit</tt><big>(</big><em>csvunit</em><big>)</big><a class="headerlink" href="#translate.convert.csv2po.csv2po.handlecsvunit" title="Permalink to this definition">¶</a></dt>
<dd><p>handles reintegrating a csv unit into the .po file</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.csv2po.csv2po.makeindex">
<tt class="descname">makeindex</tt><big>(</big><big>)</big><a class="headerlink" href="#translate.convert.csv2po.csv2po.makeindex" title="Permalink to this definition">¶</a></dt>
<dd><p>makes indexes required for searching...</p>
</dd></dl>

</dd></dl>

<dl class="function">
<dt id="translate.convert.csv2po.replacestrings">
<tt class="descclassname">translate.convert.csv2po.</tt><tt class="descname">replacestrings</tt><big>(</big><em>source</em>, <em>*pairs</em><big>)</big><a class="headerlink" href="#translate.convert.csv2po.replacestrings" title="Permalink to this definition">¶</a></dt>
<dd><p>Use <tt class="docutils literal"><span class="pre">pairs</span></tt> of <tt class="docutils literal"><span class="pre">(original,</span> <span class="pre">replacement)</span></tt> to replace text found in
<tt class="docutils literal"><span class="pre">source</span></tt>.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>source</strong> (<em>String</em>) &#8211; String to on which <tt class="docutils literal"><span class="pre">pairs</span></tt> of strings are to be replaced</li>
<li><strong>*pairs</strong> (<em>One or more tuples of (original, replacement)</em>) &#8211; Strings to be matched and replaced</li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">String with <tt class="docutils literal"><span class="pre">*pairs</span></tt> of strings replaced</p>
</td>
</tr>
</tbody>
</table>
</dd></dl>

</div>
<div class="section" id="module-translate.convert.csv2tbx">
<span id="csv2tbx"></span><h2>csv2tbx<a class="headerlink" href="#module-translate.convert.csv2tbx" title="Permalink to this headline">¶</a></h2>
<p>Convert Comma-Separated Value (.csv) files to a TermBase eXchange (.tbx)
glossary file</p>
<p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/csv2tbx.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/csv2tbx.html</a>
for examples and usage instructions</p>
<dl class="function">
<dt id="translate.convert.csv2tbx.convertcsv">
<tt class="descclassname">translate.convert.csv2tbx.</tt><tt class="descname">convertcsv</tt><big>(</big><em>inputfile</em>, <em>outputfile</em>, <em>templatefile</em>, <em>charset=None</em>, <em>columnorder=None</em><big>)</big><a class="headerlink" href="#translate.convert.csv2tbx.convertcsv" title="Permalink to this definition">¶</a></dt>
<dd><p>reads in inputfile using csvl10n, converts using csv2tbx, writes to
outputfile</p>
</dd></dl>

<dl class="class">
<dt id="translate.convert.csv2tbx.csv2tbx">
<em class="property">class </em><tt class="descclassname">translate.convert.csv2tbx.</tt><tt class="descname">csv2tbx</tt><big>(</big><em>charset=None</em><big>)</big><a class="headerlink" href="#translate.convert.csv2tbx.csv2tbx" title="Permalink to this definition">¶</a></dt>
<dd><p>a class that takes translations from a .csv file and puts them in a
.tbx file</p>
<dl class="method">
<dt id="translate.convert.csv2tbx.csv2tbx.convertfile">
<tt class="descname">convertfile</tt><big>(</big><em>csvfile</em><big>)</big><a class="headerlink" href="#translate.convert.csv2tbx.csv2tbx.convertfile" title="Permalink to this definition">¶</a></dt>
<dd><p>converts a csvfile to a tbxfile, and returns it. uses templatepo
if given at construction</p>
</dd></dl>

</dd></dl>

</div>
<div class="section" id="module-translate.convert.dtd2po">
<span id="dtd2po"></span><h2>dtd2po<a class="headerlink" href="#module-translate.convert.dtd2po" title="Permalink to this headline">¶</a></h2>
<p>Convert a Mozilla .dtd UTF-8 localization format to a
Gettext PO localization file.</p>
<p>Uses the po and dtd modules, and the
dtd2po convertor class which is in this module
You can convert back to .dtd using po2dtd.py.</p>
<dl class="function">
<dt id="translate.convert.dtd2po.convertdtd">
<tt class="descclassname">translate.convert.dtd2po.</tt><tt class="descname">convertdtd</tt><big>(</big><em>inputfile</em>, <em>outputfile</em>, <em>templatefile</em>, <em>pot=False</em>, <em>duplicatestyle='msgctxt'</em><big>)</big><a class="headerlink" href="#translate.convert.dtd2po.convertdtd" title="Permalink to this definition">¶</a></dt>
<dd><p>reads in inputfile and templatefile using dtd, converts using dtd2po,
writes to outputfile</p>
</dd></dl>

<dl class="function">
<dt id="translate.convert.dtd2po.is_css_entity">
<tt class="descclassname">translate.convert.dtd2po.</tt><tt class="descname">is_css_entity</tt><big>(</big><em>entity</em><big>)</big><a class="headerlink" href="#translate.convert.dtd2po.is_css_entity" title="Permalink to this definition">¶</a></dt>
<dd><p>Says if the given entity is likely to contain CSS that should not be
translated.</p>
</dd></dl>

</div>
<div class="section" id="module-translate.convert.factory">
<span id="factory"></span><h2>factory<a class="headerlink" href="#module-translate.convert.factory" title="Permalink to this headline">¶</a></h2>
<p>Factory methods to convert supported input files to supported translatable files.</p>
</div>
<div class="section" id="module-translate.convert.html2po">
<span id="html2po"></span><h2>html2po<a class="headerlink" href="#module-translate.convert.html2po" title="Permalink to this headline">¶</a></h2>
<p>Convert HTML files to Gettext PO localization files.</p>
<p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/html2po.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/html2po.html</a>
for examples and usage instructions.</p>
<dl class="function">
<dt id="translate.convert.html2po.converthtml">
<tt class="descclassname">translate.convert.html2po.</tt><tt class="descname">converthtml</tt><big>(</big><em>inputfile</em>, <em>outputfile</em>, <em>templates</em>, <em>includeuntagged=False</em>, <em>pot=False</em>, <em>duplicatestyle='msgctxt'</em>, <em>keepcomments=False</em><big>)</big><a class="headerlink" href="#translate.convert.html2po.converthtml" title="Permalink to this definition">¶</a></dt>
<dd><p>reads in stdin using fromfileclass, converts using convertorclass,
writes to stdout</p>
</dd></dl>

</div>
<div class="section" id="module-translate.convert.ical2po">
<span id="ical2po"></span><h2>ical2po<a class="headerlink" href="#module-translate.convert.ical2po" title="Permalink to this headline">¶</a></h2>
<p>Convert iCal files to Gettext PO localization files.</p>
<p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/ical2po.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/ical2po.html</a>
for examples and usage instructions.</p>
<dl class="function">
<dt id="translate.convert.ical2po.convertical">
<tt class="descclassname">translate.convert.ical2po.</tt><tt class="descname">convertical</tt><big>(</big><em>input_file</em>, <em>output_file</em>, <em>template_file</em>, <em>pot=False</em>, <em>duplicatestyle='msgctxt'</em><big>)</big><a class="headerlink" href="#translate.convert.ical2po.convertical" title="Permalink to this definition">¶</a></dt>
<dd><p>Reads in <em>input_file</em> using iCal, converts using <a class="reference internal" href="#translate.convert.ical2po.ical2po" title="translate.convert.ical2po.ical2po"><tt class="xref py py-class docutils literal"><span class="pre">ical2po</span></tt></a>,
writes to <em>output_file</em>.</p>
</dd></dl>

<dl class="class">
<dt id="translate.convert.ical2po.ical2po">
<em class="property">class </em><tt class="descclassname">translate.convert.ical2po.</tt><tt class="descname">ical2po</tt><a class="headerlink" href="#translate.convert.ical2po.ical2po" title="Permalink to this definition">¶</a></dt>
<dd><p>convert a iCal file to a .po file for handling the translation...</p>
<dl class="method">
<dt id="translate.convert.ical2po.ical2po.convert_store">
<tt class="descname">convert_store</tt><big>(</big><em>input_store</em>, <em>duplicatestyle='msgctxt'</em><big>)</big><a class="headerlink" href="#translate.convert.ical2po.ical2po.convert_store" title="Permalink to this definition">¶</a></dt>
<dd><p>converts a iCal file to a .po file...</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.ical2po.ical2po.convert_unit">
<tt class="descname">convert_unit</tt><big>(</big><em>input_unit</em>, <em>commenttype</em><big>)</big><a class="headerlink" href="#translate.convert.ical2po.ical2po.convert_unit" title="Permalink to this definition">¶</a></dt>
<dd><p>Converts a .ini unit to a .po unit. Returns None if empty
or not for translation.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.ical2po.ical2po.merge_store">
<tt class="descname">merge_store</tt><big>(</big><em>template_store</em>, <em>input_store</em>, <em>blankmsgstr=False</em>, <em>duplicatestyle='msgctxt'</em><big>)</big><a class="headerlink" href="#translate.convert.ical2po.ical2po.merge_store" title="Permalink to this definition">¶</a></dt>
<dd><p>converts two iCal files to a .po file...</p>
</dd></dl>

</dd></dl>

</div>
<div class="section" id="module-translate.convert.ini2po">
<span id="ini2po"></span><h2>ini2po<a class="headerlink" href="#module-translate.convert.ini2po" title="Permalink to this headline">¶</a></h2>
<p>Convert .ini files to Gettext PO localization files.</p>
<p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/ini2po.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/ini2po.html</a>
for examples and usage instructions.</p>
<dl class="function">
<dt id="translate.convert.ini2po.convertini">
<tt class="descclassname">translate.convert.ini2po.</tt><tt class="descname">convertini</tt><big>(</big><em>input_file</em>, <em>output_file</em>, <em>template_file</em>, <em>pot=False</em>, <em>duplicatestyle='msgctxt'</em>, <em>dialect='default'</em><big>)</big><a class="headerlink" href="#translate.convert.ini2po.convertini" title="Permalink to this definition">¶</a></dt>
<dd><p>Reads in <em>input_file</em> using ini, converts using <a class="reference internal" href="#translate.convert.ini2po.ini2po" title="translate.convert.ini2po.ini2po"><tt class="xref py py-class docutils literal"><span class="pre">ini2po</span></tt></a>,
writes to <em>output_file</em>.</p>
</dd></dl>

<dl class="class">
<dt id="translate.convert.ini2po.ini2po">
<em class="property">class </em><tt class="descclassname">translate.convert.ini2po.</tt><tt class="descname">ini2po</tt><a class="headerlink" href="#translate.convert.ini2po.ini2po" title="Permalink to this definition">¶</a></dt>
<dd><p>convert a .ini file to a .po file for handling the translation...</p>
<dl class="method">
<dt id="translate.convert.ini2po.ini2po.convert_store">
<tt class="descname">convert_store</tt><big>(</big><em>input_store</em>, <em>duplicatestyle='msgctxt'</em><big>)</big><a class="headerlink" href="#translate.convert.ini2po.ini2po.convert_store" title="Permalink to this definition">¶</a></dt>
<dd><p>converts a .ini file to a .po file...</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.ini2po.ini2po.convert_unit">
<tt class="descname">convert_unit</tt><big>(</big><em>input_unit</em>, <em>commenttype</em><big>)</big><a class="headerlink" href="#translate.convert.ini2po.ini2po.convert_unit" title="Permalink to this definition">¶</a></dt>
<dd><p>Converts a .ini unit to a .po unit. Returns None if empty
or not for translation.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.ini2po.ini2po.merge_store">
<tt class="descname">merge_store</tt><big>(</big><em>template_store</em>, <em>input_store</em>, <em>blankmsgstr=False</em>, <em>duplicatestyle='msgctxt'</em><big>)</big><a class="headerlink" href="#translate.convert.ini2po.ini2po.merge_store" title="Permalink to this definition">¶</a></dt>
<dd><p>converts two .ini files to a .po file...</p>
</dd></dl>

</dd></dl>

</div>
<div class="section" id="module-translate.convert.json2po">
<span id="json2po"></span><h2>json2po<a class="headerlink" href="#module-translate.convert.json2po" title="Permalink to this headline">¶</a></h2>
<p>Convert JSON files to Gettext PO localization files.</p>
<p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/json2po.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/json2po.html</a>
for examples and usage instructions.</p>
<dl class="function">
<dt id="translate.convert.json2po.convertjson">
<tt class="descclassname">translate.convert.json2po.</tt><tt class="descname">convertjson</tt><big>(</big><em>input_file</em>, <em>output_file</em>, <em>template_file</em>, <em>pot=False</em>, <em>duplicatestyle='msgctxt'</em>, <em>dialect='default'</em>, <em>filter=None</em><big>)</big><a class="headerlink" href="#translate.convert.json2po.convertjson" title="Permalink to this definition">¶</a></dt>
<dd><p>Reads in <em>input_file</em> using jsonl10n, converts using <a class="reference internal" href="#translate.convert.json2po.json2po" title="translate.convert.json2po.json2po"><tt class="xref py py-class docutils literal"><span class="pre">json2po</span></tt></a>,
writes to <em>output_file</em>.</p>
</dd></dl>

<dl class="class">
<dt id="translate.convert.json2po.json2po">
<em class="property">class </em><tt class="descclassname">translate.convert.json2po.</tt><tt class="descname">json2po</tt><a class="headerlink" href="#translate.convert.json2po.json2po" title="Permalink to this definition">¶</a></dt>
<dd><p>Convert a JSON file to a PO file</p>
<dl class="method">
<dt id="translate.convert.json2po.json2po.convert_store">
<tt class="descname">convert_store</tt><big>(</big><em>input_store</em>, <em>duplicatestyle='msgctxt'</em><big>)</big><a class="headerlink" href="#translate.convert.json2po.json2po.convert_store" title="Permalink to this definition">¶</a></dt>
<dd><p>Converts a JSON file to a PO file</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.json2po.json2po.convert_unit">
<tt class="descname">convert_unit</tt><big>(</big><em>input_unit</em>, <em>commenttype</em><big>)</big><a class="headerlink" href="#translate.convert.json2po.json2po.convert_unit" title="Permalink to this definition">¶</a></dt>
<dd><p>Converts a JSON unit to a PO unit</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">None if empty or not for translation</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="translate.convert.json2po.json2po.merge_store">
<tt class="descname">merge_store</tt><big>(</big><em>template_store</em>, <em>input_store</em>, <em>blankmsgstr=False</em>, <em>duplicatestyle='msgctxt'</em><big>)</big><a class="headerlink" href="#translate.convert.json2po.json2po.merge_store" title="Permalink to this definition">¶</a></dt>
<dd><p>Converts two JSON files to a PO file</p>
</dd></dl>

</dd></dl>

</div>
<div class="section" id="module-translate.convert.moz2po">
<span id="moz2po"></span><h2>moz2po<a class="headerlink" href="#module-translate.convert.moz2po" title="Permalink to this headline">¶</a></h2>
<p>Convert Mozilla .dtd and .properties files to Gettext PO localization files.</p>
<p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/moz2po.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/moz2po.html</a>
for examples and usage instructions.</p>
</div>
<div class="section" id="module-translate.convert.mozfunny2prop">
<span id="mozfunny2prop"></span><h2>mozfunny2prop<a class="headerlink" href="#module-translate.convert.mozfunny2prop" title="Permalink to this headline">¶</a></h2>
<p>Converts additional Mozilla files to properties files.</p>
<dl class="function">
<dt id="translate.convert.mozfunny2prop.inc2po">
<tt class="descclassname">translate.convert.mozfunny2prop.</tt><tt class="descname">inc2po</tt><big>(</big><em>inputfile</em>, <em>outputfile</em>, <em>templatefile</em>, <em>encoding=None</em>, <em>pot=False</em>, <em>duplicatestyle='msgctxt'</em><big>)</big><a class="headerlink" href="#translate.convert.mozfunny2prop.inc2po" title="Permalink to this definition">¶</a></dt>
<dd><p>wraps prop2po but converts input/template files to properties first</p>
</dd></dl>

<dl class="function">
<dt id="translate.convert.mozfunny2prop.inc2prop">
<tt class="descclassname">translate.convert.mozfunny2prop.</tt><tt class="descname">inc2prop</tt><big>(</big><em>lines</em><big>)</big><a class="headerlink" href="#translate.convert.mozfunny2prop.inc2prop" title="Permalink to this definition">¶</a></dt>
<dd><p>convert a .inc file with #defines in it to a properties file</p>
</dd></dl>

<dl class="function">
<dt id="translate.convert.mozfunny2prop.it2po">
<tt class="descclassname">translate.convert.mozfunny2prop.</tt><tt class="descname">it2po</tt><big>(</big><em>inputfile</em>, <em>outputfile</em>, <em>templatefile</em>, <em>encoding='cp1252'</em>, <em>pot=False</em>, <em>duplicatestyle='msgctxt'</em><big>)</big><a class="headerlink" href="#translate.convert.mozfunny2prop.it2po" title="Permalink to this definition">¶</a></dt>
<dd><p>wraps prop2po but converts input/template files to properties first</p>
</dd></dl>

<dl class="function">
<dt id="translate.convert.mozfunny2prop.it2prop">
<tt class="descclassname">translate.convert.mozfunny2prop.</tt><tt class="descname">it2prop</tt><big>(</big><em>lines</em>, <em>encoding='cp1252'</em><big>)</big><a class="headerlink" href="#translate.convert.mozfunny2prop.it2prop" title="Permalink to this definition">¶</a></dt>
<dd><p>convert a pseudo-properties .it file to a conventional properties file</p>
</dd></dl>

</div>
<div class="section" id="module-translate.convert.mozlang2po">
<span id="mozlang2po"></span><h2>mozlang2po<a class="headerlink" href="#module-translate.convert.mozlang2po" title="Permalink to this headline">¶</a></h2>
<p>Convert Mozilla .lang files to Gettext PO localization files.</p>
<dl class="function">
<dt id="translate.convert.mozlang2po.convertlang">
<tt class="descclassname">translate.convert.mozlang2po.</tt><tt class="descname">convertlang</tt><big>(</big><em>inputfile</em>, <em>outputfile</em>, <em>templates</em>, <em>pot=False</em>, <em>duplicatestyle='msgctxt'</em>, <em>encoding='utf-8'</em><big>)</big><a class="headerlink" href="#translate.convert.mozlang2po.convertlang" title="Permalink to this definition">¶</a></dt>
<dd><p>reads in stdin using fromfileclass, converts using convertorclass,
writes to stdout</p>
</dd></dl>

</div>
<div class="section" id="module-translate.convert.odf2xliff">
<span id="odf2xliff"></span><h2>odf2xliff<a class="headerlink" href="#module-translate.convert.odf2xliff" title="Permalink to this headline">¶</a></h2>
<p>Convert OpenDocument (ODF) files to XLIFF localization files.</p>
<p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/odf2xliff.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/odf2xliff.html</a>
for examples and usage instructions.</p>
<dl class="function">
<dt id="translate.convert.odf2xliff.convertodf">
<tt class="descclassname">translate.convert.odf2xliff.</tt><tt class="descname">convertodf</tt><big>(</big><em>inputfile</em>, <em>outputfile</em>, <em>templates</em>, <em>engine='toolkit'</em><big>)</big><a class="headerlink" href="#translate.convert.odf2xliff.convertodf" title="Permalink to this definition">¶</a></dt>
<dd><p>reads in stdin using fromfileclass, converts using convertorclass,
writes to stdout</p>
</dd></dl>

</div>
<div class="section" id="module-translate.convert.oo2po">
<span id="oo2po"></span><h2>oo2po<a class="headerlink" href="#module-translate.convert.oo2po" title="Permalink to this headline">¶</a></h2>
<p>Convert an OpenOffice.org (SDF) localization file to Gettext PO localization files.</p>
<p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/oo2po.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/oo2po.html</a>
for examples and usage instructions.</p>
<dl class="function">
<dt id="translate.convert.oo2po.convertoo">
<tt class="descclassname">translate.convert.oo2po.</tt><tt class="descname">convertoo</tt><big>(</big><em>inputfile</em>, <em>outputfile</em>, <em>templates</em>, <em>pot=False</em>, <em>sourcelanguage=None</em>, <em>targetlanguage=None</em>, <em>duplicatestyle='msgid_comment'</em>, <em>multifilestyle='single'</em><big>)</big><a class="headerlink" href="#translate.convert.oo2po.convertoo" title="Permalink to this definition">¶</a></dt>
<dd><p>reads in stdin using inputstore class, converts using convertorclass, writes to stdout</p>
</dd></dl>

<dl class="function">
<dt id="translate.convert.oo2po.verifyoptions">
<tt class="descclassname">translate.convert.oo2po.</tt><tt class="descname">verifyoptions</tt><big>(</big><em>options</em><big>)</big><a class="headerlink" href="#translate.convert.oo2po.verifyoptions" title="Permalink to this definition">¶</a></dt>
<dd><p>verifies the commandline options</p>
</dd></dl>

</div>
<div class="section" id="module-translate.convert.oo2xliff">
<span id="oo2xliff"></span><h2>oo2xliff<a class="headerlink" href="#module-translate.convert.oo2xliff" title="Permalink to this headline">¶</a></h2>
<p>Convert an OpenOffice.org (SDF) localization file to XLIFF localization files.</p>
<p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/oo2po.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/oo2po.html</a>
for examples and usage instructions.</p>
<dl class="function">
<dt id="translate.convert.oo2xliff.convertoo">
<tt class="descclassname">translate.convert.oo2xliff.</tt><tt class="descname">convertoo</tt><big>(</big><em>inputfile</em>, <em>outputfile</em>, <em>templates</em>, <em>pot=False</em>, <em>sourcelanguage=None</em>, <em>targetlanguage=None</em>, <em>duplicatestyle='msgctxt'</em>, <em>multifilestyle='single'</em><big>)</big><a class="headerlink" href="#translate.convert.oo2xliff.convertoo" title="Permalink to this definition">¶</a></dt>
<dd><p>reads in stdin using inputstore class, converts using convertorclass, writes to stdout</p>
</dd></dl>

<dl class="function">
<dt id="translate.convert.oo2xliff.verifyoptions">
<tt class="descclassname">translate.convert.oo2xliff.</tt><tt class="descname">verifyoptions</tt><big>(</big><em>options</em><big>)</big><a class="headerlink" href="#translate.convert.oo2xliff.verifyoptions" title="Permalink to this definition">¶</a></dt>
<dd><p>verifies the commandline options</p>
</dd></dl>

</div>
<div class="section" id="module-translate.convert.php2po">
<span id="php2po"></span><h2>php2po<a class="headerlink" href="#module-translate.convert.php2po" title="Permalink to this headline">¶</a></h2>
<p>Convert PHP localization files to Gettext PO localization files.</p>
<p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/php2po.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/php2po.html</a>
for examples and usage instructions.</p>
<dl class="function">
<dt id="translate.convert.php2po.convertphp">
<tt class="descclassname">translate.convert.php2po.</tt><tt class="descname">convertphp</tt><big>(</big><em>inputfile</em>, <em>outputfile</em>, <em>templatefile</em>, <em>pot=False</em>, <em>duplicatestyle='msgctxt'</em><big>)</big><a class="headerlink" href="#translate.convert.php2po.convertphp" title="Permalink to this definition">¶</a></dt>
<dd><p>reads in inputfile using php, converts using php2po, writes to outputfile</p>
</dd></dl>

<dl class="class">
<dt id="translate.convert.php2po.php2po">
<em class="property">class </em><tt class="descclassname">translate.convert.php2po.</tt><tt class="descname">php2po</tt><a class="headerlink" href="#translate.convert.php2po.php2po" title="Permalink to this definition">¶</a></dt>
<dd><p>convert a .php file to a .po file for handling the translation...</p>
<dl class="method">
<dt id="translate.convert.php2po.php2po.convertstore">
<tt class="descname">convertstore</tt><big>(</big><em>inputstore</em>, <em>duplicatestyle='msgctxt'</em><big>)</big><a class="headerlink" href="#translate.convert.php2po.php2po.convertstore" title="Permalink to this definition">¶</a></dt>
<dd><p>converts a .php file to a .po file...</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.php2po.php2po.convertunit">
<tt class="descname">convertunit</tt><big>(</big><em>inputunit</em>, <em>origin</em><big>)</big><a class="headerlink" href="#translate.convert.php2po.php2po.convertunit" title="Permalink to this definition">¶</a></dt>
<dd><p>Converts a .php unit to a .po unit</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.php2po.php2po.mergestore">
<tt class="descname">mergestore</tt><big>(</big><em>templatestore</em>, <em>inputstore</em>, <em>blankmsgstr=False</em>, <em>duplicatestyle='msgctxt'</em><big>)</big><a class="headerlink" href="#translate.convert.php2po.php2po.mergestore" title="Permalink to this definition">¶</a></dt>
<dd><p>converts two .php files to a .po file...</p>
</dd></dl>

</dd></dl>

</div>
<div class="section" id="module-translate.convert.po2csv">
<span id="po2csv"></span><h2>po2csv<a class="headerlink" href="#module-translate.convert.po2csv" title="Permalink to this headline">¶</a></h2>
<p>Convert Gettext PO localization files to Comma-Separated Value (.csv) files.</p>
<p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/csv2po.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/csv2po.html</a>
for examples and usage instructions.</p>
<dl class="function">
<dt id="translate.convert.po2csv.convertcsv">
<tt class="descclassname">translate.convert.po2csv.</tt><tt class="descname">convertcsv</tt><big>(</big><em>inputfile</em>, <em>outputfile</em>, <em>templatefile</em>, <em>columnorder=None</em><big>)</big><a class="headerlink" href="#translate.convert.po2csv.convertcsv" title="Permalink to this definition">¶</a></dt>
<dd><p>reads in inputfile using po, converts using po2csv, writes to outputfile</p>
</dd></dl>

</div>
<div class="section" id="module-translate.convert.po2dtd">
<span id="po2dtd"></span><h2>po2dtd<a class="headerlink" href="#module-translate.convert.po2dtd" title="Permalink to this headline">¶</a></h2>
<p>Converts a Gettext PO file to a UTF-8 encoded Mozilla .dtd file.</p>
<dl class="function">
<dt id="translate.convert.po2dtd.applytranslation">
<tt class="descclassname">translate.convert.po2dtd.</tt><tt class="descname">applytranslation</tt><big>(</big><em>entity</em>, <em>dtdunit</em>, <em>inputunit</em>, <em>mixedentities</em><big>)</big><a class="headerlink" href="#translate.convert.po2dtd.applytranslation" title="Permalink to this definition">¶</a></dt>
<dd><p>applies the translation for entity in the po unit to the dtd unit</p>
</dd></dl>

<dl class="class">
<dt id="translate.convert.po2dtd.po2dtd">
<em class="property">class </em><tt class="descclassname">translate.convert.po2dtd.</tt><tt class="descname">po2dtd</tt><big>(</big><em>android=False</em><big>)</big><a class="headerlink" href="#translate.convert.po2dtd.po2dtd" title="Permalink to this definition">¶</a></dt>
<dd><p>this is a convertor class that creates a new dtd file based on a po file without a template</p>
</dd></dl>

<dl class="class">
<dt id="translate.convert.po2dtd.redtd">
<em class="property">class </em><tt class="descclassname">translate.convert.po2dtd.</tt><tt class="descname">redtd</tt><big>(</big><em>dtdfile</em>, <em>android=False</em><big>)</big><a class="headerlink" href="#translate.convert.po2dtd.redtd" title="Permalink to this definition">¶</a></dt>
<dd><p>this is a convertor class that creates a new dtd based on a template using translations in a po</p>
</dd></dl>

</div>
<div class="section" id="module-translate.convert.po2html">
<span id="po2html"></span><h2>po2html<a class="headerlink" href="#module-translate.convert.po2html" title="Permalink to this headline">¶</a></h2>
<p>Convert Gettext PO localization files to HTML files.</p>
<p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/html2po.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/html2po.html</a>
for examples and usage instructions.</p>
<dl class="function">
<dt id="translate.convert.po2html.converthtml">
<tt class="descclassname">translate.convert.po2html.</tt><tt class="descname">converthtml</tt><big>(</big><em>inputfile</em>, <em>outputfile</em>, <em>templatefile</em>, <em>includefuzzy=False</em><big>)</big><a class="headerlink" href="#translate.convert.po2html.converthtml" title="Permalink to this definition">¶</a></dt>
<dd><p>reads in stdin using fromfileclass, converts using convertorclass,
writes to stdout</p>
</dd></dl>

<dl class="class">
<dt id="translate.convert.po2html.po2html">
<em class="property">class </em><tt class="descclassname">translate.convert.po2html.</tt><tt class="descname">po2html</tt><a class="headerlink" href="#translate.convert.po2html.po2html" title="Permalink to this definition">¶</a></dt>
<dd><p>po2html can take a po file and generate html. best to give it a
template file otherwise will just concat msgstrs</p>
<dl class="method">
<dt id="translate.convert.po2html.po2html.mergestore">
<tt class="descname">mergestore</tt><big>(</big><em>inputstore</em>, <em>templatetext</em>, <em>includefuzzy</em><big>)</big><a class="headerlink" href="#translate.convert.po2html.po2html.mergestore" title="Permalink to this definition">¶</a></dt>
<dd><p>converts a file to .po format</p>
</dd></dl>

</dd></dl>

</div>
<div class="section" id="module-translate.convert.po2ical">
<span id="po2ical"></span><h2>po2ical<a class="headerlink" href="#module-translate.convert.po2ical" title="Permalink to this headline">¶</a></h2>
<p>Convert Gettext PO localization files to iCal files.</p>
<p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/ical2po.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/ical2po.html</a>
for examples and usage instructions.</p>
</div>
<div class="section" id="module-translate.convert.po2ini">
<span id="po2ini"></span><h2>po2ini<a class="headerlink" href="#module-translate.convert.po2ini" title="Permalink to this headline">¶</a></h2>
<p>Convert Gettext PO localization files to .ini files.</p>
<p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/ini2po.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/ini2po.html</a>
for examples and usage instructions.</p>
</div>
<div class="section" id="module-translate.convert.po2json">
<span id="po2json"></span><h2>po2json<a class="headerlink" href="#module-translate.convert.po2json" title="Permalink to this headline">¶</a></h2>
<p>Convert Gettext PO localization files to JSON files.</p>
<p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/json2po.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/json2po.html</a>
for examples and usage instructions.</p>
</div>
<div class="section" id="module-translate.convert.po2mozlang">
<span id="po2mozlang"></span><h2>po2mozlang<a class="headerlink" href="#module-translate.convert.po2mozlang" title="Permalink to this headline">¶</a></h2>
<p>Convert Gettext PO localization files to Mozilla .lang files.</p>
<dl class="function">
<dt id="translate.convert.po2mozlang.convertlang">
<tt class="descclassname">translate.convert.po2mozlang.</tt><tt class="descname">convertlang</tt><big>(</big><em>inputfile</em>, <em>outputfile</em>, <em>templates</em>, <em>includefuzzy=False</em>, <em>mark_active=True</em><big>)</big><a class="headerlink" href="#translate.convert.po2mozlang.convertlang" title="Permalink to this definition">¶</a></dt>
<dd><p>reads in stdin using fromfileclass, converts using convertorclass,
writes to stdout</p>
</dd></dl>

</div>
<div class="section" id="module-translate.convert.po2moz">
<span id="po2moz"></span><h2>po2moz<a class="headerlink" href="#module-translate.convert.po2moz" title="Permalink to this headline">¶</a></h2>
<p>Convert Gettext PO localization files to Mozilla .dtd and .properties files.</p>
<p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/moz2po.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/moz2po.html</a>
for examples and usage instructions.</p>
</div>
<div class="section" id="module-translate.convert.po2oo">
<span id="po2oo"></span><h2>po2oo<a class="headerlink" href="#module-translate.convert.po2oo" title="Permalink to this headline">¶</a></h2>
<p>Convert Gettext PO localization files to an OpenOffice.org (SDF) localization file.</p>
<p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/oo2po.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/oo2po.html</a>
for examples and usage instructions.</p>
</div>
<div class="section" id="module-translate.convert.po2php">
<span id="po2php"></span><h2>po2php<a class="headerlink" href="#module-translate.convert.po2php" title="Permalink to this headline">¶</a></h2>
<p>Convert Gettext PO localization files to PHP localization files.</p>
<p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/php2po.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/php2po.html</a>
for examples and usage instructions.</p>
</div>
<div class="section" id="module-translate.convert.po2prop">
<span id="po2prop"></span><h2>po2prop<a class="headerlink" href="#module-translate.convert.po2prop" title="Permalink to this headline">¶</a></h2>
<p>Convert Gettext PO localization files to Java/Mozilla .properties files.</p>
<p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/prop2po.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/prop2po.html</a>
for examples and usage instructions.</p>
<dl class="function">
<dt id="translate.convert.po2prop.convertmozillaprop">
<tt class="descclassname">translate.convert.po2prop.</tt><tt class="descname">convertmozillaprop</tt><big>(</big><em>inputfile</em>, <em>outputfile</em>, <em>templatefile</em>, <em>includefuzzy=False</em>, <em>remove_untranslated=False</em><big>)</big><a class="headerlink" href="#translate.convert.po2prop.convertmozillaprop" title="Permalink to this definition">¶</a></dt>
<dd><p>Mozilla specific convertor function</p>
</dd></dl>

<dl class="function">
<dt id="translate.convert.po2prop.convertstrings">
<tt class="descclassname">translate.convert.po2prop.</tt><tt class="descname">convertstrings</tt><big>(</big><em>inputfile</em>, <em>outputfile</em>, <em>templatefile</em>, <em>personality='strings'</em>, <em>includefuzzy=False</em>, <em>encoding=None</em>, <em>remove_untranslated=False</em><big>)</big><a class="headerlink" href="#translate.convert.po2prop.convertstrings" title="Permalink to this definition">¶</a></dt>
<dd><p>.strings specific convertor function</p>
</dd></dl>

</div>
<div class="section" id="module-translate.convert.po2rc">
<span id="po2rc"></span><h2>po2rc<a class="headerlink" href="#module-translate.convert.po2rc" title="Permalink to this headline">¶</a></h2>
<p>Convert Gettext PO localization files back to Windows Resource (.rc) files.</p>
<p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/rc2po.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/rc2po.html</a>
for examples and usage instructions.</p>
</div>
<div class="section" id="module-translate.convert.po2sub">
<span id="po2sub"></span><h2>po2sub<a class="headerlink" href="#module-translate.convert.po2sub" title="Permalink to this headline">¶</a></h2>
<p>Convert Gettext PO localization files to subtitle files.</p>
<p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/sub2po.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/sub2po.html</a>
for examples and usage instructions.</p>
</div>
<div class="section" id="module-translate.convert.po2symb">
<span id="po2symb"></span><h2>po2symb<a class="headerlink" href="#module-translate.convert.po2symb" title="Permalink to this headline">¶</a></h2>
<p>Convert Gettext PO localization files to Symbian translation files.</p>
<p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/symb2po.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/symb2po.html</a>
for examples and usage instructions.</p>
</div>
<div class="section" id="module-translate.convert.po2tiki">
<span id="po2tiki"></span><h2>po2tiki<a class="headerlink" href="#module-translate.convert.po2tiki" title="Permalink to this headline">¶</a></h2>
<p>Convert Gettext PO files to TikiWiki&#8217;s language.php files.</p>
<p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/tiki2po.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/tiki2po.html</a>
for examples and usage instructions.</p>
<dl class="function">
<dt id="translate.convert.po2tiki.convertpo">
<tt class="descclassname">translate.convert.po2tiki.</tt><tt class="descname">convertpo</tt><big>(</big><em>inputfile</em>, <em>outputfile</em>, <em>template=None</em><big>)</big><a class="headerlink" href="#translate.convert.po2tiki.convertpo" title="Permalink to this definition">¶</a></dt>
<dd><p>Converts from po file format to tiki.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
<li><strong>inputfile</strong> &#8211; file handle of the source</li>
<li><strong>outputfile</strong> &#8211; file handle to write to</li>
<li><strong>template</strong> &#8211; unused</li>
</ul>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="translate.convert.po2tiki.main">
<tt class="descclassname">translate.convert.po2tiki.</tt><tt class="descname">main</tt><big>(</big><em>argv=None</em><big>)</big><a class="headerlink" href="#translate.convert.po2tiki.main" title="Permalink to this definition">¶</a></dt>
<dd><p>Will convert from .po to tiki style .php</p>
</dd></dl>

</div>
<div class="section" id="module-translate.convert.po2tmx">
<span id="po2tmx"></span><h2>po2tmx<a class="headerlink" href="#module-translate.convert.po2tmx" title="Permalink to this headline">¶</a></h2>
<p>Convert Gettext PO localization files to a TMX (Translation Memory eXchange) file.</p>
<p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/po2tmx.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/po2tmx.html</a>
for examples and usage instructions.</p>
<dl class="function">
<dt id="translate.convert.po2tmx.convertpo">
<tt class="descclassname">translate.convert.po2tmx.</tt><tt class="descname">convertpo</tt><big>(</big><em>inputfile</em>, <em>outputfile</em>, <em>templatefile</em>, <em>sourcelanguage='en'</em>, <em>targetlanguage=None</em><big>)</big><a class="headerlink" href="#translate.convert.po2tmx.convertpo" title="Permalink to this definition">¶</a></dt>
<dd><p>reads in stdin using fromfileclass, converts using convertorclass, writes to stdout</p>
</dd></dl>

</div>
<div class="section" id="module-translate.convert.po2ts">
<span id="po2ts"></span><h2>po2ts<a class="headerlink" href="#module-translate.convert.po2ts" title="Permalink to this headline">¶</a></h2>
<p>Convert Gettext PO localization files to Qt Linguist (.ts) files.</p>
<p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/ts2po.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/ts2po.html</a>
for examples and usage instructions.</p>
<dl class="function">
<dt id="translate.convert.po2ts.convertpo">
<tt class="descclassname">translate.convert.po2ts.</tt><tt class="descname">convertpo</tt><big>(</big><em>inputfile</em>, <em>outputfile</em>, <em>templatefile</em>, <em>context</em><big>)</big><a class="headerlink" href="#translate.convert.po2ts.convertpo" title="Permalink to this definition">¶</a></dt>
<dd><p>reads in stdin using fromfileclass, converts using convertorclass, writes to stdout</p>
</dd></dl>

</div>
<div class="section" id="module-translate.convert.po2txt">
<span id="po2txt"></span><h2>po2txt<a class="headerlink" href="#module-translate.convert.po2txt" title="Permalink to this headline">¶</a></h2>
<p>Convert Gettext PO localization files to plain text (.txt) files.</p>
<p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/txt2po.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/txt2po.html</a>
for examples and usage instructions.</p>
<dl class="function">
<dt id="translate.convert.po2txt.converttxt">
<tt class="descclassname">translate.convert.po2txt.</tt><tt class="descname">converttxt</tt><big>(</big><em>inputfile</em>, <em>outputfile</em>, <em>templatefile</em>, <em>wrap=None</em>, <em>includefuzzy=False</em>, <em>encoding='utf-8'</em><big>)</big><a class="headerlink" href="#translate.convert.po2txt.converttxt" title="Permalink to this definition">¶</a></dt>
<dd><p>reads in stdin using fromfileclass, converts using convertorclass, writes to stdout</p>
</dd></dl>

<dl class="class">
<dt id="translate.convert.po2txt.po2txt">
<em class="property">class </em><tt class="descclassname">translate.convert.po2txt.</tt><tt class="descname">po2txt</tt><big>(</big><em>wrap=None</em><big>)</big><a class="headerlink" href="#translate.convert.po2txt.po2txt" title="Permalink to this definition">¶</a></dt>
<dd><p>po2txt can take a po file and generate txt. best to give it a template file otherwise will just concat msgstrs</p>
<dl class="method">
<dt id="translate.convert.po2txt.po2txt.convertstore">
<tt class="descname">convertstore</tt><big>(</big><em>inputstore</em>, <em>includefuzzy</em><big>)</big><a class="headerlink" href="#translate.convert.po2txt.po2txt.convertstore" title="Permalink to this definition">¶</a></dt>
<dd><p>converts a file to txt format</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.po2txt.po2txt.mergestore">
<tt class="descname">mergestore</tt><big>(</big><em>inputstore</em>, <em>templatetext</em>, <em>includefuzzy</em><big>)</big><a class="headerlink" href="#translate.convert.po2txt.po2txt.mergestore" title="Permalink to this definition">¶</a></dt>
<dd><p>converts a file to txt format</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.po2txt.po2txt.wrapmessage">
<tt class="descname">wrapmessage</tt><big>(</big><em>message</em><big>)</big><a class="headerlink" href="#translate.convert.po2txt.po2txt.wrapmessage" title="Permalink to this definition">¶</a></dt>
<dd><p>rewraps text as required</p>
</dd></dl>

</dd></dl>

</div>
<div class="section" id="module-translate.convert.po2web2py">
<span id="po2web2py"></span><h2>po2web2py<a class="headerlink" href="#module-translate.convert.po2web2py" title="Permalink to this headline">¶</a></h2>
<p>Convert GNU/gettext PO files to web2py translation dictionaries (.py).</p>
<p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/py2web2po.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/py2web2po.html</a>
for examples and usage instructions.</p>
</div>
<div class="section" id="module-translate.convert.po2wordfast">
<span id="po2wordfast"></span><h2>po2wordfast<a class="headerlink" href="#module-translate.convert.po2wordfast" title="Permalink to this headline">¶</a></h2>
<p>Convert Gettext PO localization files to a Wordfast translation memory file.</p>
<p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/po2wordfast.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/po2wordfast.html</a>
for examples and usage instructions.</p>
<dl class="function">
<dt id="translate.convert.po2wordfast.convertpo">
<tt class="descclassname">translate.convert.po2wordfast.</tt><tt class="descname">convertpo</tt><big>(</big><em>inputfile</em>, <em>outputfile</em>, <em>templatefile</em>, <em>sourcelanguage='en'</em>, <em>targetlanguage=None</em><big>)</big><a class="headerlink" href="#translate.convert.po2wordfast.convertpo" title="Permalink to this definition">¶</a></dt>
<dd><p>reads in stdin using fromfileclass, converts using convertorclass, writes to stdout</p>
</dd></dl>

</div>
<div class="section" id="module-translate.convert.po2xliff">
<span id="po2xliff"></span><h2>po2xliff<a class="headerlink" href="#module-translate.convert.po2xliff" title="Permalink to this headline">¶</a></h2>
<p>Convert Gettext PO localization files to XLIFF localization files.</p>
<p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/xliff2po.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/xliff2po.html</a>
for examples and usage instructions.</p>
<dl class="function">
<dt id="translate.convert.po2xliff.convertpo">
<tt class="descclassname">translate.convert.po2xliff.</tt><tt class="descname">convertpo</tt><big>(</big><em>inputfile</em>, <em>outputfile</em>, <em>templatefile</em><big>)</big><a class="headerlink" href="#translate.convert.po2xliff.convertpo" title="Permalink to this definition">¶</a></dt>
<dd><p>reads in stdin using fromfileclass, converts using convertorclass, writes to stdout</p>
</dd></dl>

</div>
<div class="section" id="module-translate.convert.poreplace">
<span id="poreplace"></span><h2>poreplace<a class="headerlink" href="#module-translate.convert.poreplace" title="Permalink to this headline">¶</a></h2>
<p>Simple script to do replacements on translated strings inside po files.</p>
</div>
<div class="section" id="module-translate.convert.pot2po">
<span id="pot2po"></span><h2>pot2po<a class="headerlink" href="#module-translate.convert.pot2po" title="Permalink to this headline">¶</a></h2>
<p>Convert template files (like .pot or template .xlf files) to translation
files, preserving existing translations.</p>
<p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/pot2po.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/pot2po.html</a>
for examples and usage instructions.</p>
<dl class="function">
<dt id="translate.convert.pot2po.convert_stores">
<tt class="descclassname">translate.convert.pot2po.</tt><tt class="descname">convert_stores</tt><big>(</big><em>input_store</em>, <em>template_store</em>, <em>temp_store=None</em>, <em>tm=None</em>, <em>min_similarity=75</em>, <em>fuzzymatching=True</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#translate.convert.pot2po.convert_stores" title="Permalink to this definition">¶</a></dt>
<dd><p>Actual conversion function, works on stores not files, returns
a properly initialized pretranslated output store, with structure
based on input_store, metadata based on template_store, migrates
old translations from template_store and pretranslating from TM.</p>
</dd></dl>

<dl class="function">
<dt id="translate.convert.pot2po.convertpot">
<tt class="descclassname">translate.convert.pot2po.</tt><tt class="descname">convertpot</tt><big>(</big><em>input_file</em>, <em>output_file</em>, <em>template_file</em>, <em>tm=None</em>, <em>min_similarity=75</em>, <em>fuzzymatching=True</em>, <em>classes=None</em>, <em>classes_str={'lang': ('mozilla_lang'</em>, <em>'LangStore')</em>, <em>'tbx': ('tbx'</em>, <em>'tbxfile')</em>, <em>'qph': ('qph'</em>, <em>'QphFile')</em>, <em>'xlf': ('xliff'</em>, <em>'xlifffile')</em>, <em>'mo': ('mo'</em>, <em>'mofile')</em>, <em>'_trados_txt_tm': ('trados'</em>, <em>'TradosTxtTmFile')</em>, <em>'tmx': ('tmx'</em>, <em>'tmxfile')</em>, <em>'utf8': ('omegat'</em>, <em>'OmegaTFile')</em>, <em>'pot': ('po'</em>, <em>'pofile')</em>, <em>'ts': ('ts2'</em>, <em>'tsfile')</em>, <em>'sdlxliff': ('xliff'</em>, <em>'xlifffile')</em>, <em>'tab': ('omegat'</em>, <em>'OmegaTFileTab')</em>, <em>'catkeys': ('catkeys'</em>, <em>'CatkeysFile')</em>, <em>'xliff': ('xliff'</em>, <em>'xlifffile')</em>, <em>'gmo': ('mo'</em>, <em>'mofile')</em>, <em>'utx': ('utx'</em>, <em>'UtxFile')</em>, <em>'csv': ('csvl10n'</em>, <em>'csvfile')</em>, <em>'qm': ('qm'</em>, <em>'qmfile')</em>, <em>'po': ('po'</em>, <em>'pofile')</em>, <em>'_wftm': ('wordfast'</em>, <em>'WordfastTMFile')}</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#translate.convert.pot2po.convertpot" title="Permalink to this definition">¶</a></dt>
<dd><p>Main conversion function.</p>
</dd></dl>

</div>
<div class="section" id="module-translate.convert.prop2mozfunny">
<span id="prop2mozfunny"></span><h2>prop2mozfunny<a class="headerlink" href="#module-translate.convert.prop2mozfunny" title="Permalink to this headline">¶</a></h2>
<p>Converts properties files to additional Mozilla format files.</p>
<dl class="function">
<dt id="translate.convert.prop2mozfunny.po2inc">
<tt class="descclassname">translate.convert.prop2mozfunny.</tt><tt class="descname">po2inc</tt><big>(</big><em>inputfile</em>, <em>outputfile</em>, <em>templatefile</em>, <em>encoding=None</em>, <em>includefuzzy=False</em><big>)</big><a class="headerlink" href="#translate.convert.prop2mozfunny.po2inc" title="Permalink to this definition">¶</a></dt>
<dd><p>wraps po2prop but converts outputfile to properties first</p>
</dd></dl>

<dl class="function">
<dt id="translate.convert.prop2mozfunny.po2ini">
<tt class="descclassname">translate.convert.prop2mozfunny.</tt><tt class="descname">po2ini</tt><big>(</big><em>inputfile</em>, <em>outputfile</em>, <em>templatefile</em>, <em>encoding='UTF-8'</em>, <em>includefuzzy=False</em><big>)</big><a class="headerlink" href="#translate.convert.prop2mozfunny.po2ini" title="Permalink to this definition">¶</a></dt>
<dd><p>wraps po2prop but converts outputfile to properties first using UTF-8 encoding</p>
</dd></dl>

<dl class="function">
<dt id="translate.convert.prop2mozfunny.po2it">
<tt class="descclassname">translate.convert.prop2mozfunny.</tt><tt class="descname">po2it</tt><big>(</big><em>inputfile</em>, <em>outputfile</em>, <em>templatefile</em>, <em>encoding='cp1252'</em>, <em>includefuzzy=False</em><big>)</big><a class="headerlink" href="#translate.convert.prop2mozfunny.po2it" title="Permalink to this definition">¶</a></dt>
<dd><p>wraps po2prop but converts outputfile to properties first</p>
</dd></dl>

<dl class="function">
<dt id="translate.convert.prop2mozfunny.prop2inc">
<tt class="descclassname">translate.convert.prop2mozfunny.</tt><tt class="descname">prop2inc</tt><big>(</big><em>pf</em><big>)</big><a class="headerlink" href="#translate.convert.prop2mozfunny.prop2inc" title="Permalink to this definition">¶</a></dt>
<dd><p>convert a properties file back to a .inc file with #defines in it</p>
</dd></dl>

<dl class="function">
<dt id="translate.convert.prop2mozfunny.prop2it">
<tt class="descclassname">translate.convert.prop2mozfunny.</tt><tt class="descname">prop2it</tt><big>(</big><em>pf</em><big>)</big><a class="headerlink" href="#translate.convert.prop2mozfunny.prop2it" title="Permalink to this definition">¶</a></dt>
<dd><p>convert a properties file back to a pseudo-properties .it file</p>
</dd></dl>

</div>
<div class="section" id="module-translate.convert.prop2po">
<span id="prop2po"></span><h2>prop2po<a class="headerlink" href="#module-translate.convert.prop2po" title="Permalink to this headline">¶</a></h2>
<p>Convert Java/Mozilla .properties files to Gettext PO localization files.</p>
<p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/prop2po.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/prop2po.html</a>
for examples and usage instructions.</p>
<dl class="function">
<dt id="translate.convert.prop2po.convertmozillaprop">
<tt class="descclassname">translate.convert.prop2po.</tt><tt class="descname">convertmozillaprop</tt><big>(</big><em>inputfile</em>, <em>outputfile</em>, <em>templatefile</em>, <em>pot=False</em>, <em>duplicatestyle='msgctxt'</em><big>)</big><a class="headerlink" href="#translate.convert.prop2po.convertmozillaprop" title="Permalink to this definition">¶</a></dt>
<dd><p>Mozilla specific convertor function</p>
</dd></dl>

<dl class="function">
<dt id="translate.convert.prop2po.convertprop">
<tt class="descclassname">translate.convert.prop2po.</tt><tt class="descname">convertprop</tt><big>(</big><em>inputfile</em>, <em>outputfile</em>, <em>templatefile</em>, <em>personality='java'</em>, <em>pot=False</em>, <em>duplicatestyle='msgctxt'</em>, <em>encoding=None</em><big>)</big><a class="headerlink" href="#translate.convert.prop2po.convertprop" title="Permalink to this definition">¶</a></dt>
<dd><p>reads in inputfile using properties, converts using prop2po, writes
to outputfile</p>
</dd></dl>

<dl class="function">
<dt id="translate.convert.prop2po.convertstrings">
<tt class="descclassname">translate.convert.prop2po.</tt><tt class="descname">convertstrings</tt><big>(</big><em>inputfile</em>, <em>outputfile</em>, <em>templatefile</em>, <em>personality='strings'</em>, <em>pot=False</em>, <em>duplicatestyle='msgctxt'</em>, <em>encoding=None</em><big>)</big><a class="headerlink" href="#translate.convert.prop2po.convertstrings" title="Permalink to this definition">¶</a></dt>
<dd><p>.strings specific convertor function</p>
</dd></dl>

<dl class="class">
<dt id="translate.convert.prop2po.prop2po">
<em class="property">class </em><tt class="descclassname">translate.convert.prop2po.</tt><tt class="descname">prop2po</tt><a class="headerlink" href="#translate.convert.prop2po.prop2po" title="Permalink to this definition">¶</a></dt>
<dd><p>convert a .properties file to a .po file for handling the
translation.</p>
<dl class="method">
<dt id="translate.convert.prop2po.prop2po.convertstore">
<tt class="descname">convertstore</tt><big>(</big><em>thepropfile</em>, <em>personality='java'</em>, <em>duplicatestyle='msgctxt'</em><big>)</big><a class="headerlink" href="#translate.convert.prop2po.prop2po.convertstore" title="Permalink to this definition">¶</a></dt>
<dd><p>converts a .properties file to a .po file...</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.prop2po.prop2po.convertunit">
<tt class="descname">convertunit</tt><big>(</big><em>propunit</em>, <em>commenttype</em><big>)</big><a class="headerlink" href="#translate.convert.prop2po.prop2po.convertunit" title="Permalink to this definition">¶</a></dt>
<dd><p>Converts a .properties unit to a .po unit. Returns None if empty
or not for translation.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.prop2po.prop2po.fold_gaia_plurals">
<tt class="descname">fold_gaia_plurals</tt><big>(</big><em>postore</em><big>)</big><a class="headerlink" href="#translate.convert.prop2po.prop2po.fold_gaia_plurals" title="Permalink to this definition">¶</a></dt>
<dd><p>Fold the multiple plural units of a gaia file into a gettext plural.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.prop2po.prop2po.mergestore">
<tt class="descname">mergestore</tt><big>(</big><em>origpropfile</em>, <em>translatedpropfile</em>, <em>personality='java'</em>, <em>blankmsgstr=False</em>, <em>duplicatestyle='msgctxt'</em><big>)</big><a class="headerlink" href="#translate.convert.prop2po.prop2po.mergestore" title="Permalink to this definition">¶</a></dt>
<dd><p>converts two .properties files to a .po file...</p>
</dd></dl>

</dd></dl>

</div>
<div class="section" id="module-translate.convert.rc2po">
<span id="rc2po"></span><h2>rc2po<a class="headerlink" href="#module-translate.convert.rc2po" title="Permalink to this headline">¶</a></h2>
<p>Convert Windows RC files to Gettext PO localization files.</p>
<p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/rc2po.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/rc2po.html</a>
for examples and usage instructions.</p>
<dl class="function">
<dt id="translate.convert.rc2po.convertrc">
<tt class="descclassname">translate.convert.rc2po.</tt><tt class="descname">convertrc</tt><big>(</big><em>input_file</em>, <em>output_file</em>, <em>template_file</em>, <em>pot=False</em>, <em>duplicatestyle='msgctxt'</em>, <em>charset=None</em>, <em>lang=None</em>, <em>sublang=None</em><big>)</big><a class="headerlink" href="#translate.convert.rc2po.convertrc" title="Permalink to this definition">¶</a></dt>
<dd><p>reads in input_file using rc, converts using rc2po, writes to output_file</p>
</dd></dl>

<dl class="class">
<dt id="translate.convert.rc2po.rc2po">
<em class="property">class </em><tt class="descclassname">translate.convert.rc2po.</tt><tt class="descname">rc2po</tt><a class="headerlink" href="#translate.convert.rc2po.rc2po" title="Permalink to this definition">¶</a></dt>
<dd><p>Convert a .rc file to a .po file for handling the translation.</p>
<dl class="method">
<dt id="translate.convert.rc2po.rc2po.convert_store">
<tt class="descname">convert_store</tt><big>(</big><em>input_store</em>, <em>duplicatestyle='msgctxt'</em><big>)</big><a class="headerlink" href="#translate.convert.rc2po.rc2po.convert_store" title="Permalink to this definition">¶</a></dt>
<dd><p>converts a .rc file to a .po file...</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.rc2po.rc2po.convert_unit">
<tt class="descname">convert_unit</tt><big>(</big><em>input_unit</em>, <em>commenttype</em><big>)</big><a class="headerlink" href="#translate.convert.rc2po.rc2po.convert_unit" title="Permalink to this definition">¶</a></dt>
<dd><p>Converts a .rc unit to a .po unit. Returns None if empty
or not for translation.</p>
</dd></dl>

<dl class="method">
<dt id="translate.convert.rc2po.rc2po.merge_store">
<tt class="descname">merge_store</tt><big>(</big><em>template_store</em>, <em>input_store</em>, <em>blankmsgstr=False</em>, <em>duplicatestyle='msgctxt'</em><big>)</big><a class="headerlink" href="#translate.convert.rc2po.rc2po.merge_store" title="Permalink to this definition">¶</a></dt>
<dd><p>converts two .rc files to a .po file...</p>
</dd></dl>

</dd></dl>

</div>
<div class="section" id="module-translate.convert.sub2po">
<span id="sub2po"></span><h2>sub2po<a class="headerlink" href="#module-translate.convert.sub2po" title="Permalink to this headline">¶</a></h2>
<p>Convert subtitle files to Gettext PO localization files.</p>
<p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/sub2po.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/sub2po.html</a>
for examples and usage instructions.</p>
<dl class="function">
<dt id="translate.convert.sub2po.convert_store">
<tt class="descclassname">translate.convert.sub2po.</tt><tt class="descname">convert_store</tt><big>(</big><em>input_store</em>, <em>duplicatestyle='msgctxt'</em><big>)</big><a class="headerlink" href="#translate.convert.sub2po.convert_store" title="Permalink to this definition">¶</a></dt>
<dd><p>converts a subtitle file to a .po file...</p>
</dd></dl>

<dl class="function">
<dt id="translate.convert.sub2po.convert_unit">
<tt class="descclassname">translate.convert.sub2po.</tt><tt class="descname">convert_unit</tt><big>(</big><em>input_unit</em>, <em>commenttype</em><big>)</big><a class="headerlink" href="#translate.convert.sub2po.convert_unit" title="Permalink to this definition">¶</a></dt>
<dd><p>Converts a subtitle unit to a .po unit. Returns None if empty
or not for translation.</p>
</dd></dl>

<dl class="function">
<dt id="translate.convert.sub2po.convertsub">
<tt class="descclassname">translate.convert.sub2po.</tt><tt class="descname">convertsub</tt><big>(</big><em>input_file</em>, <em>output_file</em>, <em>template_file=None</em>, <em>pot=False</em>, <em>duplicatestyle='msgctxt'</em><big>)</big><a class="headerlink" href="#translate.convert.sub2po.convertsub" title="Permalink to this definition">¶</a></dt>
<dd><p>Reads in <em>input_file</em> using translate.subtitles, converts using
<tt class="xref py py-class docutils literal"><span class="pre">sub2po</span></tt>, writes to <em>output_file</em>.</p>
</dd></dl>

<dl class="function">
<dt id="translate.convert.sub2po.merge_store">
<tt class="descclassname">translate.convert.sub2po.</tt><tt class="descname">merge_store</tt><big>(</big><em>template_store</em>, <em>input_store</em>, <em>blankmsgstr=False</em>, <em>duplicatestyle='msgctxt'</em><big>)</big><a class="headerlink" href="#translate.convert.sub2po.merge_store" title="Permalink to this definition">¶</a></dt>
<dd><p>converts two subtitle files to a .po file...</p>
</dd></dl>

</div>
<div class="section" id="module-translate.convert.symb2po">
<span id="symb2po"></span><h2>symb2po<a class="headerlink" href="#module-translate.convert.symb2po" title="Permalink to this headline">¶</a></h2>
<p>Convert Symbian localisation files to Gettext PO localization files.</p>
<p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/symb2po.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/symb2po.html</a>
for examples and usage instructions.</p>
</div>
<div class="section" id="module-translate.convert.tiki2po">
<span id="tiki2po"></span><h2>tiki2po<a class="headerlink" href="#module-translate.convert.tiki2po" title="Permalink to this headline">¶</a></h2>
<p>Convert TikiWiki&#8217;s language.php files to GetText PO files.</p>
<p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/tiki2po.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/tiki2po.html</a>
for examples and usage instructions.</p>
<dl class="function">
<dt id="translate.convert.tiki2po.converttiki">
<tt class="descclassname">translate.convert.tiki2po.</tt><tt class="descname">converttiki</tt><big>(</big><em>inputfile</em>, <em>outputfile</em>, <em>template=None</em>, <em>includeunused=False</em><big>)</big><a class="headerlink" href="#translate.convert.tiki2po.converttiki" title="Permalink to this definition">¶</a></dt>
<dd><p>Converts from tiki file format to po.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
<li><strong>inputfile</strong> &#8211; file handle of the source</li>
<li><strong>outputfile</strong> &#8211; file handle to write to</li>
<li><strong>template</strong> &#8211; unused</li>
<li><strong>includeunused</strong> &#8211; Include the &#8220;usused&#8221; section of the tiki
file? Default: False</li>
</ul>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="translate.convert.tiki2po.main">
<tt class="descclassname">translate.convert.tiki2po.</tt><tt class="descname">main</tt><big>(</big><em>argv=None</em><big>)</big><a class="headerlink" href="#translate.convert.tiki2po.main" title="Permalink to this definition">¶</a></dt>
<dd><p>Converts tiki .php files to .po.</p>
</dd></dl>

</div>
<div class="section" id="module-translate.convert.ts2po">
<span id="ts2po"></span><h2>ts2po<a class="headerlink" href="#module-translate.convert.ts2po" title="Permalink to this headline">¶</a></h2>
<p>Convert Qt Linguist (.ts) files to Gettext PO localization files.</p>
<p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/ts2po.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/ts2po.html</a>
for examples and usage instructions.</p>
<dl class="function">
<dt id="translate.convert.ts2po.convertts">
<tt class="descclassname">translate.convert.ts2po.</tt><tt class="descname">convertts</tt><big>(</big><em>inputfile</em>, <em>outputfile</em>, <em>templates</em>, <em>pot=False</em>, <em>duplicatestyle='msgctxt'</em><big>)</big><a class="headerlink" href="#translate.convert.ts2po.convertts" title="Permalink to this definition">¶</a></dt>
<dd><p>reads in stdin using fromfileclass, converts using convertorclass, writes to stdout</p>
</dd></dl>

</div>
<div class="section" id="module-translate.convert.txt2po">
<span id="txt2po"></span><h2>txt2po<a class="headerlink" href="#module-translate.convert.txt2po" title="Permalink to this headline">¶</a></h2>
<p>Convert plain text (.txt) files to Gettext PO localization files.</p>
<p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/txt2po.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/txt2po.html</a>
for examples and usage instructions.</p>
<dl class="function">
<dt id="translate.convert.txt2po.converttxt">
<tt class="descclassname">translate.convert.txt2po.</tt><tt class="descname">converttxt</tt><big>(</big><em>inputfile</em>, <em>outputfile</em>, <em>templates</em>, <em>duplicatestyle='msgctxt'</em>, <em>encoding='utf-8'</em>, <em>flavour=None</em><big>)</big><a class="headerlink" href="#translate.convert.txt2po.converttxt" title="Permalink to this definition">¶</a></dt>
<dd><p>reads in stdin using fromfileclass, converts using convertorclass,
writes to stdout</p>
</dd></dl>

</div>
<div class="section" id="module-translate.convert.web2py2po">
<span id="web2py2po"></span><h2>web2py2po<a class="headerlink" href="#module-translate.convert.web2py2po" title="Permalink to this headline">¶</a></h2>
<p>Convert web2py translation dictionaries (.py) to GNU/gettext PO files.</p>
<p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/web2py2po.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/web2py2po.html</a>
for examples and usage instructions.</p>
</div>
<div class="section" id="module-translate.convert.xliff2odf">
<span id="xliff2odf"></span><h2>xliff2odf<a class="headerlink" href="#module-translate.convert.xliff2odf" title="Permalink to this headline">¶</a></h2>
<p>Convert XLIFF translation files to OpenDocument (ODF) files.</p>
<p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/odf2xliff.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/odf2xliff.html</a>
for examples and usage instructions.</p>
<dl class="function">
<dt id="translate.convert.xliff2odf.convertxliff">
<tt class="descclassname">translate.convert.xliff2odf.</tt><tt class="descname">convertxliff</tt><big>(</big><em>input_file</em>, <em>output_file</em>, <em>template</em><big>)</big><a class="headerlink" href="#translate.convert.xliff2odf.convertxliff" title="Permalink to this definition">¶</a></dt>
<dd><p>reads in stdin using fromfileclass, converts using convertorclass, writes to stdout</p>
</dd></dl>

</div>
<div class="section" id="module-translate.convert.xliff2oo">
<span id="xliff2oo"></span><h2>xliff2oo<a class="headerlink" href="#module-translate.convert.xliff2oo" title="Permalink to this headline">¶</a></h2>
<p>Convert XLIFF localization files to an OpenOffice.org (SDF) localization file.</p>
<p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/oo2po.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/oo2po.html</a>
for examples and usage instructions.</p>
</div>
<div class="section" id="module-translate.convert.xliff2po">
<span id="xliff2po"></span><h2>xliff2po<a class="headerlink" href="#module-translate.convert.xliff2po" title="Permalink to this headline">¶</a></h2>
<p>Convert XLIFF localization files to Gettext PO localization files.</p>
<p>See: <a class="reference external" href="http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/xliff2po.html">http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/xliff2po.html</a>
for examples and usage instructions.</p>
<dl class="function">
<dt id="translate.convert.xliff2po.convertxliff">
<tt class="descclassname">translate.convert.xliff2po.</tt><tt class="descname">convertxliff</tt><big>(</big><em>inputfile</em>, <em>outputfile</em>, <em>templates</em><big>)</big><a class="headerlink" href="#translate.convert.xliff2po.convertxliff" title="Permalink to this definition">¶</a></dt>
<dd><p>reads in stdin using fromfileclass, converts using convertorclass,
writes to stdout</p>
</dd></dl>

</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>