Skip to content

Commit

Permalink
mouse string is translatable, see #323
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed Jan 10, 2023
1 parent c0aee59 commit 61f8079
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions js/QuadrilateralStrings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ type StringsType = {
'moveASideOrCornerStringProperty': LinkableProperty<string>;
'moveASideOrCornerInSmallerSteps': string;
'moveASideOrCornerInSmallerStepsStringProperty': LinkableProperty<string>;
'mouse': string;
'mouseStringProperty': LinkableProperty<string>;
'shapeShortcuts': string;
'shapeShortcutsStringProperty': LinkableProperty<string>;
'resetShape': string;
Expand Down
2 changes: 1 addition & 1 deletion js/quadrilateral/view/MoveShapeHelpSection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class MoveShapeHelpSection extends KeyboardHelpSection {
[
KeyboardHelpIconFactory.shiftPlusIcon( KeyboardHelpIconFactory.arrowKeysRowIcon() ),
KeyboardHelpIconFactory.shiftPlusIcon( KeyboardHelpIconFactory.wasdRowIcon() ),
KeyboardHelpIconFactory.shiftPlusIcon( new Text( 'Mouse', {
KeyboardHelpIconFactory.shiftPlusIcon( new Text( QuadrilateralStrings.keyboardHelpDialog.mouse, {
font: KeyboardHelpSectionRow.LABEL_FONT
} ) )
], {
Expand Down
3 changes: 3 additions & 0 deletions quadrilateral-strings_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@
"keyboardHelpDialog.moveASideOrCornerInSmallerSteps": {
"value": "To move in smaller steps add Shift key"
},
"keyboardHelpDialog.mouse": {
"value": "Mouse"
},
"keyboardHelpDialog.shapeShortcuts": {
"value": "Shape Shortcuts"
},
Expand Down

0 comments on commit 61f8079

Please sign in to comment.