Merge pull request #152 from Scrumplex/update-translations-url

Update link to translations platform (Weblate)
This commit is contained in:
LennyMcLennington 2022-02-10 23:38:47 +00:00 committed by GitHub
commit 5d4a66ed8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 1 deletions

View File

@ -74,6 +74,9 @@ set(Launcher_MSA_CLIENT_ID "17b47edd-c884-4997-926d-9e7f9a6b4647" CACHE STRING "
# Bug tracker URL
set(Launcher_BUG_TRACKER_URL "https://github.com/PolyMC/PolyMC/issues" CACHE STRING "URL for the bug tracker.")
# Translations Platform URL
set(Launcher_TRANSLATIONS_URL "https://hosted.weblate.org/projects/polymc/polymc/" CACHE STRING "URL for the translations platform.")
# Discord URL
set(Launcher_DISCORD_URL "https://discord.gg/Z52pwxWCHP" CACHE STRING "URL for the Discord guild.")

View File

@ -47,6 +47,7 @@ Config::Config()
META_URL = "@Launcher_META_URL@";
BUG_TRACKER_URL = "@Launcher_BUG_TRACKER_URL@";
TRANSLATIONS_URL = "@Launcher_TRANSLATIONS_URL@";
DISCORD_URL = "@Launcher_DISCORD_URL@";
SUBREDDIT_URL = "@Launcher_SUBREDDIT_URL@";
}

View File

@ -83,6 +83,7 @@ public:
QString META_URL;
QString BUG_TRACKER_URL;
QString TRANSLATIONS_URL;
QString DISCORD_URL;
QString SUBREDDIT_URL;

View File

@ -5,6 +5,7 @@
#include <QHeaderView>
#include <QLabel>
#include "Application.h"
#include "BuildConfig.h"
#include "translations/TranslationsModel.h"
#include "settings/Setting.h"
@ -52,7 +53,7 @@ QString LanguageSelectionWidget::getSelectedLanguageKey() const
void LanguageSelectionWidget::retranslate()
{
QString text = tr("Don't see your language or the quality is poor?<br/><a href=\"%1\">Help us with translations!</a>")
.arg("https://github.com/MultiMC/Launcher/wiki/Translating-MultiMC");
.arg(BuildConfig.TRANSLATIONS_URL);
helpUsLabel->setText(text);
}