<!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>–errorlevel=ERRORLEVEL — Translate Toolkit 1.9.0 documentation</title> <link rel="stylesheet" href="../_static/basic.css" type="text/css" /> <link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> <link rel="stylesheet" href="../_static/bootstrap.css" type="text/css" /> <link rel="stylesheet" href="../_static/bootstrap-sphinx.css" type="text/css" /> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT: '../', VERSION: '1.9.0', COLLAPSE_INDEX: false, FILE_SUFFIX: '.html', HAS_SOURCE: true }; </script> <script type="text/javascript" src="../_static/jquery.js"></script> <script type="text/javascript" src="../_static/underscore.js"></script> <script type="text/javascript" src="../_static/doctools.js"></script> <script type="text/javascript" src="../_static/bootstrap.js"></script> <script type="text/javascript" src="../_static/bootstrap-sphinx.js"></script> <link rel="top" title="Translate Toolkit 1.9.0 documentation" href="../index.html" /> <link rel="up" title="Converters" href="index.html" /> <link rel="next" title="–duplicates=DUPLICATESTYLE" href="option_duplicates.html" /> <link rel="prev" title="xliff2po" href="xliff2po.html" /> </head> <body> <div id="navbar" class="navbar navbar-fixed-top"> <div class="navbar-inner"> <div class="container-fluid"> <a class="brand" href="../index.html">Translate Toolkit</a> <span class="navbar-text pull-left"><b>1.9.0</b></span> <ul class="nav"> <li class="divider-vertical"></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Site <b class="caret"></b></a> <ul class="dropdown-menu globaltoc"><ul class="simple"> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../features.html">Features</a></li> <li class="toctree-l1"><a class="reference internal" href="../installation.html">Installation</a></li> <li class="toctree-l1"><a class="reference internal" href="index.html">Converters</a></li> <li class="toctree-l1"><a class="reference internal" href="index.html#tools">Tools</a></li> <li class="toctree-l1"><a class="reference internal" href="index.html#scripts">Scripts</a></li> <li class="toctree-l1"><a class="reference internal" href="../guides/index.html">Use Cases</a></li> <li class="toctree-l1"><a class="reference internal" href="../formats/index.html">Supported formats</a></li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../styleguide.html">Translate Styleguide</a></li> <li class="toctree-l1"><a class="reference internal" href="../styleguide.html#documentation">Documentation</a></li> <li class="toctree-l1"><a class="reference internal" href="../development/building.html">Building</a></li> <li class="toctree-l1"><a class="reference internal" href="../development/contributing.html">Contributing</a></li> <li class="toctree-l1"><a class="reference internal" href="../development/developers.html">Translate Toolkit Developers Guide</a></li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../api/index.html">API</a></li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../changelog.html">Important Changes</a></li> <li class="toctree-l1"><a class="reference internal" href="../history.html">History of the Translate Toolkit</a></li> <li class="toctree-l1"><a class="reference internal" href="../license.html">License</a></li> </ul> </ul> </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Page <b class="caret"></b></a> <ul class="dropdown-menu localtoc"><ul> <li><a class="reference internal" href="#">–errorlevel=ERRORLEVEL</a><ul> <li><a class="reference internal" href="#none">none</a></li> <li><a class="reference internal" href="#message">message</a></li> <li><a class="reference internal" href="#exception">exception</a></li> <li><a class="reference internal" href="#traceback">traceback</a></li> </ul> </li> </ul> </ul> </li> <li><a href="xliff2po.html" title="previous chapter">« xliff2po</a></li> <li><a href="option_duplicates.html" title="next chapter">–duplicates=DUPLICATESTYLE »</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="errorlevel-errorlevel"> <span id="option-errorlevel"></span><h1>–errorlevel=ERRORLEVEL<a class="headerlink" href="#errorlevel-errorlevel" title="Permalink to this headline">¶</a></h1> <p>This is a parameter that can be passed to most of the programs in the translate toolkit in order to choose the level of feedback that you need when errors occur. It is mostly useful for debugging. Please report your errors to the developers with <tt class="docutils literal"><span class="pre">--errorlevel=traceback</span></tt>.</p> <div class="section" id="none"> <span id="option-errorlevel-none"></span><h2>none<a class="headerlink" href="#none" title="Permalink to this headline">¶</a></h2> <p>Display no error messages</p> </div> <div class="section" id="message"> <span id="option-errorlevel-message"></span><h2>message<a class="headerlink" href="#message" title="Permalink to this headline">¶</a></h2> <p>Display on the error message</p> <div class="highlight-python"><pre>An error occurred processing PO file</pre> </div> </div> <div class="section" id="exception"> <span id="option-errorlevel-exception"></span><h2>exception<a class="headerlink" href="#exception" title="Permalink to this headline">¶</a></h2> <p>Give the error message and name and Python exception</p> <div class="highlight-python"><pre>ValueError: An error occurred processing PO file</pre> </div> </div> <div class="section" id="traceback"> <span id="option-errorlevel-traceback"></span><h2>traceback<a class="headerlink" href="#traceback" title="Permalink to this headline">¶</a></h2> <p>Provide a full traceback for debugging purposes</p> <div class="highlight-python"><pre>csv2po: warning: Error processing: nso/readlicense_oo/docs/readme.csv: Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/translate/misc/optrecurse.py", line 415, in recursiveprocess success = self.processfile(fileprocessor, options, fullinputpath, fulloutputpath, fulltemplatepath) File "/usr/lib/python2.4/site-packages/translate/misc/optrecurse.py", line 468, in processfile if fileprocessor(inputfile, outputfile, templatefile, **passthroughoptions): File "/usr/lib/python2.4/site-packages/translate/convert/csv2po.py", line 183, in convertcsv outputpo = convertor.convertfile(inputcsv) File "/usr/lib/python2.4/site-packages/translate/convert/csv2po.py", line 159, in convertfile raise ValueError("An error occured processing PO file") ValueError: An error occurred processing PO file</pre> </div> </div> </div> </div> <hr> <footer class="footer"> <div class="container"> <p class="pull-right"><a href="#">Back to top ↑</a></p> <ul class="unstyled muted"> <li><small> © 2012, Translate.org.za.<br/> </small></li> <li><small> Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3. </small></li> </ul> </div> </footer> </body> </html>