The Trunk: System-mt.877.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-mt.877.mcz

commits-2
Marcel Taeumel uploaded a new version of System to project The Trunk:
http://source.squeak.org/trunk/System-mt.877.mcz

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

Name: System-mt.877
Author: mt
Time: 11 August 2016, 8:51:55.609217 am
UUID: 6401282c-0ac4-7743-bacf-1d57f8bd2755
Ancestors: System-cmm.876

Fixes two bugs in language translation. One prevents an infinite loop, the other avoids the creation of instances of the abstract class NaturalLanguageTranslator. Fall-back to the internal translator instead. Thanks to Tim (F.) !

=============== Diff against System-cmm.876 ===============

Item was changed:
  ----- Method: Locale class>>localeChangedGently (in category 'notification') -----
  localeChangedGently
+ SystemNavigation default allBehaviorsDo: [:b | b == self ifFalse: [b localeChangedGently]].!
- self class environment allBehaviorsDo: [:b | b localeChangedGently].!

Item was changed:
  ----- Method: NaturalLanguageTranslator class>>default (in category 'accessing') -----
  default
  "Answer translator for backstop"
  "self default translate: 'test'"
+ ^ (self == NaturalLanguageTranslator ifTrue: [InternalTranslator] ifFalse: [self]) new
- ^ self new
  localeID: (LocaleID isoLanguage: 'en')!