From 7b7da476b6ec40dd0afdd4161eedb3453bb538b4 Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Tue, 7 May 2024 01:09:26 +0300 Subject: [PATCH] Various small translation-related fixes --- Translations/Translations.pot | 8 ++++++++ src/UI/ReferenceImages/ReferencesPanel.tscn | 4 ++-- src/UI/Timeline/AnimationTagUI.tscn | 1 + src/UI/Timeline/LayerButton.gd | 4 ++-- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/Translations/Translations.pot b/Translations/Translations.pot index 719dd244a..48bee5957 100644 --- a/Translations/Translations.pot +++ b/Translations/Translations.pot @@ -758,6 +758,10 @@ msgstr "" msgid "Display scale:" msgstr "" +#. Found in the preferences, under the interface section. Allows users to set the size of the font, ie the text. +msgid "Font size:" +msgstr "" + msgid "Dim interface on dialog popup" msgstr "" @@ -1918,6 +1922,10 @@ msgstr "" msgid "Layers" msgstr "" +#. Found in the layer menu which appears when right clicking on a layer button in the timeline. When enabled, the layer becomes a clipping mask. +msgid "Clipping mask" +msgstr "" + #. Hint tooltip of the create new layer button, found on the left side of the timeline. msgid "Create a new layer" msgstr "" diff --git a/src/UI/ReferenceImages/ReferencesPanel.tscn b/src/UI/ReferenceImages/ReferencesPanel.tscn index df18be00e..3bf5a7949 100644 --- a/src/UI/ReferenceImages/ReferencesPanel.tscn +++ b/src/UI/ReferenceImages/ReferencesPanel.tscn @@ -43,7 +43,7 @@ theme_override_constants/separation = 0 [node name="Label" type="Label" parent="ScrollContainer/Container/Header"] layout_mode = 2 theme_type_variation = &"HeaderSmall" -text = "My Reference Images" +text = "Reference Images" [node name="Tip" type="Label" parent="ScrollContainer/Container"] custom_minimum_size = Vector2(10, 0) @@ -163,7 +163,7 @@ texture = ExtResource("4_8mlcg") custom_minimum_size = Vector2(31, 31) layout_mode = 2 size_flags_horizontal = 0 -tooltip_text = "Rotate the selected image" +tooltip_text = "Rotate the selected reference image" focus_mode = 0 mouse_default_cursor_shape = 2 toggle_mode = true diff --git a/src/UI/Timeline/AnimationTagUI.tscn b/src/UI/Timeline/AnimationTagUI.tscn index e6d477036..b3d7951ad 100644 --- a/src/UI/Timeline/AnimationTagUI.tscn +++ b/src/UI/Timeline/AnimationTagUI.tscn @@ -19,6 +19,7 @@ end_cap_mode = 2 layout_mode = 2 size_flags_horizontal = 4 size_flags_vertical = 3 +auto_translate = false mouse_default_cursor_shape = 2 text = "Idle" flat = true diff --git a/src/UI/Timeline/LayerButton.gd b/src/UI/Timeline/LayerButton.gd index 0ccdaf7d7..87e262c0f 100644 --- a/src/UI/Timeline/LayerButton.gd +++ b/src/UI/Timeline/LayerButton.gd @@ -213,9 +213,9 @@ func _on_popup_menu_id_pressed(id: int) -> void: if id == 0: properties.layer_indices = _get_layer_indices() properties.popup_centered() - if id == 1: + elif id == 1: layer.clipping_mask = not layer.clipping_mask - popup_menu.set_item_checked(0, layer.clipping_mask) + popup_menu.set_item_checked(id, layer.clipping_mask) clipping_mask_icon.visible = layer.clipping_mask Global.canvas.draw_layers()