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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!newsfeed.xs3.de!io.xs3.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.109.57.77.220.mobile.3.dk!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.lang.ada Subject: Re: gettext for Ada Date: Mon, 20 Nov 2017 20:28:48 +0100 Organization: JSA Research & Innovation Message-ID: <87r2sszr4f.fsf@jacob-sparre.dk> References: <2c5d0dff-bc12-4b37-b8e1-ac176c3e675f@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: franka.jacob-sparre.dk; posting-host="109.57.77.220.mobile.3.dk:109.57.77.220"; logging-data="25615"; mail-complaints-to="news@jacob-sparre.dk" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Cancel-Lock: sha1:p2PaFOPO/3f8KPICT+Sss8jRSMk= Xref: feeder.eternal-september.org comp.lang.ada:49018 Date: 2017-11-20T20:28:48+01:00 List-Id: Shark8 wrote: > On Sunday, November 19, 2017 at 1:40:55 PM UTC-7, Victor Porton wrote: >> Where can I get a gettext bindings for Ada? Included in GtkAda IIRC. > I would actually advise against gettext usage, in general I would actually advise in favour of GNU Gettext - or at least it's mechanism: + The developer can write UI strings which make sense. + Translations can be distributed separately from the executables. I'm working on a project where we're going to handle translations similarly to how GNU Gettext does it. (We can't use GNU Gettext directly, since we're required to use a database as the translation storage.) The problem with GNU Gettext - and C printf() - is that you lose the compile-time checking that formatting fields match the data passed. Greetings, Jacob -- »And what about homo sapiens? Yes, we think that would be a very good idea ...« -- not Gandhi