comp.lang.ada
 help / color / mirror / Atom feed
From: Jacob Sparre Andersen <jacob@jacob-sparre.dk>
Subject: Re: gettext for Ada
Date: Thu, 23 Nov 2017 10:15:36 +0100
Date: 2017-11-23T10:15:36+01:00	[thread overview]
Message-ID: <87efopz77r.fsf@jacob-sparre.dk> (raw)
In-Reply-To: ov23qn$b5t$1@gioia.aioe.org

Dmitry A. Kazakov wrote:
> On 2017-11-21 20:15, Jacob Sparre Andersen wrote:
>> Dmitry A. Kazakov wrote:

>>> That does not apply to Ada which is typed. In Ada I would do:
>>>
>>>     X : Meats := 1;
>>>
>>>     Put_Line ("You have" & Image (X));
>>>
>>> and Image (Meats) will produce "1 meat".
>>
>> This makes perfect sense - if you're only going to communicate in
>> English.  I can't see how you can extrapolate that to multiple
>> languages.  And definitely not multiple languages added dynamically
>> after compiling the program.
>
> The only thing you need to change is Image for String argument:
>
>    Put_Line (Image ("You have") & Image (X));
>
> Image will make lookup for "You have" in the translation table. So
> will do Image for Meats when looking for "meat" and "meats".

That assumes that all the languages you translate to have the same word
order.  I don't think that is realistic.

Greetings,

Jacob
-- 
The backhoe is the natural predator of the fiber optic cable.


  reply	other threads:[~2017-11-23  9:15 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-19 20:40 gettext for Ada Victor Porton
2017-11-20 15:40 ` Shark8
2017-11-20 19:28   ` Jacob Sparre Andersen
2017-11-20 19:59     ` Shark8
2017-11-20 20:33       ` Dmitry A. Kazakov
2017-11-21 19:15         ` Jacob Sparre Andersen
2017-11-21 20:54           ` Dmitry A. Kazakov
2017-11-23  9:15             ` Jacob Sparre Andersen [this message]
2017-11-23  9:47               ` Dmitry A. Kazakov
2017-11-23 10:03                 ` Jacob Sparre Andersen
2017-11-23 10:37                   ` Dmitry A. Kazakov
2017-11-23 12:14                     ` Jacob Sparre Andersen
2017-11-23 13:23                       ` Dmitry A. Kazakov
2017-11-21 19:22       ` Jacob Sparre Andersen
2017-11-20 22:43   ` Randy Brukardt
2017-11-21  0:28     ` Shark8
2017-11-21  8:29       ` G. B.
2017-11-21 13:48         ` J-P. Rosen
2017-11-22  1:10       ` Randy Brukardt
2017-11-22 15:38         ` Shark8
2017-11-23  0:30           ` Randy Brukardt
2017-11-23  3:08             ` Shark8
2017-11-28  0:48               ` Randy Brukardt
2017-11-28 16:47                 ` Simon Wright
2017-11-28 17:03                 ` Dmitry A. Kazakov
2017-11-28 22:41                   ` Randy Brukardt
2017-11-29  9:09                     ` Dmitry A. Kazakov
2017-11-23  8:25           ` G. B.
2017-11-23 16:02             ` Shark8
2017-11-23 18:55               ` G. B.
2017-11-23 20:24                 ` Shark8
2017-11-28  0:55                   ` Randy Brukardt
2017-11-22 21:36 ` Blady
replies disabled

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