[Pkg] The Trunk: System-topa.775.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Oct 29 01:13:03 UTC 2015

Tobias Pape uploaded a new version of System to project The Trunk:

==================== 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 Packages mailing list