diff --git a/data/locale/en-US.ini b/data/locale/en-US.ini index 24f6bd09..5280bfe2 100644 --- a/data/locale/en-US.ini +++ b/data/locale/en-US.ini @@ -48,11 +48,7 @@ UI.About.Title="About StreamFX" UI.About.Text="

StreamFX is made possible by all the supporters on Patreon, on Github Sponsors, and anyone donating through PayPal. Additional thanks go out to all the translators helping out with the localization on Crowdin. You all are amazing!

" UI.About.Role.Contributor="Contributor" UI.About.Role.Translator="Translator" -UI.About.Role.Family="%s's Family" -UI.About.Role.Friend="%s's Friend" -UI.About.Role.Supporter.Github="Github Sponsor" -UI.About.Role.Supporter.Patreon="Patreon Supporter" -UI.About.Role.Supporter.Twitch="Twitch Subscriber" +UI.About.Role.Supporter="Supporter" UI.About.Role.Creator="Content Creator" UI.About.Version="Version:" diff --git a/source/ui/ui-about-entry.cpp b/source/ui/ui-about-entry.cpp index d8887b68..d34b9e77 100644 --- a/source/ui/ui-about-entry.cpp +++ b/source/ui/ui-about-entry.cpp @@ -19,14 +19,12 @@ #include "ui-about-entry.hpp" -constexpr std::string_view i18n_role_contributor = "UI.About.Role.Contributor"; -constexpr std::string_view i18n_role_translator = "UI.About.Role.Translator"; -constexpr std::string_view i18n_role_family = "UI.About.Role.Family"; -constexpr std::string_view i18n_role_friend = "UI.About.Role.Friend"; -constexpr std::string_view i18n_role_supporter_patreon = "UI.About.Role.Supporter.Patreon"; -constexpr std::string_view i18n_role_supporter_github = "UI.About.Role.Supporter.Github"; -constexpr std::string_view i18n_role_supporter_twitch = "UI.About.Role.Supporter.Twitch"; -constexpr std::string_view i18n_role_creator = "UI.About.Role.Creator"; +constexpr std::string_view i18n_role_contributor = "UI.About.Role.Contributor"; +constexpr std::string_view i18n_role_translator = "UI.About.Role.Translator"; +constexpr std::string_view i18n_role_family = "UI.About.Role.Family"; +constexpr std::string_view i18n_role_friend = "UI.About.Role.Friend"; +constexpr std::string_view i18n_role_supporter = "UI.About.Role.Supporter"; +constexpr std::string_view i18n_role_creator = "UI.About.Role.Creator"; streamfx::ui::about_entry::about_entry(QWidget* parent, streamfx::ui::about::entry& entry) : QWidget(parent), _link() { @@ -43,28 +41,8 @@ streamfx::ui::about_entry::about_entry(QWidget* parent, streamfx::ui::about::ent case streamfx::ui::about::role_type::TRANSLATOR: title->setText(D_TRANSLATE(i18n_role_translator.data())); break; - case streamfx::ui::about::role_type::FAMILY: { - const char* txt = D_TRANSLATE(i18n_role_family.data()); - std::vector buf(2048); - snprintf(buf.data(), buf.size(), txt, entry.role_custom.c_str()); - title->setText(QString::fromUtf8(buf.data())); - break; - } - case streamfx::ui::about::role_type::FRIEND: { - const char* txt = D_TRANSLATE(i18n_role_friend.data()); - std::vector buf(2048); - snprintf(buf.data(), buf.size(), txt, entry.role_custom.c_str()); - title->setText(QString::fromUtf8(buf.data())); - break; - } - case streamfx::ui::about::role_type::PATREON_SUPPORTER: - title->setText(D_TRANSLATE(i18n_role_supporter_patreon.data())); - break; - case streamfx::ui::about::role_type::GITHUB_SUPPORTER: - title->setText(D_TRANSLATE(i18n_role_supporter_github.data())); - break; - case streamfx::ui::about::role_type::TWITCH_SUPPORTER: - title->setText(D_TRANSLATE(i18n_role_supporter_twitch.data())); + case streamfx::ui::about::role_type::SUPPORTER: + title->setText(D_TRANSLATE(i18n_role_supporter.data())); break; case streamfx::ui::about::role_type::CREATOR: title->setText(D_TRANSLATE(i18n_role_creator.data())); diff --git a/source/ui/ui-about.cpp b/source/ui/ui-about.cpp index 8987c2fc..d714d0a3 100644 --- a/source/ui/ui-about.cpp +++ b/source/ui/ui-about.cpp @@ -76,11 +76,13 @@ static const std::list _entries = { streamfx::ui::about::entry{"", streamfx::ui::about::role_type::THANKYOU, "", ""}, // Translators + // - TODO // Separator streamfx::ui::about::entry{"", streamfx::ui::about::role_type::THANKYOU, "", ""}, // Supporters + // - TODO // Separator streamfx::ui::about::entry{"", streamfx::ui::about::role_type::THANKYOU, "", ""}, diff --git a/source/ui/ui-about.hpp b/source/ui/ui-about.hpp index e7976d1c..f4fa53c3 100644 --- a/source/ui/ui-about.hpp +++ b/source/ui/ui-about.hpp @@ -41,11 +41,7 @@ namespace streamfx::ui { THANKYOU, CONTRIBUTOR, TRANSLATOR, - FAMILY, - FRIEND, - PATREON_SUPPORTER, - GITHUB_SUPPORTER, - TWITCH_SUPPORTER, + SUPPORTER, CREATOR, };