1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

reuse strings

This commit is contained in:
Laserlicht 2024-05-15 12:40:01 +02:00 committed by GitHub
parent e9b2159c0a
commit 1274790023
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 11 deletions

View File

@ -64,10 +64,6 @@
"vcmi.mainMenu.hostTCP" : "Host TCP/IP game",
"vcmi.mainMenu.joinTCP" : "Join TCP/IP game",
"vcmi.multiplayerWelcomeMessage.additionalSettings" : "Additional settings",
"vcmi.multiplayerWelcomeMessage.cheatsAllowed" : "Cheats allowed",
"vcmi.multiplayerWelcomeMessage.unlimitedReplays" : "Unlimited battle replays",
"vcmi.lobby.filepath" : "File path",
"vcmi.lobby.creationDate" : "Creation date",
"vcmi.lobby.scenarioName" : "Scenario name",

View File

@ -64,10 +64,6 @@
"vcmi.mainMenu.hostTCP" : "Hoste TCP/IP Spiel",
"vcmi.mainMenu.joinTCP" : "Trete TCP/IP Spiel bei",
"vcmi.multiplayerWelcomeMessage.additionalSettings" : "Zusätzliche Einstellungen",
"vcmi.multiplayerWelcomeMessage.cheatsAllowed" : "Cheats erlaubt",
"vcmi.multiplayerWelcomeMessage.unlimitedReplays" : "Unbegrenzte Kampfwiederholungen",
"vcmi.lobby.filepath" : "Dateipfad",
"vcmi.lobby.creationDate" : "Erstellungsdatum",
"vcmi.lobby.scenarioName" : "Szenario-Name",

View File

@ -994,15 +994,15 @@ void CVCMIServer::multiplayerWelcomeMessage()
std::vector<std::string> optionIds;
if(si->extraOptionsInfo.cheatsAllowed)
optionIds.push_back("vcmi.multiplayerWelcomeMessage.cheatsAllowed");
optionIds.push_back("vcmi.optionsTab.cheatAllowed.hover");
if(si->extraOptionsInfo.unlimitedReplay)
optionIds.push_back("vcmi.multiplayerWelcomeMessage.unlimitedReplays");
optionIds.push_back("vcmi.optionsTab.unlimitedReplay.hover");
if(!optionIds.size()) // No settings to publish
return;
MetaString str;
str.appendTextID("vcmi.multiplayerWelcomeMessage.additionalSettings");
str.appendTextID("vcmi.optionsTab.extraOptions.hover");
str.appendRawString(": ");
for(int i = 0; i < optionIds.size(); i++)
{