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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5cb36983754f64da X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-04-17 15:38:43 PST Path: archiver1.google.com!news1.google.com!news.glorb.com!news.tele.dk!news.tele.dk!small.news.tele.dk!news-fra1.dfn.de!news-ham1.dfn.de!news.uni-hamburg.de!cs.tu-berlin.de!uni-duisburg.de!not-for-mail From: Georg Bauhaus Newsgroups: comp.lang.ada Subject: Re: No call for Ada (was Re: Announcing new scripting/prototyping Date: Sat, 17 Apr 2004 22:38:43 +0000 (UTC) Organization: GMUGHDU Message-ID: References: <20040206174017.7E84F4C4114@lovelace.ada-france.org> <874qs0zvy1.fsf@insalien.org> <40714C98.90601@noplace.com> <1073gv22t969q5a@corp.supernews.com> <40729B9D.30906@noplace.com> <1076000ef5oj06f@corp.supernews.com> <87d666wjq3.fsf@insalien.org> NNTP-Posting-Host: l1-hrz.uni-duisburg.de X-Trace: a1-hrz.uni-duisburg.de 1082241523 8873 134.91.1.34 (17 Apr 2004 22:38:43 GMT) X-Complaints-To: usenet@news.uni-duisburg.de NNTP-Posting-Date: Sat, 17 Apr 2004 22:38:43 +0000 (UTC) User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (HP-UX/B.11.00 (9000/800)) Xref: archiver1.google.com comp.lang.ada:7284 Date: 2004-04-17T22:38:43+00:00 List-Id: Ludovic Brenta wrote: : If you have strings : meant for display to the end user, you should place them in a separate : file and use gettext. Ada is enough here I think, and has the advantage that you can have an Ada compiler check the completeness of messages. with Languages; use Languages; package Program_Messages is type Wide_String_Access is access constant Wide_String; type Msg_ID is (too_high, too_low); type Text_Message_List is array(Msg_ID) of Wide_String_Access; type Message_Table is array (Language) of Text_Message_List; Message: constant Message_Table := (English => (too_high => new Wide_String'("more than the program can handle"), too_low => new Wide_String'("not enough")), German => (too_high => new Wide_String'("mehr als das Programm handhaben kann"), too_low => new Wide_String'("zu wenig"))); end Program_Messages;