mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +02:00
reuse strings
This commit is contained in:
parent
e9b2159c0a
commit
1274790023
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user