Browse Source

Added plain translation for Surrender WinType; updated config

pull/3/head
Jessica James 9 years ago
parent
commit
786d711654
  1. 2
      Configs/RenX.Core.ini
  2. 4
      RenX.Core/RenX_Functions.cpp

2
Configs/RenX.Core.ini

@ -306,6 +306,7 @@ IRCPrefix=07[Marathon]
; Beacon=String (Default: Espionage (Beacon)) ; Beacon=String (Default: Espionage (Beacon))
; Tie=String (Default: Draw (Tie)) ; Tie=String (Default: Draw (Tie))
; Shutdown=String (Default: Ceasefire (Shutdown)) ; Shutdown=String (Default: Ceasefire (Shutdown))
; Surrender=String (Default: Forfeit (Surrender))
; Unknown=String (Default: Aliens (Unknown)) ; Unknown=String (Default: Aliens (Unknown))
; ;
@ -320,6 +321,7 @@ IRCPrefix=07[Marathon]
; Beacon=String (Default: Beacon) ; Beacon=String (Default: Beacon)
; Tie=String (Default: Tie) ; Tie=String (Default: Tie)
; Shutdown=String (Default: Shutdown) ; Shutdown=String (Default: Shutdown)
; Surrender=String (Default: Surrender)
; Unknown=String (Default: Unknown) ; Unknown=String (Default: Unknown)
; ;

4
RenX.Core/RenX_Functions.cpp

@ -65,6 +65,7 @@ Jupiter::ReferenceString baseWinTypePlainTranslation = "Base Destruction";
Jupiter::ReferenceString beaconWinTypePlainTranslation = "Beacon"; Jupiter::ReferenceString beaconWinTypePlainTranslation = "Beacon";
Jupiter::ReferenceString tieWinTypePlainTranslation = "Tie"; Jupiter::ReferenceString tieWinTypePlainTranslation = "Tie";
Jupiter::ReferenceString shutdownWinTypePlainTranslation = "Shutdown"; Jupiter::ReferenceString shutdownWinTypePlainTranslation = "Shutdown";
Jupiter::ReferenceString surrenderWinTypePlainTranslation = "Surrender";
Jupiter::ReferenceString unknownWinTypePlainTranslation = "Unknown"; Jupiter::ReferenceString unknownWinTypePlainTranslation = "Unknown";
/** Vote translations */ /** Vote translations */
@ -829,6 +830,8 @@ const Jupiter::ReadableString &RenX::translateWinTypePlain(RenX::WinType winType
return tieWinTypePlainTranslation; return tieWinTypePlainTranslation;
case RenX::WinType::Shutdown: case RenX::WinType::Shutdown:
return shutdownWinTypePlainTranslation; return shutdownWinTypePlainTranslation;
case RenX::WinType::Surrender:
return surrenderWinTypePlainTranslation;
case RenX::WinType::Unknown: case RenX::WinType::Unknown:
default: default:
return unknownWinTypePlainTranslation; return unknownWinTypePlainTranslation;
@ -861,6 +864,7 @@ void RenX::initTranslations(Jupiter::INIFile &translationsFile)
beaconWinTypePlainTranslation = translationsFile.get("WinTypePlain"_jrs, "Beacon"_jrs, "Beacon"_jrs); beaconWinTypePlainTranslation = translationsFile.get("WinTypePlain"_jrs, "Beacon"_jrs, "Beacon"_jrs);
tieWinTypePlainTranslation = translationsFile.get("WinTypePlain"_jrs, "Tie"_jrs, "Tie"_jrs); tieWinTypePlainTranslation = translationsFile.get("WinTypePlain"_jrs, "Tie"_jrs, "Tie"_jrs);
shutdownWinTypePlainTranslation = translationsFile.get("WinTypePlain"_jrs, "Shutdown"_jrs, "Shutdown"_jrs); shutdownWinTypePlainTranslation = translationsFile.get("WinTypePlain"_jrs, "Shutdown"_jrs, "Shutdown"_jrs);
surrenderWinTypePlainTranslation = translationsFile.get("WinTypePlain"_jrs, "Surrender"_jrs, "Surrender"_jrs);
unknownWinTypePlainTranslation = translationsFile.get("WinTypePlain"_jrs, "Unknown"_jrs, "Unknown"_jrs); unknownWinTypePlainTranslation = translationsFile.get("WinTypePlain"_jrs, "Unknown"_jrs, "Unknown"_jrs);
} }

Loading…
Cancel
Save