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

Mohamed Eldesoky m.eldesoky at tedata.net
Wed Aug 31 07:19:57 UTC 2005


Interesting.
You can even take into account to make it work with any other language, so let 
it be the Arabs gift to other fedora translators :-)
Even you may choose an Arabic name for that application :-)


On Tuesday 30 August 2005 10:21 pm, Maha Helwa 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

-- 
Mohamed Eldesoky
Systems Engineer
RedHat Certified Engineer
TE Data




More information about the trans-ar mailing list