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 Oct 14, 2022
1 parent 16bc948 commit da8b10a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/frontend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ bool bLimiterLoaded = false;
static std::shared_ptr<IMAGEFILE> pFlagsImages;

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

// ////////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -214,7 +216,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));

notifyAboutMissingVideos();
}
Expand All @@ -231,9 +233,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), 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), 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 @@ -378,7 +380,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), 0);
notifyAboutMissingVideos();
}
}
Expand All @@ -400,7 +402,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), 0);
notifyAboutMissingVideos();
}
}
Expand Down

0 comments on commit da8b10a

Please sign in to comment.