[etoys-dev] Etoys Inbox: Collections-Richo.4.mcz

commits at source.squeak.org commits at source.squeak.org
Thu May 13 15:56:15 EDT 2010


A new version of Collections was added to project Etoys Inbox:
http://source.squeak.org/etoysinbox/Collections-Richo.4.mcz

==================== Summary ====================

Name: Collections-Richo.4
Author: Richo
Time: 13 May 2010, 4:55:53 pm
UUID: 7abb1f7a-70b4-184c-ba0d-c40455c50904
Ancestors: Collections-bf.3

* Modified String>>#translated

=============== Diff against Collections-bf.3 ===============

Item was changed:
  ----- Method: String>>translatedTo: (in category 'translating') -----
  translatedTo: localeID 
  	"answer the receiver translated to the given locale id"
+ 	^ self translatedTo: localeID inDomain: (TextDomainManager domainOfMethod: thisContext sender method).!
- 	| domain |
- 	domain := TextDomainManager domainForClass: thisContext sender receiver class.
- 	^ self translatedTo: localeID inDomain: domain!

Item was changed:
  ----- Method: String>>translated (in category 'translating') -----
  translated
  	"answer the receiver translated to the default language"
+ 	^ self
+ 		translatedTo: LocaleID current
+ 		inDomain: (TextDomainManager domainOfMethod: thisContext sender method) !
- 
- 	| context class domain |
- 	context := thisContext sender.
- 	class := context mclass.
- 	"Can we get rid of Text>>translated? It appears to be an abandoned experiment to translate the QuickGuides."
- 	(class == Text and: [context method == (Text>>#translated)])
- 		ifTrue: [class := context sender mclass].
- 	domain := TextDomainManager domainForClass: class.
- 	^ self translatedTo: LocaleID current inDomain: domain!



More information about the etoys-dev mailing list