1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

add translation for webfront

discord link has been genericized to social link
This commit is contained in:
RaidMax
2018-05-05 17:52:04 -05:00
parent 140788847d
commit f4e8a960be
22 changed files with 259 additions and 84 deletions

View File

@ -15,6 +15,7 @@ namespace SharedLibraryCore.Configuration
public bool EnableCustomSayName { get; set; }
public string CustomSayName { get; set; }
public string DiscordInviteCode { get; set; }
public string SocialLinkTitle { get; set; }
public string IPHubAPIKey { get; set; }
public string WebfrontBindUrl { get; set; }
public string CustomParserEncoding { get; set; }
@ -51,10 +52,13 @@ namespace SharedLibraryCore.Configuration
if (!EnableClientVPNs)
IPHubAPIKey = Utilities.PromptString(loc["SETUP_IPHUB_KEY"]);
EnableDiscordLink = Utilities.PromptBool(loc["SETUP_DISPLAY_DISCORD"]);
EnableDiscordLink = Utilities.PromptBool(loc["SETUP_DISPLAY_SOCIAL"]);
if (EnableDiscordLink)
DiscordInviteCode = Utilities.PromptString(loc["SETUP_DISCORD_INVITE"]);
{
SocialLinkTitle = Utilities.PromptString(loc["SETUP_SOCIAL_TITLE"]);
DiscordInviteCode = Utilities.PromptString(loc["SETUP_SOCIAL_LINK"]);
}
return this;
}