<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 29, 2017 at 1:59 PM, James Cameron <span dir="ltr"><<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><a href="http://wiki.laptop.org/go/Internationalization_in_Sugar" rel="noreferrer" target="_blank">http://wiki.laptop.org/go/Inte<wbr>rnationalization_in_Sugar</a> is deprecated.<br>
<br>
Poll activity is translated using <a href="http://translate.sugarlabs.org" rel="noreferrer" target="_blank">translate.sugarlabs.org</a>.<br>
<br>
What are you trying to do?<br>
<br>
Why not upload translations to <a href="http://translate.sugarlabs.org" rel="noreferrer" target="_blank">translate.sugarlabs.org</a>?<br>
<br>
<a href="https://github.com/sugarlabs/poll-activity/commits/master" rel="noreferrer" target="_blank">https://github.com/sugarlabs/p<wbr>oll-activity/commits/master</a> shows<br>
updated POT file and new translations 23 days ago.<br></blockquote><div><br></div><p class="m_8203919027962367931gmail-p1"><span class="m_8203919027962367931gmail-s1">I want to translate the missing messages.</span></p><p class="m_8203919027962367931gmail-p1"><span class="m_8203919027962367931gmail-s1">I can see the updated POT file, but the es.po file is still not updated with all the strings (msgid) inside the POT file.</span></p><p class="m_8203919027962367931gmail-p1"><span class="m_8203919027962367931gmail-s1">As you can see, Poll is fully translated for "es" in <a href="http://translate.sugarlabs.org" target="_blank">translate.sugarlabs.org</a> but it has missing strings due to staled es.po file. What is the procedure to update es.po file with latest changes based in POT file into <a href="http://translate.sugarlabs.org" target="_blank">translate.sugarlabs.org</a>?</span> </p><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
<a href="https://translate.sugarlabs.org/projects/Poll-Builder/" rel="noreferrer" target="_blank">https://translate.sugarlabs.or<wbr>g/projects/Poll-Builder/</a> shows new<br>
translations only for Guaraní (Paraguay).<br>
<span class="m_8203919027962367931gmail-"><br>
On Tue, Aug 29, 2017 at 11:56:16AM -0400, Jammily Ortigoza wrote:<br>
> Hi everybody,<br>
><br>
> I'm trying to translate Poll activity using gettext. I followed this tutorial<br>
> [1].<br>
><br>
> I have my POTFILE.in.<br>
><br>
> >> cat POTFILES.in <br>
> encoding: UTF-8<br>
> PollSession.py<br>
> poll.py<br>
> Widgets.py<br>
><br>
> With the POTFILE.in I generated the .pot file:<br>
><br>
> $pwd<br>
> $HOME/Activities/Poll.activity<br>
> $python setup.py genpot<br>
> $ls $HOME/Activities/Poll.activity<wbr>/po <br>
> Poll.pot<br>
><br>
> Following, I generated the es.po file:<br>
><br>
> $msginit -l es<br>
> $ls $HOME/Activities/Poll.activity<wbr>/po <br>
> es.po<br>
><br>
> The es.po file is ok, I can see all the messages to be translated. I did the<br>
> translation an after that I did the last step:<br>
><br>
</span>> msgfmt es.po --output='../locale/es/LC_MESS<wbr>AGES/[1]<br>
<span class="m_8203919027962367931gmail-">> <a href="http://org.worldwideworkshop.PollBuilder.mo" rel="noreferrer" target="_blank">org.worldwideworkshop.PollBuil<wbr>der.mo</a>'<br>
><br>
> Almost all translations work except the ones with the "%s" in the msgid.<br>
> For example:<br>
><br>
> #: poll.py:367<br>
> #, python-format<br>
> msgid "Do you want delete the poll \"%s\"?"<br>
> msgstr "Desea eliminar la encuesta \"%s\"?" <br>
><br>
> This is still showing in english when I open Poll activity. <br>
><br>
> Does somebody know what am I doing wrong?<br>
><br>
> Regards.<br>
><br>
> --<br>
> Jammily Ortigoza<br>
><br>
</span>> [1] [2]<a href="http://wiki.laptop.org/go/Internationalization_in_Sugar" rel="noreferrer" target="_blank">http://wiki.laptop.org/<wbr>go/Internationalization_in_Sug<wbr>ar</a><br>
><br>
> References:<br>
><br>
> [1] <a href="http://org.worldwideworkshop.pollbuilder.mo/" rel="noreferrer" target="_blank">http://org.worldwideworkshop.p<wbr>ollbuilder.mo/</a><br>
> [2] <a href="http://wiki.laptop.org/go/Internationalization_in_Sugar" rel="noreferrer" target="_blank">http://wiki.laptop.org/go/Inte<wbr>rnationalization_in_Sugar</a><br>
<br>
> ______________________________<wbr>_________________<br>
> Sugar-devel mailing list<br>
> <a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.or<wbr>g</a><br>
> <a href="http://lists.sugarlabs.org/listinfo/sugar-devel" rel="noreferrer" target="_blank">http://lists.sugarlabs.org/lis<wbr>tinfo/sugar-devel</a><br>
<span class="m_8203919027962367931gmail-HOEnZb"><font color="#888888"><br>
<br>
--<br>
James Cameron<br>
<a href="http://quozl.netrek.org/" rel="noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
</font></span></blockquote></div><br>Regards.<br clear="all"><div><br></div>-- <br><div class="m_8203919027962367931gmail_signature"><div dir="ltr"><div>Jammily Ortigoza</div></div></div>
</div></div>