[etoys-dev] Etoys Inbox: Collections-Richo.5.mcz
commits at source.squeak.org
commits at source.squeak.org
Mon May 17 22:45:04 EDT 2010
A new version of Collections was added to project Etoys Inbox:
http://source.squeak.org/etoysinbox/Collections-Richo.5.mcz
==================== Summary ====================
Name: Collections-Richo.5
Author: Richo
Time: 17 May 2010, 11:45:22 pm
UUID: 15d54343-1b63-4047-8158-a3ba98d1479c
Ancestors: Collections-Richo.4
* Added some methods to get a translation in a defined domain.
=============== Diff against Collections-Richo.4 ===============
Item was added:
+ ----- Method: String>>translatedInDomain: (in category 'translating') -----
+ translatedInDomain: aDomainName
+ ^self translatedTo: LocaleID current inDomain: aDomainName
+ !
Item was added:
+ ----- Method: String>>translatedInAnyDomain (in category 'translating') -----
+ translatedInAnyDomain
+ | translation |
+ Transcript show: self printString, ' translatedInAnyDomain'; cr.
+ TextDomainManager allKnownDomains do: [:domain |
+ translation := self translatedInDomain: domain.
+ self = translation ifFalse: [^translation]
+ ].
+ ^self!
More information about the etoys-dev
mailing list