On Sat, 01 Nov 2008, Szak�ts Viktor wrote:

Hi Viktor,

>     ; NOTE: The internal format of 'trs' (loaded translation) is also 
>             different. For minimal memory/speed overhead, I've choosen a one 
>             dimensional array, as opposed to the original two dimensional 
>             (like the input aSortedTable array).

I suggest to use internally hash array instead of normal array.
It will be more flexible on .prg level because user can simply make:
   trs[ cText ] := cTranslation
and then:
   ? trs[ cText ]

We should also add support to process .pot files generated by compiler with
-j option:

   proc main()
      ? HB_I18N_GETTEXT( "Hello World !!!" )
   return

to create final version compatible with format you added.
Please also remember that you can use hb_serialize*() functions to
convert Harbour items to text and hb_deserialize for reverted conversion.
It may simplify the code and will be easier to create helper tools at .prg
level. It's time to make some serialize functions public. See rtl/itemseri.c.

best regards,
Przemek
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to