From 850c5606de144c29353ee1d3878eb81d4fa2ca0a Mon Sep 17 00:00:00 2001 From: OverloadedOrama <35376950+OverloadedOrama@users.noreply.github.com> Date: Thu, 27 Aug 2020 14:30:26 +0300 Subject: [PATCH] Added missing translations And added hint tooltips to "Pixel Perfect" and "Overwrite Color" buttons --- Translations/Translations.pot | 47 +++++++++++++++++++++++++++--- src/Main.tscn | 2 +- src/Preferences/HandleLanguages.gd | 2 +- src/Tools/Base.tscn | 1 + src/Tools/Pencil.tscn | 36 +++++++++++++++++++++-- src/UI/Timeline/FrameTagDialog.gd | 6 ++-- 6 files changed, 82 insertions(+), 12 deletions(-) diff --git a/Translations/Translations.pot b/Translations/Translations.pot index 8a707f513..74e41f5fa 100644 --- a/Translations/Translations.pot +++ b/Translations/Translations.pot @@ -512,12 +512,21 @@ msgstr "" msgid "About Pixelorama" msgstr "" +msgid "Pixelorama - Pixelate your dreams!" +msgstr "" + msgid "Developed by Orama Interactive" msgstr "" +msgid "Copyright 2019-2020 Orama Interactive" +msgstr "" + msgid "Website" msgstr "" +msgid "GitHub Repo" +msgstr "" + msgid "Donate" msgstr "" @@ -825,13 +834,13 @@ msgstr "" msgid "Select a brush" msgstr "" -msgid "Brush: Pixel" +msgid "Pixel brush" msgstr "" -msgid "Brush: Circle" +msgid "Circle brush" msgstr "" -msgid "Brush: Filled Circle" +msgid "Filled circle brush" msgstr "" msgid "Custom brush" @@ -840,12 +849,18 @@ msgstr "" msgid "Brush size:" msgstr "" -msgid "Overwrite" +msgid "Overwrite Color" +msgstr "" + +msgid "Overwrites color instead of blending it. This option is only relevant with colors that are not fully opaque" msgstr "" msgid "Pixel Perfect" msgstr "" +msgid "Makes lines smooth by removing the extra pixels on the edges" +msgstr "" + msgid "Brush color from" msgstr "" @@ -985,9 +1000,30 @@ msgstr "" msgid "Manage frame tags" msgstr "" +msgid "Frame Tag Properties" +msgstr "" + +msgid "Add a new frame tag" +msgstr "" + +msgid "Name:" +msgstr "" + +msgid "From:" +msgstr "" + +msgid "To:" +msgstr "" + msgid "Animation plays only on frames of the same tag" msgstr "" +msgid "Tag %s (Frame %s)" +msgstr "" + +msgid "Tag %s (Frames %s-%s)" +msgstr "" + msgid "If it's selected, the animation plays only on the frames that have the same tag.\n" "If it's not, the animation will play for all frames, ignoring tags." msgstr "" @@ -1188,6 +1224,9 @@ msgstr "" msgid "Create a new empty palette?" msgstr "" +msgid "Error" +msgstr "" + msgid "Error: Palette must have a valid name." msgstr "" diff --git a/src/Main.tscn b/src/Main.tscn index 1e42a40fd..74c37a592 100644 --- a/src/Main.tscn +++ b/src/Main.tscn @@ -98,7 +98,7 @@ __meta__ = { [node name="ErrorDialog" type="AcceptDialog" parent="Dialogs"] margin_right = 151.0 margin_bottom = 60.0 -window_title = "Error!" +window_title = "Error" dialog_text = "This is an error message!" [node name="BackupConfirmation" type="ConfirmationDialog" parent="Dialogs"] diff --git a/src/Preferences/HandleLanguages.gd b/src/Preferences/HandleLanguages.gd index 72b63fa0b..26f596830 100644 --- a/src/Preferences/HandleLanguages.gd +++ b/src/Preferences/HandleLanguages.gd @@ -19,7 +19,7 @@ const languages_dict := { "zh_TW" : ["繁體中文", "Chinese Traditional"], "no_NO" : ["Norsk", "Norwegian"], "hu_HU" : ["Magyar", "Hungarian"], - "ro_RO" : ["Romanian", "Romanian"], + "ro_RO" : ["Română", "Romanian"], "ko_KR" : ["한국어", "Korean"], } diff --git a/src/Tools/Base.tscn b/src/Tools/Base.tscn index f1bf507d8..74bc53d67 100644 --- a/src/Tools/Base.tscn +++ b/src/Tools/Base.tscn @@ -31,6 +31,7 @@ margin_right = 112.0 margin_bottom = 42.0 grow_horizontal = 2 grow_vertical = 2 +hint_tooltip = "Makes lines smooth by removing the extra pixels on the edges" mouse_default_cursor_shape = 2 size_flags_horizontal = 4 text = "Pixel Perfect" diff --git a/src/Tools/Pencil.tscn b/src/Tools/Pencil.tscn index 24045c273..a779ed113 100644 --- a/src/Tools/Pencil.tscn +++ b/src/Tools/Pencil.tscn @@ -6,30 +6,60 @@ [node name="ToolOptions" instance=ExtResource( 1 )] script = ExtResource( 3 ) +[node name="Label" parent="." index="0"] +margin_right = 128.0 + +[node name="Brush" parent="." index="1"] +margin_right = 128.0 + +[node name="Type" parent="Brush" index="0"] +margin_left = 7.0 +margin_right = 43.0 + +[node name="Size" parent="Brush" index="1"] +margin_left = 47.0 +margin_right = 121.0 + +[node name="BrushSize" parent="." index="2"] +margin_left = 18.0 +margin_right = 110.0 + [node name="Overwrite" type="CheckBox" parent="." index="3"] -margin_left = 12.0 margin_top = 74.0 -margin_right = 103.0 +margin_right = 128.0 margin_bottom = 98.0 grow_horizontal = 2 grow_vertical = 2 +hint_tooltip = "Overwrites color instead of blending it. This option is only relevant with colors that are not fully opaque" mouse_default_cursor_shape = 2 size_flags_horizontal = 4 -text = "Overwrite" +text = "Overwrite Color" align = 1 __meta__ = { "_editor_description_": "" } [node name="PixelPerfect" parent="." index="4"] +margin_left = 10.0 margin_top = 102.0 +margin_right = 118.0 margin_bottom = 126.0 [node name="EmptySpacer" parent="." index="6"] margin_top = 130.0 +margin_right = 128.0 margin_bottom = 142.0 [node name="Mirror" parent="." index="7"] margin_top = 146.0 +margin_right = 128.0 margin_bottom = 163.0 + +[node name="Horizontal" parent="Mirror" index="0"] +margin_left = 26.0 +margin_right = 41.0 + +[node name="Vertical" parent="Mirror" index="1"] +margin_left = 85.0 +margin_right = 102.0 [connection signal="toggled" from="Overwrite" to="." method="_on_Overwrite_toggled"] diff --git a/src/UI/Timeline/FrameTagDialog.gd b/src/UI/Timeline/FrameTagDialog.gd index f6fdd7b3a..8a2cee6b8 100644 --- a/src/UI/Timeline/FrameTagDialog.gd +++ b/src/UI/Timeline/FrameTagDialog.gd @@ -26,9 +26,9 @@ func _on_FrameTagDialog_about_to_show() -> void: var hbox_cont := HBoxContainer.new() var tag_label := Label.new() if tag.from == tag.to: - tag_label.text = "Tag %s (Frame %s)" % [i + 1, tag.from] + tag_label.text = tr("Tag %s (Frame %s)") % [i + 1, tag.from] else: - tag_label.text = "Tag %s (Frames %s-%s)" % [i + 1, tag.from, tag.to] + tag_label.text = tr("Tag %s (Frames %s-%s)") % [i + 1, tag.from, tag.to] hbox_cont.add_child(tag_label) var edit_button := Button.new() @@ -75,7 +75,7 @@ func _on_EditButton_pressed(_tag_id : int) -> void: options_dialog.get_node("GridContainer/FromSpinBox").value = Global.current_project.animation_tags[_tag_id].from options_dialog.get_node("GridContainer/ToSpinBox").value = Global.current_project.animation_tags[_tag_id].to if !delete_tag_button: - delete_tag_button = options_dialog.add_button("Delete Tag", true, "delete_tag") + delete_tag_button = options_dialog.add_button("Delete", true, "delete_tag") else: delete_tag_button.visible = true