comp.lang.ada
 help / color / mirror / Atom feed
From: Christophe Chaumet <devteam@chaumetsoftware.com>
Subject: Re: Internationalization for Ada
Date: Sun, 13 Dec 2009 15:35:00 +0100
Date: 2009-12-13T15:34:36+01:00	[thread overview]
Message-ID: <4b24fb7c$0$932$ba4acef3@news.orange.fr> (raw)
In-Reply-To: <a564e173-49ea-48aa-a929-25d878bd5043@j14g2000yqm.googlegroups.com>

vlc a �crit :
> Hi *,
>
> Is there a preferred way for internationalization in Ada 2005 - like
> GNU gettext for GNU/Linux? If anyone has experience with this topic, I
> would be glad for a link which directs me into the right direction,
> also if there is something special for GtkAda.
>
> Thanks a lot in advance!
>   
Hello,

For my own usage I have a package "intl" which contains all the string 
literals and there is an instance of this package for each language 
(intl-fr.ads, intl-en.ads,...)  and I have defined a variable in GPS 
called 'language'. In the project file there is something like:

   package Naming is
      case language is
         when "french" =>    for Specification ("intl") use "intl_fr.ads";
         when "english" =>   for Specification ("intl") use "intl-en.ads";
      end case;
   end Naming;


When I want to generate an executable in a language I just select the 
proper value and the build do all the job. This works only with GPS, but 
its is independent of any other package like Gtk.

Regards

Christophe Chaumet



  parent reply	other threads:[~2009-12-13 14:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-11 23:15 Internationalization for Ada vlc
2009-12-12  9:23 ` Ludovic Brenta
2009-12-12 11:51   ` Dmitry A. Kazakov
2009-12-12 12:17   ` Georg Bauhaus
2009-12-12 12:24     ` Georg Bauhaus
2009-12-12 17:01       ` vlc
2009-12-12 17:18         ` Ludovic Brenta
2009-12-13 14:35 ` Christophe Chaumet [this message]
2009-12-14 15:18   ` Jacob Sparre Andersen
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox