[squeak-dev] The Inbox: System-topa.775.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Oct 29 00:06:33 UTC 2015


Tobias Pape uploaded a new version of System to project The Inbox:
http://source.squeak.org/inbox/System-topa.775.mcz

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

Name: System-topa.775
Author: topa
Time: 29 October 2015, 1:06:23.749 am
UUID: a2ad05e2-8cf3-4974-84c4-7a5d93e304e3
Ancestors: System-ul.774

Cache NaturalLanguageTranslator when looking up yet inexisting ones.

Induced by tim Rowledge
(see http://forum.world.st/image-startup-complications-td4858390.html)

=============== Diff against System-ul.774 ===============

Item was changed:
  ----- Method: NaturalLanguageTranslator class>>availableForLocaleID: (in category 'accessing') -----
  availableForLocaleID: localeID 
  	"Answer available locale ID.
  	If translator is not found for correct locale ID, then isoLanguage is
  	attempted for the key."
  	^ self translators
  		at: localeID
+ 		ifAbsentPut: [localeID hasParent
- 		ifAbsent: [localeID hasParent
  				ifTrue: [self translators
  						at: localeID parent
  						ifAbsent: [self default]]
  				ifFalse: [self default]]!



More information about the Squeak-dev mailing list