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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!reality.xs3.de!news.jacob-sparre.dk!loke.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Running a preprocessor from GPS? Date: Thu, 30 Jul 2015 18:58:51 -0500 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <2df4698f-4c8e-457c-822d-209cb2f8ab5e@googlegroups.com> <014427b1-ff7a-4a69-82e6-0330af77ed96@googlegroups.com> <1438244829.17005.26.camel@obry.net> <0a8104af-4ebb-4d82-92e5-6ba7289272ce@googlegroups.com> <262cbf86-25a0-4802-b72e-ec6e650e1dc7@googlegroups.com> NNTP-Posting-Host: rrsoftware.com X-Trace: loke.gir.dk 1438300733 13307 24.196.82.226 (30 Jul 2015 23:58:53 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Thu, 30 Jul 2015 23:58:53 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: news.eternal-september.org comp.lang.ada:27248 Date: 2015-07-30T18:58:51-05:00 List-Id: "EGarrulo" wrote in message news:262cbf86-25a0-4802-b72e-ec6e650e1dc7@googlegroups.com... ... > OK. Now please write the code so that it could be easily adapted to a > different language by possibly swapping the arguments that are fed to the > output string (this may not cover all existing languages, but it could be > good > enough). Localization is a very difficult problem that defies simple solutions like format strings (or resource files or any other such solution). These simple solutions tend to provide enough of the solution to be seductive, but not enough of the solution to actually save any effort. Ultimately, one has to adopt an application-specific solution (which is why the only localization Ada provides is a query to find out the country and language). And that is no easier or harder in Ada than it is in any other traditional language. Randy.