The Trunk: Multilingual-tfel.217.mcz

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

The Trunk: Multilingual-tfel.217.mcz

commits-2
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')]!