Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Lew Newsgroups: comp.lang.java.programmer Subject: Re: number and words Date: Wed, 2 May 2012 16:13:48 -0700 (PDT) Organization: http://groups.google.com Lines: 31 Message-ID: <26508931.2139.1336000428636.JavaMail.geo-discussion-forums@pbcvn7> References: <7d4884d6-aebf-436e-8a76-1e2a3bf10c8b@n1g2000vby.googlegroups.com> NNTP-Posting-Host: 69.28.149.29 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1336000429 5749 127.0.0.1 (2 May 2012 23:13:49 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 2 May 2012 23:13:49 +0000 (UTC) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=69.28.149.29; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T User-Agent: G2/1.0 X-Received-Bytes: 2115 Xref: csiph.com comp.lang.java.programmer:14167 Roedy Green wrote: > Daniel wrote, quoted or indirectly quoted someone who said : >=20 >>in english [sic]: >>123 one hundred twenty three "One hundred twenty-three" >>in german [sic]: >>123 eins hudrer deiund zwanzig >=20 > see http://mindprod.com/applet/inwords.html >=20 > includes source. > there are about 100 languages, though some are not languages in the > usual sense. Another approach would be to expand into one language, e.g., English, then = use resource bundles to translate those words into other languages. I don't= know how effective this would be. Yet another approach would be to use a database to store translations. The = finite approaches are limited, though, for example they might not work well= for some words, such as "quatre-vingt" in French, which you might not want= translated as "four-twenty" in English. Sorry, I'm not aware of any free code, but does Google Translate have a Web= service? If so, do they charge for it? --=20 Lew