There is a small error in the documentation on that page: If you now open the translation viewer you will see both translations: 'Welcome' for the english language and 'Willkommen' for german language registered with the given message key. So depending on the translator that one asks a different String is returned: (I18NTranslator forLanguage: 'DE') welcome. returns 'Willkommen' and (I18NTranslator forLanguage: 'DE') welcome. returns 'Welcome' I think the second line of code should be (I18NTranslator forLanguage: 'EN') welcome. Joachim Am 15.09.14 um 10:29 schrieb Sven Van Caekenberghe:
Perfect! Well done & presented (as usual ;-)
The way I see it, that is all there is to it.
I like it that a single image can translate into multiple languages.
I guess some people would also like
String>>#translated ^ I18NTranslator defaultTranslator at: self
I assume that the actual storage is open ended to also allow databases and so on ?
On 15 Sep 2014, at 10:23, Torsten Bergmann <astares@gmx.de> wrote:
Need an easy translation framework for your Pharo application with no external dependency?
Then check out the I18N project:
http://smalltalkhub.com/#!/~TorstenBergmann/I18N
Docu and examples can be found on the same page, screenshot is attached.
Bye T.<i18n.png>
-- ----------------------------------------------------------------------- Objektfabrik Joachim Tuchel mailto:jtuchel@objektfabrik.de Fliederweg 1 http://www.objektfabrik.de D-71640 Ludwigsburg http://joachimtuchel.wordpress.com Telefon: +49 7141 56 10 86 0 Fax: +49 7141 56 10 86 1