The Trunk: System-topa.775.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: System-topa.775.mcz

commits-2
Tobias Pape uploaded a new version of System to project The Trunk:
http://source.squeak.org/trunk/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]]!