From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,78e9bd49c9ce255c X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news2.google.com!news.glorb.com!feeder.erje.net!newsfeed.straub-nv.de!proxad.net!feeder1-2.proxad.net!usenet-fr.net!ircam.fr!freenix!news.wanadoo.fr!news.wanadoo.fr!not-for-mail Date: Sun, 13 Dec 2009 15:35:00 +0100 From: Christophe Chaumet User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Internationalization for Ada References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: <4b24fb7c$0$932$ba4acef3@news.orange.fr> Organization: les newsgroups par Orange NNTP-Posting-Date: 13 Dec 2009 15:34:36 CET NNTP-Posting-Host: 90.14.223.232 X-Trace: 1260714876 news.orange.fr 932 90.14.223.232:8430 X-Complaints-To: abuse@orange.fr Xref: g2news1.google.com comp.lang.ada:8382 Date: 2009-12-13T15:34:36+01:00 List-Id: 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