mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-12-28 18:41:14 +00:00
ui/about: Remove outdated entry roles
This commit is contained in:
parent
f040588570
commit
d1747ff403
4 changed files with 12 additions and 40 deletions
|
@ -48,11 +48,7 @@ UI.About.Title="About StreamFX"
|
|||
UI.About.Text="<html><head/><body><p>StreamFX is made possible by all the supporters on <a href='https://patreon.com/Xaymar'><span style='text-decoration: underline;'>Patreon</span></a>, on <a href='https://github.com/sponsors/xaymar'><span style='text-decoration: underline;'>Github Sponsors</span></a>, and anyone donating through <a href='https://paypal.me/Xaymar'><span style='text-decoration: underline;'>PayPal</span></a>. Additional thanks go out to all the translators helping out with the localization on <a href='https://crowdin.com/project/obs-stream-effects'><span style='text-decoration: underline;'>Crowdin</span></a>. You all are amazing!</p></body></html>"
|
||||
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:"
|
||||
|
||||
|
|
|
@ -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<char> 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<char> 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()));
|
||||
|
|
|
@ -76,11 +76,13 @@ static const std::list<streamfx::ui::about::entry> _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, "", ""},
|
||||
|
|
|
@ -41,11 +41,7 @@ namespace streamfx::ui {
|
|||
THANKYOU,
|
||||
CONTRIBUTOR,
|
||||
TRANSLATOR,
|
||||
FAMILY,
|
||||
FRIEND,
|
||||
PATREON_SUPPORTER,
|
||||
GITHUB_SUPPORTER,
|
||||
TWITCH_SUPPORTER,
|
||||
SUPPORTER,
|
||||
CREATOR,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue