[Fedora-trans-ar] .PO &.txt?.. what makes PO Very Special!!

Maha Helwa ms.helwa at gmail.com
Wed Aug 31 23:23:45 UTC 2005


Haa ya Ghoniem.. Working very quitely walla didn't get my point.. choose the 
simplest case to start with.. btw.. i tried today to read from utf8 file.. 
but failed in reading it although i defined the streams and everythign.. 
anyway..let me know what u did.. okay?!
 Maha.

 On 8/30/05, Maha Helwa <ms.helwa at gmail.com> wrote: 
> 
> Okay..Ghoniem... I want thinking in 2 ways that the output could:
>  1. A List of objects of type..let's say localizedString class, this class 
> has 3 members variables:
>  - originalString of type String.
>  - translatedString of type String.
>  - 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.
>  Or the section option..
> 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..
> string order original Untranslated String arabized translation 
>  for example that text file would be something like that:
> 55 samba خادم سامبا 
> 56 Domain نطاق
> 57 Share مشاركة
>  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..
>  Anyway..which option you prefer ghoniem..or you have another approach?!
> 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.. 
> BTW... thanks sherif for the url .. that's exactly what am looking for.. 
> PO Formatting..
>  THat's it for now..
> Maha.
>   So.. let's start..:))
>      On 8/30/05, Mohammad Ghoniem <mohammad.ghoniem at univ-ubs.fr> wrote:
>  
> > Salâms,
> > 
> > Maha Helwa a écrit :
> > 
> > > Yareet had yerod.. sherif..what do think?! shall i do it in this way?! 
> > 
> > > 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!!
> > 
> > Maha, I can write a piece of java code that parses po files. What type
> > of output do you need ? an array of strings ?
> > 
> > Salâm
> > 
> > Mohammad
> > 
> > --
> > Fedora-trans-ar mailing list 
> > Fedora-trans-ar at redhat.com
> > http://www.redhat.com/mailman/listinfo/fedora-trans-ar
> > 
> 
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-trans-ar/attachments/20050901/20b858b1/attachment.htm>


More information about the Fedora-trans-ar mailing list