<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
<font style="font-size:10pt;" size="2"><b><br id="FontBreak"></b></font>thanks now it works, :)<br><br>another thing:<br>do you have a way to split the po file into translated and untranslated po's?<br><br><br><div align="left"><font style="font-size:10pt" face="Tahoma" color="#000000" size="2"><strong>Regards</strong></font><br><font style="font-size:10pt" face="Tahoma" color="#000000" size="2"><strong>Yousef Harfoush<br></strong></font><br>
<font style="font-size:10pt" face="Tahoma" color="#000000" size="2"><a href="mailto:bat3a@msn.com"><font style=""><strong>bat3a@msn.com</strong></font></a></font><br>
</div><br><br><div><hr id="stopSpelling">Date: Thu, 17 Nov 2011 19:47:40 +0100<br>From: montagne29@wanadoo.fr<br>To: bf-translations-svn@blender.org<br>Subject: Re: [Bf-translations-svn] merge_po errors!<br><br>
  
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
    
  
  
    Hi Yousef,<br>
    <br>
    Yes, I coded (or at least, updated) that script using py3k, so it's
    very unlikely to work with any py2 interpreter (among other things,
    py3k assumes scripts are written in utf-8, if not said otherwise ;)
    )...<br>
    <br>
    The settings module import was not necessary, I just removed it from
    that script. But you should note this script is no more standalone,
    it needs at least the utils.py file found in the same directory...
    And that module needs settings.py! Let me put a reminder about that
    page:
    <a class="ecxmoz-txt-link-freetext" href="http://wiki.blender.org/index.php/Dev%3a2.5/Doc/How_to/Translate_Blender" target="_blank">http://wiki.blender.org/index.php/Dev:2.5/Doc/How_to/Translate_Blender</a>
    , which documents all i18n tools. It states that before using the
    scripts in /po/tools, you must copy and rename settings_template.py
    into settings.py, and optionally edit its values (but that should
    not be necessary if you only use merge_po.py).<br>
    <br>
    I hope all this will help you! :)<br>
    <br>
    Regards,<br>
    Bastien<br>
    <br>
    Le 17/11/2011 18:23, Yousef Hurfoush a écrit&nbsp;:
    <blockquote cite="mid:BAY152-W20A257C59EE699D50C58D3E0C70@phx.gbl">
      <style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}

</style>
      <div dir="ltr">
        <font style="font-size:10pt" size="2"><b><br id="ecxFontBreak">
          </b></font><br>
        <div>
          
          
          <style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
</style>
          <div dir="ltr">
            <font style="font-size:10pt" size="2"><b>hi<br>
                <br>
                i tried to use the merge_po.py script in tools to merge
                my po-s with ar.po and got this error:<br>
              </b><i>File
                "Z:\Development\blender\BatProject\Gettext\merge_po.py",
                <br>
                line 25 SyntaxError: Non-ASCII character '\xe2' in file
                merge_po.py on line 25, but no encoding declared; see
                <a class="ecxmoz-txt-link-freetext" href="http://www.pytho" target="_blank">http://www.pytho</a><br>
                n.org/peps/pep-0263.html for details</i><b><br id="ecxFontBreak">
              </b></font><font style="font-size:10pt" size="2"><b><br>
                the command i used (</b><i>merge_po.py ar.po phase3.po</i><b>)</b></font><br>
            <br>
            <b>so as advised by the later page i added to merge_po the
              next line:</b><br>
            # -*- coding: utf-8 -*-<br>
            <br>
            <b>and the error is gone, but now i get the next error:<br>
            </b>File "merge_po.py", line 34, in &lt;module&gt;&nbsp; &nbsp; import
            settings<br>
            ImportError: No module named settings<br>
            <br>
            <b>can anyone help me with this? i used this script before
              and it worked OK!<br>
              i use windows 7 x64 and python 2.6 x86 and x64, should i
              install the 3.2 one?<br>
            </b><br>
            <br>
            <div align="left"><font style="font-size:10pt" face="Tahoma" color="#000000" size="2"><strong>Regards</strong></font><br>
              <font style="font-size:10pt" face="Tahoma" color="#000000" size="2"><strong>Yousef Harfoush<br>
                </strong></font><font style="font-size:10pt" face="Tahoma" color="#000000" size="2"><a href="mailto:bat3a@msn.com"><font style=""><strong>bat3a@msn.com</strong></font></a></font><br>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="ecxmimeAttachmentHeader"></fieldset>
      <br>
      <pre>_______________________________________________
Bf-translations-svn mailing list
<a class="ecxmoz-txt-link-abbreviated" href="mailto:Bf-translations-svn@blender.org">Bf-translations-svn@blender.org</a>
<a class="ecxmoz-txt-link-freetext" href="http://lists.blender.org/mailman/listinfo/bf-translations-svn" target="_blank">http://lists.blender.org/mailman/listinfo/bf-translations-svn</a>
</pre>
    </blockquote>
    <br>
  

<br>_______________________________________________
Bf-translations-svn mailing list
Bf-translations-svn@blender.org
http://lists.blender.org/mailman/listinfo/bf-translations-svn</div>                                               </div></body>
</html>