From d0a50c45e3af69b3415d8c7cc788458106340f92 Mon Sep 17 00:00:00 2001 From: OverloadedOrama <35376950+OverloadedOrama@users.noreply.github.com> Date: Wed, 22 Jan 2020 19:31:33 +0200 Subject: [PATCH] Translators can now be seen in the About window. --- Changelog.md | 5 +++++ Prefabs/Dialogs/AboutDialog.tscn | 20 ++++++++++++++++++ Scripts/Dialogs/AboutDialog.gd | 36 ++++++++++++++++++++++++-------- 3 files changed, 52 insertions(+), 9 deletions(-) diff --git a/Changelog.md b/Changelog.md index 44cfcc0da..6c8db125b 100644 --- a/Changelog.md +++ b/Changelog.md @@ -5,6 +5,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [v0.6.2] - Unreleased +## Added +- Crowdin integration for contributing translations! +- Spanish translation - thanks to azagaya! +- Translators can now be seen in the About window. + ### Fixed - Delay the splash screen popup so it shows properly centered (thanks to YeldhamDev) - Possibly fixed crashes with motion drawing and undo/redoing. diff --git a/Prefabs/Dialogs/AboutDialog.tscn b/Prefabs/Dialogs/AboutDialog.tscn index 079fd8a5c..9f0014231 100644 --- a/Prefabs/Dialogs/AboutDialog.tscn +++ b/Prefabs/Dialogs/AboutDialog.tscn @@ -160,6 +160,26 @@ size_flags_vertical = 3 custom_constants/item_margin = -2 hide_root = true +[node name="Translators" type="VBoxContainer" parent="AboutUI/Credits"] +visible = false +margin_left = 254.0 +margin_right = 496.0 +margin_bottom = 126.0 +size_flags_horizontal = 3 + +[node name="Label" type="Label" parent="AboutUI/Credits/Translators"] +margin_right = 242.0 +margin_bottom = 14.0 +text = "Translators" + +[node name="TranslatorTree" type="Tree" parent="AboutUI/Credits/Translators"] +margin_top = 18.0 +margin_right = 242.0 +margin_bottom = 126.0 +size_flags_vertical = 3 +custom_constants/item_margin = -2 +hide_root = true + [node name="HSeparator2" type="HSeparator" parent="AboutUI"] margin_top = 237.0 margin_right = 488.0 diff --git a/Scripts/Dialogs/AboutDialog.gd b/Scripts/Dialogs/AboutDialog.gd index 7e915c0e5..c828930a4 100644 --- a/Scripts/Dialogs/AboutDialog.gd +++ b/Scripts/Dialogs/AboutDialog.gd @@ -5,27 +5,26 @@ onready var groups : Tree = $AboutUI/Credits/Groups onready var developer_container = $AboutUI/Credits/Developers onready var contributors_container = $AboutUI/Credits/Contributors onready var donors_container = $AboutUI/Credits/Donors +onready var translators_container = $AboutUI/Credits/Translators onready var developers : Tree = $AboutUI/Credits/Developers/DeveloperTree onready var contributors : Tree = $AboutUI/Credits/Contributors/ContributorTree onready var donors : Tree = $AboutUI/Credits/Donors/DonorTree +onready var translators : Tree = $AboutUI/Credits/Translators/TranslatorTree func _ready() -> void: var contributor_root := contributors.create_item() - contributors.create_item(contributor_root).set_text(0, " Hugo Locurcio") - contributors.create_item(contributor_root).set_text(0, " CheetoHead") + contributors.create_item(contributor_root).set_text(0, " Hugo Locurcio (Calinou)") + contributors.create_item(contributor_root).set_text(0, " CheetoHead (greusser)") + contributors.create_item(contributor_root).set_text(0, " Michael Alexsander (YeldhamDev)") contributors.create_item(contributor_root).set_text(0, " Schweini07") - contributors.create_item(contributor_root).set_text(0, " Dawid Niedźwiedzki") - contributors.create_item(contributor_root).set_text(0, " Michael Alexsander") contributors.create_item(contributor_root).set_text(0, " Martin Zabinski") contributors.create_item(contributor_root).set_text(0, " azagaya") contributors.create_item(contributor_root).set_text(0, " Andreev Andrei") - contributors.create_item(contributor_root).set_text(0, " Gaarco") - contributors.create_item(contributor_root).set_text(0, " JunYouIntrovert") - contributors.create_item(contributor_root).set_text(0, " Subhang Nanduri") + contributors.create_item(contributor_root).set_text(0, " Marco Galli (Gaarco)") + contributors.create_item(contributor_root).set_text(0, " Subhang Nanduri (SbNanduri)") contributors.create_item(contributor_root).set_text(0, " danielnaoexiste") - contributors.create_item(contributor_root).set_text(0, " huskee") - contributors.create_item(contributor_root).set_text(0, " haonkrub") + contributors.create_item(contributor_root).set_text(0, " Noah Burck (haonkrub)") var donors_root := donors.create_item() donors.create_item(donors_root).set_text(0, " pcmxms") @@ -39,6 +38,8 @@ func _on_AboutDialog_about_to_show() -> void: var developers_button := groups.create_item(groups_root) var contributors_button := groups.create_item(groups_root) var donors_button := groups.create_item(groups_root) + var translators_button := groups.create_item(groups_root) + developers_button.set_text(0, " " + tr("Developers")) # We use metadata to avoid being affected by translations developers_button.set_metadata(0, "Developers") @@ -47,11 +48,26 @@ func _on_AboutDialog_about_to_show() -> void: contributors_button.set_metadata(0, "Contributors") donors_button.set_text(0, " " + tr("Donors")) donors_button.set_metadata(0, "Donors") + translators_button.set_text(0, " " + tr("Translators")) + translators_button.set_metadata(0, "Translators") var dev_root := developers.create_item() developers.create_item(dev_root).set_text(0, " Manolis Papadeas (Overloaded) - " + tr("Lead Programmer")) developers.create_item(dev_root).set_text(0, " John Nikitakis (Erevos) - " + tr("UI Designer")) + var translators_root := translators.create_item() + translators.create_item(translators_root).set_text(0, " Manolis Papadeas (Overloaded) - " + tr("Greek")) + translators.create_item(translators_root).set_text(0, " Xenofon Konitsas (huskee) - " + tr("Greek")) + translators.create_item(translators_root).set_text(0, " Hugo Locurcio (Calinou) - " + tr("French")) + translators.create_item(translators_root).set_text(0, " Schweini07 - " + tr("German")) + translators.create_item(translators_root).set_text(0, " Martin Zabinski (Martin1991zab) - " + tr("German")) + translators.create_item(translators_root).set_text(0, " Dawid Niedźwiedzki (tiritto) - " + tr("Polish")) + translators.create_item(translators_root).set_text(0, " Michael Alexsander (YeldhamDev) - " + tr("Brazilian Portuguese")) + translators.create_item(translators_root).set_text(0, " Andreev Andrei - " + tr("Russian")) + translators.create_item(translators_root).set_text(0, " JunYouIntrovert - " + tr("Chinese Traditional")) + translators.create_item(translators_root).set_text(0, " Marco Galli (Gaarco) - " + tr("Italian")) + translators.create_item(translators_root).set_text(0, " azagaya - " + tr("Spanish")) + func _on_AboutDialog_popup_hide() -> void: groups.clear() developers.clear() @@ -68,6 +84,8 @@ func _on_Groups_item_selected() -> void: contributors_container.visible = true elif "Donors" in selected: donors_container.visible = true + elif "Translators" in selected: + translators_container.visible = true func _on_Website_pressed() -> void: