|
Hello world To maintain the text output "Hello world" the following line is all it takes: "Hello world" Attention Compare to other programming languages: http://www.lob.de/pdf/helloworld.pdf or http://www.roesler-ac.de/wolfram/hello.htm
"Hello world" - multilingual version For "Hello world", a Multilingual Text simply needs to be put in the stack. T("Hallo Welt", "Hello world", "Hola mundo") Attention The user-specific language setting will now determine the correct text output. The setting can be changed any time during runtime. "99 bottles of beer" - multilingual version To display the entire song for instance in German, too, the programming becomes be a bit more complex. The actual problem though, will be the differentiation of singular and plural.
"99 bottles of beer" as
service
"SING_BOTTLES_OF_BEER_IN_ENGLISH"
calls the English version, "SING_BOTTLES_OF_BEER_ML" calls the multilingual
version and "SING_BOTTLES_OF_BEER_WITH_UNITS" calls the version with
units from everywhere. |
"99 bottles of beer"
The equivalent implementation in other programming languages is shown
here:
http://www.99-bottles-of-beer.net.
Unlike our version above, many examples shown on this page don't
differentiate between plural "bottles" and singular "bottle", making
programming easier.
"99 bottles of beer"
with units
|