The Inbox: Morphic-dtl.633.mcz

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

The Inbox: Morphic-dtl.633.mcz

commits-2
A new version of Morphic was added to project The Inbox:
http://source.squeak.org/inbox/Morphic-dtl.633.mcz

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

Name: Morphic-dtl.633
Author: dtl
Time: 27 December 2012, 3:09:21.232 pm
UUID: fa1e9d6c-e960-448e-ac9d-befb92b80e94
Ancestors: Morphic-fbs.632

Fix for: Project current chooseNaturalLanguage ==> DNU

=============== Diff against Morphic-fbs.632 ===============

Item was changed:
  ----- Method: MorphicProject>>chooseNaturalLanguage (in category 'language') -----
  chooseNaturalLanguage
  "Put up a menu allowing the user to choose the natural language for the project"
 
  | aMenu availableLanguages |
  aMenu := MenuMorph new defaultTarget: self.
  aMenu addTitle: 'choose language' translated.
  aMenu lastItem setBalloonText: 'This controls the human language in which tiles should be viewed.  It is potentially extensible to be a true localization mechanism, but initially it only works in the classic tile scripting system.  Each project has its own private language choice' translated.
  Preferences noviceMode
  ifFalse:[aMenu addStayUpItem].
 
+ availableLanguages := InternalTranslator availableLanguageLocaleIDs
- availableLanguages := NaturalLanguageTranslator availableLanguageLocaleIDs
  asSortedCollection:[:x :y | x displayName < y displayName].
 
  availableLanguages do:
  [:localeID |
  aMenu addUpdating: #stringForLanguageNameIs: target: Locale selector:  #switchAndInstallFontToID: argumentList: {localeID}].
  aMenu popUpInWorld
 
  "Project current chooseNaturalLanguage"!