<div dir="ltr">Dear Yaron,<div><br></div><div>Well I have gettext and in fact I have tried the command you gave me on all offending files. I have also opened 2 of the files in poedit, and found "no error". The first file which comes as having invalid entry (during build) is [1]. I opened that file and compared it to a Hungarian translation using Meld Diff Viewer.  The difference I spotted appeared at the bottom of the files with many more comments in my file than the Hungarian one. Can that be a cause?</div>
<div><br></div><div>[1] <a href="https://translations.documentfoundation.org/export/libo_ui/sid/vcl/source/src.po">https://translations.documentfoundation.org/export/libo_ui/sid/vcl/source/src.po</a></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Jul 31, 2013 at 5:57 PM, Yaron Shahrabani <span dir="ltr"><<a href="mailto:sh.yaron@gmail.com" target="_blank">sh.yaron@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>Dear Tadele!<br>Try using Poedit (Any version above 1.5 is fine).<br><br></div><div>This tool shows the misbehaving strings in red on top of the list after you save.<br>This way you can look at the strings that Virtaal will simply ignore upon saving (Sorry Friedel ☺).<br>


<br></div><div>Another great tool I would suggest you to use (mainly in Ubuntu) is "msgfmt".<br></div><div>After you edit the file just go to the command line and type "msgfmt -vco /dev/null /path/to/your/file.sid.po" (replace the last part with the actual file location).<br>


<br></div><div>If you don't have the msgfmt tool you'll have to install gettext using the following command:<br></div><div>sudo apt-get install gettext<br></div><div>You will be asked for your password and then the tool will be installed so you can use it.<br>


</div><div><br></div><div>Anyways I'm so glad to see this translation completing so fast.<br>Good job!<br></div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><span style="font-size:large"><font color="#990000">Yaron</font><font color="#330000"> Shahrabani</font></span><blockquote style="margin:0 0 0 40px;border:none;padding:0px">


<div><font color="#666666"><span style="font-size:x-small"><font color="#FF0000"><</font></span>Hebrew translator<span style="font-size:x-small"><font color="#FF0000">></font></span></font></div></blockquote></div>

</div><div><div class="h5">

<br><br><div class="gmail_quote">On Wed, Jul 31, 2013 at 5:43 PM, Tadele Assefa <span dir="ltr"><<a href="mailto:milkyswd@gmail.com" target="_blank">milkyswd@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div dir="ltr"><div><div><div><div><div><div><div>Dear Yaron,<br><br></div>I am still struggling with the 'invalid entry' message during LO build. The followings are things I have done since you advised me last time:<br>



<br></div>1) corrected all 'critical errors' suggested<br></div>2) Tried to build and failed<br></div>3) Uploaded all files to Pootle, corrected all errors suggested by pootle downloaded the translations and tried to build, not OK<br>



</div>4) Pulled the latest source code from git, switched to master and tried to build, not OK<br><br></div>I did this on both Win and Ubuntu with same result. When I open the files in Virtaal I cannot see any problem. What shall I do?<br>



<br></div>Regards,<br></div><div class="gmail_extra"><div><div><br><br><div class="gmail_quote">On Sun, Jul 28, 2013 at 11:11 AM, Yaron Shahrabani <span dir="ltr"><<a href="mailto:sh.yaron@gmail.com" target="_blank">sh.yaron@gmail.com</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I attached 2 files.<br><br></div><div>msgfmtlog.txt - Displays all errors, even the non critical one (these can be fixed with recursive regex operation).<br>



<br></div><div>msgfmtcrit.txt - Displays only the critical errors (grep -v did the job).<br>

<br></div><div>The commands I used:<br></div><div># recursively find all po files and send then to msgfmt for inspection<br></div><div>find . -name *.po -exec msgfmt -vco /dev/null {} \; >& msgfmtlog.txt <br></div>





<div># filter out all the non critical messages (usefull only in this case) and put them in a file<br>cat msgfmtlog.txt | grep -v 'initial\|translated' > msgfmtcrit.txt<br><br><br></div><div>Kind regards,<br></div>





</div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><span style="font-size:large"><font color="#990000">Yaron</font><font color="#330000"> Shahrabani</font></span><blockquote style="margin:0 0 0 40px;border:none;padding:0px">





<div><font color="#666666"><span style="font-size:x-small"><font color="#FF0000"><</font></span>Hebrew translator<span style="font-size:x-small"><font color="#FF0000">></font></span></font></div></blockquote></div>




</div><div><div>

<br><br><div class="gmail_quote">On Sat, Jul 27, 2013 at 6:10 PM, Zolnai Tamás <span dir="ltr"><<a href="mailto:zolnaitamas2000@gmail.com" target="_blank">zolnaitamas2000@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div dir="ltr"><div class="gmail_extra">Yes, gettext may help, to find the problem, but
 the "contains invalid entry" message come from LO specific po checks. 
