comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <rm.dash-bauhaus@futureapps.de>
Subject: Re: Formatted IO - Fortran style or similar.
Date: Wed, 01 Aug 2012 12:28:35 +0200
Date: 2012-08-01T12:28:34+02:00	[thread overview]
Message-ID: <501904d2$0$6574$9b4e6d93@newsspool3.arcor-online.net> (raw)
In-Reply-To: <87boivrq3a.fsf@adaheads.sparre-andersen.dk>

On 01.08.12 10:09, Jacob Sparre Andersen wrote:

> My question was related to _translatable_ user visible strings.  If I
> just want to make an all-American program, your proposed solution is
> fine, but when I want to make it easy to translate the user visible
> strings in an application you proposed solution is unacceptable.

I have once tried to do this using Ada. The solution was, roughly, to
enumerate messages, and also enumerate (grammatical) parts of a message.
So, there were enum types, and this had some desirable consequences:

(a) I know each of the program's messages. It has a name (and/or number).
(b) There is some flexibility in placing parts of sentences,
    which differ per natural language.
(c) The messages can be transformed from Ada to XML and back,
    so that external, XML based translation tools would assist.
(d) No message can ever be missing.
(e) No external "message extraction tool" is needed.

The mechanism is a bit much for ad-hoc debugging text, I think,
but then debugging messages are not meant for users, and may
not need to be translated.

Don't know if SQL standard error numbers work the same way.




  reply	other threads:[~2012-08-06 14:24 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-30  8:50 Formatted IO - Fortran style or similar Mark Murray
2012-07-30  9:59 ` Ian Clifton
2012-07-30 18:57   ` Michael Rohan
2012-07-30 22:12   ` Mark Murray
2012-07-31  7:17     ` Dmitry A. Kazakov
     [not found]     ` <npbe18d3o3gdc2ut41f1codvv6rhfgidr3@invalid.netcom.com>
2012-07-31 11:56       ` Jacob Sparre Andersen
2012-07-31 15:12         ` stefan-lucks
2012-07-31 17:34           ` Adam Beneschan
2012-08-01  6:56             ` stefan-lucks
     [not found]           ` <be5g18p0gnf2ocdf3hmgjslgnu0jogrh91@invalid.netcom.com>
2012-08-01  6:48             ` stefan-lucks
2012-08-01  8:09           ` Jacob Sparre Andersen
2012-08-01 10:28             ` Georg Bauhaus [this message]
2012-08-01 16:28             ` Simon Wright
2012-08-01 19:14             ` Michael Rohan
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox