<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 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 "daemon" take it with its translation, know if it's translation is fuzzy or not.. and then populate the data into db table.  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> </div>
<div> </div>
<div>We have 3 significant data in PO file:</div>
<div>    1- The original string and its translation; search on <font size="2"><strong>msgid</strong>&<font size="2"><strong>msgstr</strong> keywords</font></font></div>
<div>    2- Knowing whether or not the string is fuzzy; by searching on this "<font size="2"><strong>#, fuzzy</strong></font>" in the header of the current string am parsing on..</div>
<div>    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"> </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 <<a href="mailto:okhayat@yahoo.com">okhayat@yahoo.com</a>>, 2004.</strong></font></p>
<p><font color="#009900"><strong># Maha Helwa <<a href="mailto:mahahelwa@gmx.net">mahahelwa@gmx.net</a>>, 2004.</strong></font></p>
<p><font color="#009900"><strong># Sherif Abdelgawad <<a href="mailto:sherif@redhat.com">sherif@redhat.com</a>>, 2004.</strong></font></p>
<p><font color="#009900"><strong># Munzir Taha <<a href="mailto:munzirtaha@newhorizons.com.sa">munzirtaha@newhorizons.com.sa</a>>, 2004</strong></font>.</p>
<p>#</p>
<p>msgid ""</p>
<p>msgstr ""</p>
<p>"Project-Id-Version: system-config-samba\n"</p>
<p>"POT-Creation-Date: 2005-03-09 15:51+0100\n"</p>
<p><strong><font color="#990000">"PO-Revision-Date: 2005-04-10 02:31-0800\n"</font></strong></p>
<p><strong><font color="#990000">"Last-Translator: maha <<a href="mailto:mahahelwa@gmx.net">mahahelwa@gmx.net</a>>\n"</font></strong></p>
<p>"Language-Team: Arabic <<a href="mailto:fedora-trans-ar@redhat.com">fedora-trans-ar@redhat.com</a>>\n"</p>
<p>"MIME-Version: 1.0\n"</p>
<p>"Content-Type: text/plain; charset=UTF-8\n"</p>
<p>"Content-Transfer-Encoding: 8bit\n"</p>
<p> </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">> Add the name of the contributor at the end of contributors list and update the value of "last translator" tag or whatever it's called ..</font></div>
<div><font size="2">></font><font size="2"> Date of Revision.. i don't think every checkin.. when this value is changed?</font></div>
<div> </div>
<div>So i want to know why i should not treat any PO file just as 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 to read/write any part of PO file with certain encoding "utf-8"?
</div>
<div> </div>
<div> </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 doing what?! i get lost and frustrated after this try.. i don't remember C.. what a shame!!
</div>
<div> </div>
<div>Maha.</div>
<div> </div></div>