diff --git a/newIDE/app/src/EventsSheet/EventsTree/Renderers/ForEachEvent.js b/newIDE/app/src/EventsSheet/EventsTree/Renderers/ForEachEvent.js index 892901e7fcce..46c9c9ca2575 100644 --- a/newIDE/app/src/EventsSheet/EventsTree/Renderers/ForEachEvent.js +++ b/newIDE/app/src/EventsSheet/EventsTree/Renderers/ForEachEvent.js @@ -14,6 +14,7 @@ import ObjectField from '../../ParameterFields/ObjectField'; import { type EventRendererProps } from './EventRenderer'; import ConditionsActionsColumns from '../ConditionsActionsColumns'; import { shouldActivate } from '../../../UI/KeyboardShortcuts/InteractionKeys.js'; +import { Trans } from '@lingui/macro'; const gd: libGDevelop = global.gd; const styles = { @@ -103,10 +104,12 @@ export default class ForEachEvent extends React.Component< tabIndex={0} > {objectName ? ( - `Repeat for each instance of ${objectName}:` + Repeat for each instance of {objectName}: ) : ( - Click to choose for which objects this event will be repeated + + Click to choose for which objects this event will be repeated + )} diff --git a/newIDE/app/src/EventsSheet/EventsTree/Renderers/GroupEvent.js b/newIDE/app/src/EventsSheet/EventsTree/Renderers/GroupEvent.js index fe23d70f20fd..856020190faa 100644 --- a/newIDE/app/src/EventsSheet/EventsTree/Renderers/GroupEvent.js +++ b/newIDE/app/src/EventsSheet/EventsTree/Renderers/GroupEvent.js @@ -16,6 +16,7 @@ import { shouldCloseOrCancel, shouldValidate, } from '../../../UI/KeyboardShortcuts/InteractionKeys'; +import { Trans } from '@lingui/macro'; const gd: libGDevelop = global.gd; const styles = { @@ -121,7 +122,11 @@ export default class GroupEvent extends React.Component { })} style={{ ...styles.title, color: textColor }} > - {groupEvent.getName() || ''} + {groupEvent.getName() ? ( + groupEvent.getName() + ) : ( + {``} + )} )} diff --git a/newIDE/app/src/EventsSheet/EventsTree/Renderers/JsCodeEvent.js b/newIDE/app/src/EventsSheet/EventsTree/Renderers/JsCodeEvent.js index 36085409aca4..63824f374997 100644 --- a/newIDE/app/src/EventsSheet/EventsTree/Renderers/JsCodeEvent.js +++ b/newIDE/app/src/EventsSheet/EventsTree/Renderers/JsCodeEvent.js @@ -17,6 +17,7 @@ import { type EventRendererProps } from './EventRenderer'; import Measure from 'react-measure'; import { CodeEditor } from '../../../CodeEditor'; import { shouldActivate } from '../../../UI/KeyboardShortcuts/InteractionKeys'; +import { Trans } from '@lingui/macro'; const gd: libGDevelop = global.gd; const fontFamily = '"Lucida Console", Monaco, monospace'; @@ -32,7 +33,7 @@ const styles = { }, wrappingText: { fontFamily, - fontSize: '12px', + fontSize: '13px', paddingLeft: 5, paddingRight: 5, paddingTop: 2, @@ -186,9 +187,16 @@ export default class JsCodeEvent extends React.Component< tabIndex={0} style={textStyle} > - {parameterObjects - ? `, objects /*${parameterObjects}*/` - : ' /* Click here to choose objects to pass to JavaScript */'} + {parameterObjects ? ( + , objects /*{parameterObjects}*/ + ) : ( + <> + {' '} + + /* Click here to choose objects to pass to JavaScript */ + + + )} ); diff --git a/newIDE/app/src/EventsSheet/EventsTree/Renderers/LinkEvent.js b/newIDE/app/src/EventsSheet/EventsTree/Renderers/LinkEvent.js index 28753d01fb09..2005bcdd958b 100644 --- a/newIDE/app/src/EventsSheet/EventsTree/Renderers/LinkEvent.js +++ b/newIDE/app/src/EventsSheet/EventsTree/Renderers/LinkEvent.js @@ -135,7 +135,7 @@ export default class LinkEvent extends React.Component { tabIndex={0} > {target || ( - < Enter the name of external events > + {``} )} diff --git a/newIDE/app/src/EventsSheet/EventsTree/Renderers/RepeatEvent.js b/newIDE/app/src/EventsSheet/EventsTree/Renderers/RepeatEvent.js index 8a52926c9f85..fa3a370cf425 100644 --- a/newIDE/app/src/EventsSheet/EventsTree/Renderers/RepeatEvent.js +++ b/newIDE/app/src/EventsSheet/EventsTree/Renderers/RepeatEvent.js @@ -14,6 +14,7 @@ import DefaultField from '../../ParameterFields/DefaultField'; import { type EventRendererProps } from './EventRenderer'; import ConditionsActionsColumns from '../ConditionsActionsColumns'; import { shouldActivate } from '../../../UI/KeyboardShortcuts/InteractionKeys.js'; +import { Trans } from '@lingui/macro'; const gd: libGDevelop = global.gd; const styles = { @@ -104,9 +105,11 @@ export default class RepeatEvent extends React.Component< tabIndex={0} > {expression ? ( - `Repeat ${expression} times:` + Repeat {expression} times: ) : ( - Click to choose how many times will be repeated + + Click to choose how many times will be repeated + )} diff --git a/newIDE/app/src/EventsSheet/EventsTree/Renderers/WhileEvent.js b/newIDE/app/src/EventsSheet/EventsTree/Renderers/WhileEvent.js index 1887b8a1a554..ad3fe801b1ff 100644 --- a/newIDE/app/src/EventsSheet/EventsTree/Renderers/WhileEvent.js +++ b/newIDE/app/src/EventsSheet/EventsTree/Renderers/WhileEvent.js @@ -11,6 +11,7 @@ import { } from '../ClassNames'; import { type EventRendererProps } from './EventRenderer'; import ConditionsActionsColumns from '../ConditionsActionsColumns'; +import { Trans } from '@lingui/macro'; const gd: libGDevelop = global.gd; const styles = { @@ -47,7 +48,7 @@ export default class ForEachEvent extends React.Component< [disabledText]: this.props.disabled, })} > - While these conditions are true: + While these conditions are true: - Repeat these: + Repeat these: