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.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2f5274610845c232 X-Google-Attributes: gid103376,public From: "Nick Roberts" Subject: Re: I18N gettext style Date: 2000/03/06 Message-ID: <38c3b85f@eeyore.callnetuk.com>#1/1 X-Deja-AN: 593802811 References: <89q6pg$9ac1@news.cis.okstate.edu> X-Original-NNTP-Posting-Host: da129d229.dialup.callnetuk.com X-Trace: 6 Mar 2000 13:53:35 GMT, da129d229.dialup.callnetuk.com X-MSMail-Priority: Normal X-Priority: 3 Newsgroups: comp.lang.ada X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Date: 2000-03-06T00:00:00+00:00 List-Id: I'm sure I posted quite a lengthy article on this very subject just a couple of weeks ago. (Maybe it was too lengthy :-( ;-) To precis it incredibly briefly, my advice is to: (a) use forms such as "Number of widgets: " for each message, so that the problem of inserting parameters goes away; (b) use a database to store the messages in different languages, so that (one good reason for a start) you can use standard database tools to enter, edit, browse, report, analyse, check, etc., the text; (c) to be really fancy, build in a default set of messages, in case the program is run in circumstances where the database isn't available. -- Nick Roberts http://www.adapower.com/lab/adaos "David Starner" wrote in message news:89q6pg$9ac1@news.cis.okstate.edu... > gettext is a C library that does message translation - i.e. > > puts (N("Hi!")); > > will replace Hi with whatever's appropriate for the locale, > [etc.]