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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,79c108d8d805d021 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!news2.google.com!news.germany.com!news.belwue.de!newsfeed.arcor.de!news.arcor.de!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Ada and Internationalization Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <1149026932.554318.202570@i39g2000cwa.googlegroups.com> Date: Wed, 31 May 2006 09:44:17 +0200 Message-ID: NNTP-Posting-Date: 31 May 2006 09:44:08 MEST NNTP-Posting-Host: b8e0dd25.newsread2.arcor-online.net X-Trace: DXC=`Q5]U:\7A`4j12nnM8XB1>Q5U85hF6f;4jW\KbG]kaM8[NGU2GAcMG:nL]o^6FWH;6WRXZ37ga[7:jTA67ckJ=X5PIlfoDmA6V> X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:4614 Date: 2006-05-31T09:44:08+02:00 List-Id: On 30 May 2006 16:12:35 -0700, Michael Rohan wrote: > I've checked Google and have not been able to find anything in Ada out > there for internationalized code. There's support for Wide_Character > and Wide_Wide_Character but there doesn't seem to be libraries for > message strings. Before starting down the path of writing from > scratch, wanted to check. > > If nothing is available, I was considering taking Java .properties > files, somehow "compiling" them into an Ada package and implementing > something akin to Java's MessageFormat: > > Arguments : Message_Arguments; > ... > Arguments.Append ("a string"); > Arguments.Append (10); > Arguments.Append (Pi); > Put_Line (Message_Format ("facility", "msg001", Arguments)); I don't see how this is related to internationalization. It looks like stream communication (see S"Output attribute) or string formatting. In either case you convert data to/from stream/string. For strings I have a small library which works this way, it has UTF-8 support. http://www.dmitry-kazakov.de/ada/strings_edit.htm -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de