There is an environment variable named "LANG" that the system uses.
e.g. on my computer at the command prompt:
Code:
$> echo $LANG
en_NZ.UTF-8
so I'm apparently using New Zealand English with utf-8 character encoding.
if I run my "hello world" application I get:
Code:
$> ./hello
Hello, world!
How are you?
I can change my language from the command line... e.g.:
Code:
$> export LANG=fr_CA.utf-8
$> ./hello
Salût le Québec!
Ça va, les gars?
but I only get translated text for the applications that I installed French translations for. Otherwise it still comes out in English... or whatever was built into the application.
You can download "internationalization.html" from http://code.google.com/p/speaknumber/downloads/list for some more explanations.
Bookmarks