From: James Dennett <jdennett@cox.net>
Subject: Re: Ada and Internationalization
Date: Wed, 31 May 2006 07:53:36 -0700
Date: 2006-05-31T07:53:36-07:00 [thread overview]
Message-ID: <Q5ifg.102231$iU2.84021@fed1read01> (raw)
In-Reply-To: <jfxn5f2tz65a$.1ong57s2jbl04$.dlg@40tude.net>
Dmitry A. Kazakov wrote:
> 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.
Formatting of strings for human readers needs to produce
output that is correctly localized, hence is always an
issue in an internationalized program, non?
-- James
next prev parent reply other threads:[~2006-05-31 14:53 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-30 23:12 Ada and Internationalization Michael Rohan
2006-05-31 5:52 ` Ludovic Brenta
2006-05-31 7:44 ` Dmitry A. Kazakov
2006-05-31 14:53 ` James Dennett [this message]
2006-05-31 15:23 ` Dmitry A. Kazakov
2006-05-31 15:27 ` James Dennett
2006-06-01 11:00 ` Dmitry A. Kazakov
2006-06-03 1:23 ` Randy Brukardt
2006-06-04 13:23 ` Stephen Leake
2006-06-04 20:09 ` Randy Brukardt
2006-05-31 10:11 ` Georg Bauhaus
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox