[squeak-dev] The Trunk: Multilingual-tfel.217.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Aug 30 08:46:11 UTC 2016


Tim Felgentreff uploaded a new version of Multilingual to project The Trunk:
http://source.squeak.org/trunk/Multilingual-tfel.217.mcz

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

Name: Multilingual-tfel.217
Author: tfel
Time: 30 August 2016, 10:45:47.544946 am
UUID: 27bb7f3b-ba8e-6241-955f-fb13701e5d19
Ancestors: Multilingual-tfel.216, Multilingual-ul.216

merge Squeakland Etoys variant of getting a localeID. makes it more robust by allowing e.g. 'de-AU' to fallback to 'de' rather than letting everything fall back to 'en' immediately

=============== Diff against Multilingual-ul.216 ===============

Item was changed:
  ----- Method: LanguageEnvironment class>>localeID: (in category 'accessing') -----
+ localeID: localeID 
+ 	"LanguageEnvironment localeID: (LocaleID isoString: 'ja-kid')"
+ 	"LanguageEnvironment localeID: (LocaleID isoString: 'xx')"
+ 	^ self knownEnvironments
+ 		at: localeID
+ 		ifAbsent: [localeID hasParent
+ 				ifTrue: [self knownEnvironments
+ 						at: localeID parent
+ 						ifAbsent: [self
+ 								localeID: (LocaleID isoLanguage: 'en')]]
+ 				ifFalse: [self
+ 						localeID: (LocaleID isoLanguage: 'en')]]!
- localeID: localeID
- 	^self knownEnvironments at: localeID ifAbsent: [self localeID: (LocaleID isoLanguage: 'en')]!



More information about the Squeak-dev mailing list