The LO used po has some additional requirements to meet. If you use 
Pootle, than this problem don't come up, but If you intend to use "Find and 
Replace" in a text editor than you have to be sure that this replacing 
touch only the lines started with "msgstr" and not others.<br><br></div><div class="gmail_extra">Best regards,<br></div>Tamás<div class="gmail_extra"><br><div class="gmail_quote">2013/7/27 Yaron Shahrabani <span dir="ltr"><<a href="mailto:sh.yaron@gmail.com" target="_blank">sh.yaron@gmail.com</a>></span><br>






<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><div dir="ltr"><div>It's fairly simple, assuming you have the gettext tools installed, if not just send me the file and I'll scan it for you.<br>






<br></div><div>With gettext the command would be: msgfmt -vco /dev/null base.po (in the same dir of course)<br>

</div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><span style="font-size:large"><font color="#990000">Yaron</font><font color="#330000"> Shahrabani</font></span><blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px">








<div><font color="#666666"><span style="font-size:x-small"><font color="#FF0000"><</font></span>Hebrew translator<span style="font-size:x-small"><font color="#FF0000">></font></span></font></div></blockquote></div>







</div>

<br><br><div class="gmail_quote"><div><div>On Sat, Jul 27, 2013 at 11:37 AM, Tadele Assefa <span dir="ltr"><<a href="mailto:milkyswd@gmail.com" target="_blank">milkyswd@gmail.com</a>></span> wrote:<br></div>
</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div>

Dear All,<br>
<br>
After we did a 100%, we decided to change some of owr strings to a  new<br>
terminology. As a result I did a "Find and Replace in All Files" using<br>
Sublime Text 2 to change the terms.<br>
<br>
After this I started building entire LO,(libreoffice-4-1 branch), but it<br>
failed to include the new terms saying invalid entry like<br>
"git/libowin/translations/source/sid/scp2/source/base.po contains invalid<br>
entry".<br>
<br>
<br>
What mistake did I do? How may i resolve this?<br>
</div></div><span><font color="#888888"><span><font color="#888888">--<br>
Regards,*<br>
___________________________<br>
Tadele Assefa***<br>
<br>
--<br>
To unsubscribe e-mail to: <a href="mailto:l10n%2Bunsubscribe@global.libreoffice.org" target="_blank">l10n+unsubscribe@global.libreoffice.org</a><br>
Problems? <a href="http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/" target="_blank">http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/</a><br>
Posting guidelines + more: <a href="http://wiki.documentfoundation.org/Netiquette" target="_blank">http://wiki.documentfoundation.org/Netiquette</a><br>
List archive: <a href="http://listarchives.libreoffice.org/global/l10n/" target="_blank">http://listarchives.libreoffice.org/global/l10n/</a><br>
All messages sent to this list will be publicly archived and cannot be deleted<br>
<br>
</font></span></font></span></blockquote></div><br></div>
<br></div></div>_______________________________________________<br>
LibreOffice mailing list<br>
<a href="mailto:LibreOffice@lists.freedesktop.org" target="_blank">LibreOffice@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/libreoffice" target="_blank">http://lists.freedesktop.org/mailman/listinfo/libreoffice</a><br>
<br></blockquote></div><br></div></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br><br clear="all"><br></div></div><div>-- <br><span>Regards,</span><b style="color:rgb(0,153,0)"><br>___________________________<br>
<i>Tadele Assefa<br>Managing Director</i></b><br><b><span style="color:rgb(0,153,0)"><img src="https://dl.dropbox.com/s/7h0fbamf7zdklg6/mci-logo-transparent.png?dl=1" height="43" width="200"><br><br>Cell: +25-911-84-13-84</span></b><br>



<font style="color:rgb(0,153,0)" size="1"><i><b><img src="https://dl.dropbox.com/s/vp2zc4tp5xl4fa4/dont_print_emails.jpg?dl=1" height="59" width="55">Think Green – Please do not print this email unless you really need to</b></i></font>
</div></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">Regards,</span><b style="color:rgb(0,153,0);background-color:rgb(255,255,255)"><br>___________________________<br>
<i>Tadele Assefa<br>Managing Director</i></b><br><b><span style="color:rgb(0,153,0)"><img src="https://dl.dropbox.com/s/7h0fbamf7zdklg6/mci-logo-transparent.png?dl=1" height="43" width="200"><br><br>Cell: +25-911-84-13-84</span></b><br>
<font style="color:rgb(0,153,0)" size="1"><i><b><img src="https://dl.dropbox.com/s/vp2zc4tp5xl4fa4/dont_print_emails.jpg?dl=1" height="59" width="55">Think Green – Please do not print this email unless you really need to</b></i></font>
</div>