<div>Ok.. got another question.. what's the difference between .txt and .po .. sure there is a difference.. but am thinking about how to deal parse and rebuild PO file from java code.. we need to read&nbsp;po file each to update the db..so we need to do some parsing work and understand how to read it..the second time i need to deal with PO file when am populating the data backward from the db into the files; modify the already existing file or create a new one.. what if i did treat it as a text file that am looking for say &quot;daemon&quot; take it with its translation, know if it's translation is fuzzy or not.. and then populate the data into db table.&nbsp; vice verse.. i want to create or modify PO file.. I'll be looking for a keywords and change the text or a value of a header.. that's it!! i guess so :))
</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>We have 3 significant data in PO file:</div>
<div>&nbsp;&nbsp;&nbsp; 1- The original string and its translation; search on <font size="2"><strong>msgid</strong>&amp;<font size="2"><strong>msgstr</strong>&nbsp;keywords</font></font></div>
<div>&nbsp;&nbsp; &nbsp;2- Knowing whether or not the string is fuzzy; by searching on this &quot;<font size="2"><strong>#, fuzzy</strong></font>&quot; in the header of the current string am parsing on..</div>
<div>&nbsp;&nbsp;&nbsp; 3- The file headers.. for example..at the top of samba file you will see this section and it's existing in each po file:</div>
<div><font size="2">&nbsp;</font></div>
<div>
<p># translation of system-config-samba.po to Arabic</p>
<p># This file is distributed under the same license as the PACKAGE package.</p>
<p># Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER.</p>
<p><font color="#009900"><strong># Ossama M. Khayat &lt;<a href="mailto:okhayat@yahoo.com">okhayat@yahoo.com</a>&gt;, 2004.</strong></font></p>
<p><font color="#009900"><strong># Maha Helwa &lt;<a href="mailto:mahahelwa@gmx.net">mahahelwa@gmx.net</a>&gt;, 2004.</strong></font></p>
<p><font color="#009900"><strong># Sherif Abdelgawad &lt;<a href="mailto:sherif@redhat.com">sherif@redhat.com</a>&gt;, 2004.</strong></font></p>
<p><font color="#009900"><strong># Munzir Taha &lt;<a href="mailto:munzirtaha@newhorizons.com.sa">munzirtaha@newhorizons.com.sa</a>&gt;, 2004</strong></font>.</p>
<p>#</p>
<p>msgid &quot;&quot;</p>
<p>msgstr &quot;&quot;</p>
<p>&quot;Project-Id-Version: system-config-samba\n&quot;</p>
<p>&quot;POT-Creation-Date: 2005-03-09 15:51+0100\n&quot;</p>
<p><strong><font color="#990000">&quot;PO-Revision-Date: 2005-04-10 02:31-0800\n&quot;</font></strong></p>
<p><strong><font color="#990000">&quot;Last-Translator: maha &lt;<a href="mailto:mahahelwa@gmx.net">mahahelwa@gmx.net</a>&gt;\n&quot;</font></strong></p>
<p>&quot;Language-Team: Arabic &lt;<a href="mailto:fedora-trans-ar@redhat.com">fedora-trans-ar@redhat.com</a>&gt;\n&quot;</p>
<p>&quot;MIME-Version: 1.0\n&quot;</p>
<p>&quot;Content-Type: text/plain; charset=UTF-8\n&quot;</p>
<p>&quot;Content-Transfer-Encoding: 8bit\n&quot;</p>
<p>&nbsp;</p>
<div><font size="2">Only 3 values that are changeable by the time of checkin any PO file:</font></div>
<div><font size="2">&gt;&nbsp;Add the name of the contributor at the end of contributors list and update the value of &quot;last translator&quot; tag or whatever it's called ..</font></div>
<div><font size="2">&gt;</font><font size="2">&nbsp;Date of Revision.. i don't think&nbsp;every checkin.. when this value is changed?</font></div>
<div>&nbsp;</div>
<div>So i want to know why i should not treat any PO file just as&nbsp;a normal text file? is it about the encoding? well am not sure but i guess it can be handled from the java side!! decided&nbsp;to read/write any part of PO file with certain encoding &quot;utf-8&quot;?
</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>Yareet had yerod.. sherif..what do think?! shall i do it in this way?! </div>
<div>FYI.. i did not read the source of kbabel yet.. i get shocked when i tried to look for a piece of code that reads the strings from PO file..which is&nbsp;doing what?! i get lost and frustrated after this try.. i don't remember C.. what a shame!!
</div>
<div>&nbsp;</div>
<div>Maha.</div>
<div>&nbsp;</div></div>