Skip to content

Commit

Permalink
change http to https in l10n files with placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
ximex committed Sep 16, 2023
1 parent 6610f4a commit 708607b
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/frontend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ bool bLimiterLoaded = false;
static std::shared_ptr<IMAGEFILE> pFlagsImages;

#define TUTORIAL_LEVEL "TUTORIAL3"
#define TRANSLATION_URL "https://translate.wz2100.net"
#define HOMEPAGE_URL "https://wz2100.net/"
#define DONATIONS_URL "https://donations.wz2100.net/"
#define TRANSLATION_URL "https://translate.wz2100.net/"

// ////////////////////////////////////////////////////////////////////////////
// Forward definitions
Expand Down Expand Up @@ -162,12 +164,12 @@ static void runUpgrdHyperlink()

static void runHyperlink()
{
openURLInBrowser("https://wz2100.net/");
openURLInBrowser(HOMEPAGE_URL);
}

static void rundonatelink()
{
openURLInBrowser("https://donations.wz2100.net/");
openURLInBrowser(DONATIONS_URL);
}

static void runchatlink()
Expand Down Expand Up @@ -216,7 +218,7 @@ void startTitleMenu()
else
{
addTextButton(FRONTEND_PLAYINTRO, FRONTEND_POS6X, FRONTEND_POS6Y, _("View Intro"), WBUT_TXTCENTRE | WBUT_DISABLE);
widgSetTip(psWScreen, FRONTEND_PLAYINTRO, _("Videos are missing, download them from http://wz2100.net"));
widgSetTip(psWScreen, FRONTEND_PLAYINTRO, astringf(_("Videos are missing, download them from %s"), HOMEPAGE_URL).c_str());

notifyAboutMissingVideos();
}
Expand All @@ -233,9 +235,9 @@ void startTitleMenu()
addTextButton(FRONTEND_QUIT, FRONTEND_POS8X, FRONTEND_POS8Y, _("Quit Game"), WBUT_TXTCENTRE);
addSideText(FRONTEND_SIDETEXT, FRONTEND_SIDEX, FRONTEND_SIDEY, _("MAIN MENU"));

addSmallTextButton(FRONTEND_HYPERLINK, FRONTEND_POS9X, FRONTEND_POS9Y, _("Official site: http://wz2100.net/"), 0);
addSmallTextButton(FRONTEND_HYPERLINK, FRONTEND_POS9X, FRONTEND_POS9Y, astringf(_("Official site: %s"), HOMEPAGE_URL).c_str(), 0);
widgSetTip(psWScreen, FRONTEND_HYPERLINK, _("Come visit the forums and all Warzone 2100 news! Click this link."));
W_BUTTON * pRightAlignedButton = addSmallTextButton(FRONTEND_DONATELINK, FRONTEND_POS9X + 360, FRONTEND_POS9Y, _("Donate: http://donations.wz2100.net/"), 0);
W_BUTTON * pRightAlignedButton = addSmallTextButton(FRONTEND_DONATELINK, FRONTEND_POS9X + 360, FRONTEND_POS9Y, astringf(_("Donate: %s"), DONATIONS_URL).c_str(), 0);
moveToParentRightEdge(pRightAlignedButton, 1);
widgSetTip(psWScreen, FRONTEND_DONATELINK, _("Help support the project with our server costs, Click this link."));
pRightAlignedButton = addSmallTextButton(FRONTEND_CHATLINK, FRONTEND_POS9X + 360, 0, _("Chat with players on Discord or IRC"), 0);
Expand Down Expand Up @@ -380,7 +382,7 @@ void startSinglePlayerMenu()
// show this only when the video sequences are not installed
if (!seq_hasVideos())
{
addSmallTextButton(FRONTEND_HYPERLINK, FRONTEND_POS9X, FRONTEND_POS9Y, _("Campaign videos are missing! Get them from http://wz2100.net"), 0);
addSmallTextButton(FRONTEND_HYPERLINK, FRONTEND_POS9X, FRONTEND_POS9Y, astringf(_("Campaign videos are missing! Get them from %s"), HOMEPAGE_URL).c_str(), 0);
notifyAboutMissingVideos();
}
}
Expand All @@ -402,7 +404,7 @@ void startCampaignSelector()
// show this only when the video sequences are not installed
if (!seq_hasVideos())
{
addSmallTextButton(FRONTEND_HYPERLINK, FRONTEND_POS9X, FRONTEND_POS9Y, _("Campaign videos are missing! Get them from http://wz2100.net"), 0);
addSmallTextButton(FRONTEND_HYPERLINK, FRONTEND_POS9X, FRONTEND_POS9Y, astringf(_("Campaign videos are missing! Get them from %s"), HOMEPAGE_URL).c_str(), 0);
notifyAboutMissingVideos();
}
}
Expand Down

0 comments on commit 708607b

Please sign in to comment.