<div>Okay..Ghoniem... I want thinking in 2 ways that the output could:</div>
<div> </div>
<div>1. A List of objects of type..let's say localizedString class, this class has 3 members variables:</div>
<div>   - originalString of type String.</div>
<div>   - translatedString of type String.</div>
<div>   - stringOrder of type int; which indicates the string order at certain PO file; forth string or string number 44, string number 53,.. whatever.. it's a number will help us when we need to updatePO file again.</div>

<div> </div>
<div>Or the section option..</div>
<div>2. A text file named by module's name, and containing 3 column separated by tab, these 3 columns are the same member variable.. i mean..</div>
<div>string order          original Untranslated String       arabized translation      </div>
<div> </div>
<div>for example that text file would be something like that:</div>
<div>55          samba       خادم سامبا        </div>
<div>56          Domain       نطاق</div>
<div>57          Share       مشاركة</div>
<div> </div>
<div>With this option we can insert the data into db table using "LOAD DATA" statement instead of looping on each string and use "Insert" statement..</div>
<div> </div>
<div>Anyway..which option you prefer ghoniem..or you have another approach?!</div>
<div>You can start by making a class that deals only with utf-8 files.. got methods like reading from utf-8 file..write into utf-8 file.. read file header.. and try to read a single entry; msgid and msgstr, flags fuzzness of this string..
</div>
<div>BTW... thanks sherif for the url .. that's exactly what am looking for.. PO Formatting..</div>
<div> </div>
<div>THat's it for now..</div>
<div>Maha.</div>
<div> </div>
<div> </div>
<div>So.. let's start..:))</div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div><span class="gmail_quote">On 8/30/05, <b class="gmail_sendername">Mohammad Ghoniem</b> <<a href="mailto:mohammad.ghoniem@univ-ubs.fr">mohammad.ghoniem@univ-ubs.fr</a>> wrote:</span></div>
<div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Salâms,<br><br>Maha Helwa a écrit :<br><br>> Yareet had yerod.. sherif..what do think?! shall i do it in this way?!
<br>> FYI.. i did not read the source of kbabel yet.. i get shocked when i<br>> tried to look for a piece of code that reads the strings from PO<br>> file..which is doing what?! i get lost and frustrated after this try..
<br>> i don't remember C.. what a shame!!<br><br>Maha, I can write a piece of java code that parses po files. What type<br>of output do you need ? an array of strings ?<br><br>Salâm<br><br>Mohammad<br><br>--<br>Fedora-trans-ar mailing list
<br><a href="mailto:Fedora-trans-ar@redhat.com">Fedora-trans-ar@redhat.com</a><br><a href="http://www.redhat.com/mailman/listinfo/fedora-trans-ar">http://www.redhat.com/mailman/listinfo/fedora-trans-ar</a><br></blockquote>
</div><br>