[ENH] Bare-Babel for 3.7a

diegogomezdeck at consultar.com diegogomezdeck at consultar.com
Sat Oct 4 13:16:50 UTC 2003


"Change Set:		Babel-dgd
Date:			4 October 2003
Author:			Diego Gomez Deck <DiegoGomezDeck at ConsultAr.com>

The simplest way to make translatable any code is sending #translated to
every visible-string.This message will answer the translation to the current selected language.
 You can force alanguage using #translatedTo: languageNameSymbol.

For compound strings you can use #format: message.  Example:

   'Your name is {1} and you are {2} years old.' format:{'Diego'. 30}.

For a complete translatable-compound string you can combine both type of
messages:
   'Your name is {1} and you are {2} years old.' translated
   format:{'Diego'. 30}.
To create another language just create a subclass of Language class naming
it with thelanguage wording in English (example: Spanish) and implement the method
#name answering asymbol with the name of the language in the language wording (example:
#Español).
For more up-to-date information visit:
http://swiki.agro.uba.ar/small_land/191
You can find more languages and a tool for the translation works in
SqueakMap. All thesepackages will be named Babel<Something>, example:

- Babel translator's tool.
- Babel Spanish/Español translation.
- Babel French/Français translation.


'Enjoy it' translated.

NOTE: Seven languages are included. English is the default and it has to
be included, the othersix languages are the already-included languages in eToys vocabulary.  We
can remove themonly when the eToys refactoring got made.

 "

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Babel-dgd.3.cs.gz
Type: application/x-gzip
Size: 5513 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20031004/e484ec84/Babel-dgd.3.cs.bin


More information about the Squeak-dev mailing list