diff --git a/Extensions/3D/JsExtension.js b/Extensions/3D/JsExtension.js index e7ef713d4495..07e69a4b5f00 100644 --- a/Extensions/3D/JsExtension.js +++ b/Extensions/3D/JsExtension.js @@ -908,7 +908,7 @@ module.exports = { .setValue(objectContent.frontFaceResourceName || '') .setType('resource') .addExtraInfo('image') - .setLabel(_('Front face image')) + .setLabel(_('Front face')) .setGroup(_('Textures')); objectProperties @@ -916,7 +916,7 @@ module.exports = { .setValue(objectContent.backFaceResourceName || '') .setType('resource') .addExtraInfo('image') - .setLabel(_('Back face image')) + .setLabel(_('Back face')) .setGroup(_('Textures')); objectProperties @@ -939,7 +939,7 @@ module.exports = { .setValue(objectContent.leftFaceResourceName || '') .setType('resource') .addExtraInfo('image') - .setLabel(_('Left face image')) + .setLabel(_('Left face')) .setGroup(_('Textures')); objectProperties @@ -947,7 +947,7 @@ module.exports = { .setValue(objectContent.rightFaceResourceName || '') .setType('resource') .addExtraInfo('image') - .setLabel(_('Right face image')) + .setLabel(_('Right face')) .setGroup(_('Textures')); objectProperties @@ -955,7 +955,7 @@ module.exports = { .setValue(objectContent.topFaceResourceName || '') .setType('resource') .addExtraInfo('image') - .setLabel(_('Top face image')) + .setLabel(_('Top face')) .setGroup(_('Textures')); objectProperties @@ -963,56 +963,56 @@ module.exports = { .setValue(objectContent.bottomFaceResourceName || '') .setType('resource') .addExtraInfo('image') - .setLabel(_('Bottom face image')) + .setLabel(_('Bottom face')) .setGroup(_('Textures')); objectProperties .getOrCreate('frontFaceResourceRepeat') .setValue(objectContent.frontFaceResourceRepeat ? 'true' : 'false') .setType('boolean') - .setLabel(_('Tile front face image')) + .setLabel(_('Tile')) .setGroup(_('Textures')); objectProperties .getOrCreate('backFaceResourceRepeat') .setValue(objectContent.backFaceResourceRepeat ? 'true' : 'false') .setType('boolean') - .setLabel(_('Tile back face image')) + .setLabel(_('Tile')) .setGroup(_('Textures')); objectProperties .getOrCreate('leftFaceResourceRepeat') .setValue(objectContent.leftFaceResourceRepeat ? 'true' : 'false') .setType('boolean') - .setLabel(_('Tile left face image')) + .setLabel(_('Tile')) .setGroup(_('Textures')); objectProperties .getOrCreate('rightFaceResourceRepeat') .setValue(objectContent.rightFaceResourceRepeat ? 'true' : 'false') .setType('boolean') - .setLabel(_('Tile right face image')) + .setLabel(_('Tile')) .setGroup(_('Textures')); objectProperties .getOrCreate('topFaceResourceRepeat') .setValue(objectContent.topFaceResourceRepeat ? 'true' : 'false') .setType('boolean') - .setLabel(_('Tile top face image')) + .setLabel(_('Tile')) .setGroup(_('Textures')); objectProperties .getOrCreate('bottomFaceResourceRepeat') .setValue(objectContent.bottomFaceResourceRepeat ? 'true' : 'false') .setType('boolean') - .setLabel(_('Tile bottom face image')) + .setLabel(_('Tile')) .setGroup(_('Textures')); objectProperties .getOrCreate('frontFaceVisible') .setValue(objectContent.frontFaceVisible ? 'true' : 'false') .setType('boolean') - .setLabel(_('Show front face')) + .setLabel(_('Front face')) .setGroup(_('Face visibility')) .setAdvanced(true); @@ -1020,7 +1020,7 @@ module.exports = { .getOrCreate('backFaceVisible') .setValue(objectContent.backFaceVisible ? 'true' : 'false') .setType('boolean') - .setLabel(_('Show back face')) + .setLabel(_('Back face')) .setGroup(_('Face visibility')) .setAdvanced(true); @@ -1028,7 +1028,7 @@ module.exports = { .getOrCreate('leftFaceVisible') .setValue(objectContent.leftFaceVisible ? 'true' : 'false') .setType('boolean') - .setLabel(_('Show left face')) + .setLabel(_('Left face')) .setGroup(_('Face visibility')) .setAdvanced(true); @@ -1036,7 +1036,7 @@ module.exports = { .getOrCreate('rightFaceVisible') .setValue(objectContent.rightFaceVisible ? 'true' : 'false') .setType('boolean') - .setLabel(_('Show right face')) + .setLabel(_('Right face')) .setGroup(_('Face visibility')) .setAdvanced(true); @@ -1044,7 +1044,7 @@ module.exports = { .getOrCreate('topFaceVisible') .setValue(objectContent.topFaceVisible ? 'true' : 'false') .setType('boolean') - .setLabel(_('Show top face')) + .setLabel(_('Top face')) .setGroup(_('Face visibility')) .setAdvanced(true); @@ -1052,7 +1052,7 @@ module.exports = { .getOrCreate('bottomFaceVisible') .setValue(objectContent.bottomFaceVisible ? 'true' : 'false') .setType('boolean') - .setLabel(_('Show bottom face')) + .setLabel(_('Bottom face')) .setGroup(_('Face visibility')) .setAdvanced(true); diff --git a/Extensions/AnchorBehavior/AnchorBehavior.cpp b/Extensions/AnchorBehavior/AnchorBehavior.cpp index a2e2f63bd17a..7a26558eee06 100644 --- a/Extensions/AnchorBehavior/AnchorBehavior.cpp +++ b/Extensions/AnchorBehavior/AnchorBehavior.cpp @@ -75,7 +75,7 @@ std::map AnchorBehavior::GetProperties( .AddExtraInfo(_("Window center")) .AddExtraInfo(_("Window right")) .AddExtraInfo(_("Proportional")) - .SetLabel(_("Left edge anchor")) + .SetLabel(_("Left edge")) .SetDescription(_("Anchor the left edge of the object on X axis.")); properties["rightEdgeAnchor"] @@ -87,7 +87,7 @@ std::map AnchorBehavior::GetProperties( .AddExtraInfo(_("Window center")) .AddExtraInfo(_("Window right")) .AddExtraInfo(_("Proportional")) - .SetLabel(_("Right edge anchor")) + .SetLabel(_("Right edge")) .SetDescription(_("Anchor the right edge of the object on X axis.")); properties["topEdgeAnchor"] @@ -99,7 +99,7 @@ std::map AnchorBehavior::GetProperties( .AddExtraInfo(_("Window center")) .AddExtraInfo(_("Window bottom")) .AddExtraInfo(_("Proportional")) - .SetLabel(_("Top edge anchor")) + .SetLabel(_("Top edge")) .SetDescription(_("Anchor the top edge of the object on Y axis.")); properties["bottomEdgeAnchor"] @@ -111,7 +111,7 @@ std::map AnchorBehavior::GetProperties( .AddExtraInfo(_("Window center")) .AddExtraInfo(_("Window bottom")) .AddExtraInfo(_("Proportional")) - .SetLabel(_("Bottom edge anchor")) + .SetLabel(_("Bottom edge")) .SetDescription(_("Anchor the bottom edge of the object on Y axis.")); properties["useLegacyBottomAndRightAnchors"] diff --git a/Extensions/BitmapText/JsExtension.js b/Extensions/BitmapText/JsExtension.js index 94780bd84c49..90c91c8ad496 100644 --- a/Extensions/BitmapText/JsExtension.js +++ b/Extensions/BitmapText/JsExtension.js @@ -64,7 +64,7 @@ module.exports = { .addExtraInfo('left') .addExtraInfo('center') .addExtraInfo('right') - .setLabel(_('Alignment, when multiple lines are displayed')) + .setLabel(_('Alignment')) .setGroup(_('Appearance')); objectProperties @@ -80,7 +80,7 @@ module.exports = { .setValue(objectContent.textureAtlasResourceName) .setType('resource') .addExtraInfo('image') - .setLabel(_('Bitmap atlas image')) + .setLabel(_('Bitmap Atlas')) .setGroup(_('Font')); objectProperties diff --git a/Extensions/DestroyOutsideBehavior/DestroyOutsideBehavior.cpp b/Extensions/DestroyOutsideBehavior/DestroyOutsideBehavior.cpp index c5a17f3d0621..75ad0149a203 100644 --- a/Extensions/DestroyOutsideBehavior/DestroyOutsideBehavior.cpp +++ b/Extensions/DestroyOutsideBehavior/DestroyOutsideBehavior.cpp @@ -26,7 +26,8 @@ DestroyOutsideBehavior::GetProperties( behaviorContent.GetDoubleAttribute("extraBorder", 0))) .SetType("Number") .SetMeasurementUnit(gd::MeasurementUnit::GetPixel()) - .SetLabel(_("Margin before deleting the object, in pixels")); + .SetLabel(_("Deletion margin")) + .SetDescription(_("Margin before deleting the object, in pixels")); return properties; } diff --git a/Extensions/DraggableBehavior/DraggableBehavior.cpp b/Extensions/DraggableBehavior/DraggableBehavior.cpp index 40fb0d191398..b7450bf79bb2 100644 --- a/Extensions/DraggableBehavior/DraggableBehavior.cpp +++ b/Extensions/DraggableBehavior/DraggableBehavior.cpp @@ -26,7 +26,7 @@ std::map DraggableBehavior::GetProperties( ? "true" : "false") .SetType("Boolean") - .SetLabel(_("Do a precision check against the object's collision mask")) + .SetLabel(_("Precise check")) .SetDescription( _("Use the object (custom) collision mask instead of the bounding " "box, making the behavior more precise at the cost of " diff --git a/Extensions/PathfindingBehavior/PathfindingBehavior.cpp b/Extensions/PathfindingBehavior/PathfindingBehavior.cpp index 89ff6e73066c..a152be3a24e3 100644 --- a/Extensions/PathfindingBehavior/PathfindingBehavior.cpp +++ b/Extensions/PathfindingBehavior/PathfindingBehavior.cpp @@ -70,28 +70,28 @@ std::map PathfindingBehavior::GetProperties( .SetValue( gd::String::From(behaviorContent.GetDoubleAttribute("angleOffset"))); properties["CellWidth"] - .SetLabel(_("Virtual cell width")) + .SetLabel(_("Cell width")) .SetGroup(_("Virtual Grid")) .SetType("Number") .SetMeasurementUnit(gd::MeasurementUnit::GetPixel()) .SetValue( gd::String::From(behaviorContent.GetDoubleAttribute("cellWidth", 0))); properties["CellHeight"] - .SetLabel(_("Virtual cell height")) + .SetLabel(_("Cell height")) .SetGroup(_("Virtual Grid")) .SetType("Number") .SetMeasurementUnit(gd::MeasurementUnit::GetPixel()) .SetValue(gd::String::From( behaviorContent.GetDoubleAttribute("cellHeight", 0))); properties["GridOffsetX"] - .SetLabel(_("Virtual grid X offset")) + .SetLabel(_("X offset")) .SetGroup(_("Virtual Grid")) .SetType("Number") .SetMeasurementUnit(gd::MeasurementUnit::GetPixel()) .SetValue(gd::String::From( behaviorContent.GetDoubleAttribute("gridOffsetX", 0))); properties["GridOffsetY"] - .SetLabel(_("Virtual grid Y offset")) + .SetLabel(_("Y offset")) .SetGroup(_("Virtual Grid")) .SetType("Number") .SetMeasurementUnit(gd::MeasurementUnit::GetPixel()) diff --git a/newIDE/app/src/CompactPropertiesEditor/PropertiesMapToCompactSchema.js b/newIDE/app/src/CompactPropertiesEditor/PropertiesMapToCompactSchema.js index a3f72ee80b2a..b4cf20fe532d 100644 --- a/newIDE/app/src/CompactPropertiesEditor/PropertiesMapToCompactSchema.js +++ b/newIDE/app/src/CompactPropertiesEditor/PropertiesMapToCompactSchema.js @@ -332,7 +332,7 @@ const propertiesMapToSchema = ({ object, visibility = 'All', quickCustomizationVisibilities, -}: { +}: {| properties: gdMapStringPropertyDescriptor, getProperties: (instance: Instance) => any, onUpdateProperty: ( @@ -343,7 +343,7 @@ const propertiesMapToSchema = ({ object?: gdObject, visibility?: 'All' | 'Basic' | 'Advanced' | 'Deprecated' | 'Basic-Quick', quickCustomizationVisibilities?: gdQuickCustomizationVisibilitiesContainer, -}): Schema => { +|}): Schema => { const propertyNames = properties.keys(); // Aggregate field by groups to be able to build field groups with a title. const fieldsByGroups = new Map>(); diff --git a/newIDE/app/src/ObjectEditor/CompactObjectPropertiesEditor/ChildObjectPropertiesEditor.js b/newIDE/app/src/ObjectEditor/CompactObjectPropertiesEditor/ChildObjectPropertiesEditor.js index 9ce4a5d98e83..1f9b347a9730 100644 --- a/newIDE/app/src/ObjectEditor/CompactObjectPropertiesEditor/ChildObjectPropertiesEditor.js +++ b/newIDE/app/src/ObjectEditor/CompactObjectPropertiesEditor/ChildObjectPropertiesEditor.js @@ -55,7 +55,7 @@ export const ChildObjectPropertiesEditor = ({ objectConfiguration.getProperties(), onUpdateProperty: ({ object, objectConfiguration }, name, value) => objectConfiguration.updateProperty(name, value), - visilibility: 'Basic', + visibility: 'Basic', }); return schema; @@ -72,7 +72,7 @@ export const ChildObjectPropertiesEditor = ({ objectConfiguration.getProperties(), onUpdateProperty: ({ object, objectConfiguration }, name, value) => objectConfiguration.updateProperty(name, value), - visilibility: 'Advanced', + visibility: 'Advanced', }); return schema; diff --git a/newIDE/app/src/ObjectEditor/CompactObjectPropertiesEditor/CompactBehaviorPropertiesEditor.js b/newIDE/app/src/ObjectEditor/CompactObjectPropertiesEditor/CompactBehaviorPropertiesEditor.js index 24a0e8886f4e..7e4124ffcca4 100644 --- a/newIDE/app/src/ObjectEditor/CompactObjectPropertiesEditor/CompactBehaviorPropertiesEditor.js +++ b/newIDE/app/src/ObjectEditor/CompactObjectPropertiesEditor/CompactBehaviorPropertiesEditor.js @@ -117,7 +117,7 @@ export const CompactBehaviorPropertiesEditor = ({ behavior.updateProperty(name, value); }, object, - visilibility: 'Advanced', + visibility: 'Advanced', }); }, [behavior, object, schemaRecomputeTrigger]