[etoys-dev] Etoys: Etoys-kfr.24.mcz
commits at source.squeak.org
commits at source.squeak.org
Wed Jun 16 18:39:38 EDT 2010
Karl Ramberg uploaded a new version of Etoys to project Etoys:
http://source.squeak.org/etoys/Etoys-kfr.24.mcz
==================== Summary ====================
Name: Etoys-kfr.24
Author: kfr
Time: 17 June 2010, 12:39:07 am
UUID: cfe33825-e7a6-094d-b768-4b220e96af8c
Ancestors: Etoys-kfr.23
SQ-485
Function tile not translated
trnFuncHelp-KR is the proposed patch for translating balloon help
=============== Diff against Etoys-kfr.23 ===============
Item was changed:
----- Method: FunctionNameTile>>showOptions (in category 'choice of function') -----
showOptions
"Put up a pop-up menu of options for the operator tile within me."
| aMenu aTable |
aMenu := MenuMorph new defaultTarget: self.
aTable := ScriptingSystem tableOfNumericFunctions.
aTable do:
[:triplet |
aMenu add: triplet first translated target: self selector: #setOperator: argument: triplet second.
triplet second = operatorOrExpression ifTrue:
[aMenu lastItem color: Color red].
+ aMenu balloonTextForLastItem: triplet third translated].
- aMenu balloonTextForLastItem: triplet third].
aMenu addTranslatedList:
#(-
('parentheses' grouped 'enclose within parentheses')) translatedNoop.
operatorOrExpression = #grouped ifTrue:
[aMenu lastItem color: Color red].
(owner owner isKindOf: TilePadMorph) ifTrue:
[aMenu addLine.
operatorOrExpression = #grouped
ifFalse:
[aMenu addTranslatedList:
#(('remove function' removeFunction 'strip away the function call, leaving just its former argument in its place')) translatedNoop.]
ifTrue:
[aMenu addTranslatedList:
#(('remove parentheses' removeFunction 'strip away the parenthesises')) translatedNoop]].
aMenu position: self position.
aMenu invokeModal
!
More information about the etoys-dev
mailing list