[ENH] Bare-Babel for 3.7a ([approved][er])

Daniel Vainsencher danielv at netvision.net.il
Fri Oct 10 01:27:51 UTC 2003


Did some tiny formatting changes.

"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 a language 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 the language wording in English (example: Spanish) and
implement the method #name answering a symbol 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 these packages 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 other six languages are the already-included languages
in eToys vocabulary.  We can remove them only when the eToys refactoring
got made.

 "!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Babel-dgd.cs.gz
Type: application/octet-stream
Size: 5492 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20031010/b479ff7c/Babel-dgd.cs.obj


More information about the Squeak-dev mailing list