[gtkada] make an app in several languages

Jacob Sparre Andersen sparre at nbi.dk
Mon Feb 7 09:47:56 CET 2005


Thomas De Contes wrote:

> i red
> http://libre.act-europe.fr/GtkAda/docs/gtkada_rm_21.html#SEC89
> but i didn't understood

  "See the gettext documentation of your specific OS for
   more details."

should be quite clear to understand.  There are operating
system specific differences.

> i have to do a commercial app, which should be one program
> (or at least 1 directory, to drag where the user wants)

That's (IMO) bad style, but you should be able to do it, if
you override "TEXTDOMAINDIR" with the location of the
directory your translation files are stored in.

> how should i do with gettext to have it translate text ?

Make a ".mo" file for each language.  See the GNU Gettext
manual for the exact details.

> how will users do to change the language ?

Change the value of the environment variable "LANG".

Jacob

PS: Your questions are not really Ada specific.
-- 
"Then, after a second or so, nothing continued to happen."




More information about the gtkada mailing list