@ -492,7 +492,7 @@ const Jupiter::ReferenceString RenX::translateName(const Jupiter::ReadableString
if ( obj . isEmpty ( ) )
if ( obj . isEmpty ( ) )
return Jupiter : : ReferenceString : : empty ;
return Jupiter : : ReferenceString : : empty ;
Jupiter : : ReferenceString iniTranslation = RenX : : getCore ( ) - > getTranslationsFile ( ) . get ( STRING_LITERAL_AS_REFERENCE ( " Name " ) , obj ) ;
Jupiter : : ReferenceString iniTranslation = RenX : : getCore ( ) - > getConfig ( ) . get ( STRING_LITERAL_AS_REFERENCE ( " Name " ) , obj ) ;
if ( iniTranslation . isNotEmpty ( ) )
if ( iniTranslation . isNotEmpty ( ) )
return iniTranslation ;
return iniTranslation ;
@ -837,31 +837,31 @@ const Jupiter::ReadableString &RenX::translateWinTypePlain(RenX::WinType winType
void RenX : : initTranslations ( Jupiter : : INIFile & translationsFile )
void RenX : : initTranslations ( Jupiter : : INIFile & translationsFile )
{
{
NodColor = translationsFile . get ( STRING_LITERAL_AS_REFERENCE ( " TeamColor " ) , STRING_LITERAL_AS_REFERENCE ( " Nod " ) , STRING_LITERAL_AS_REFERENCE ( " 04 " ) ) ;
NodColor = translationsFile . get ( " TeamColor " _jrs , " Nod " _jrs , " 04 " _jrs ) ;
GDIColor = translationsFile . get ( STRING_LITERAL_AS_REFERENCE ( " TeamColor " ) , STRING_LITERAL_AS_REFERENCE ( " GDI " ) , STRING_LITERAL_AS_REFERENCE ( " 08 " ) ) ;
GDIColor = translationsFile . get ( " TeamColor " _jrs , " GDI " _jrs , " 08 " _jrs ) ;
OtherColor = translationsFile . get ( STRING_LITERAL_AS_REFERENCE ( " TeamColor " ) , STRING_LITERAL_AS_REFERENCE ( " Other " ) , STRING_LITERAL_AS_REFERENCE ( " 14 " ) ) ;
OtherColor = translationsFile . get ( " TeamColor " _jrs , " Other " _jrs , " 14 " _jrs ) ;
NodShortName = translationsFile . get ( STRING_LITERAL_AS_REFERENCE ( " ShortTeamName " ) , STRING_LITERAL_AS_REFERENCE ( " Nod " ) , STRING_LITERAL_AS_REFERENCE ( " Nod " ) ) ;
NodShortName = translationsFile . get ( " ShortTeamName " _jrs , " Nod " _jrs , " Nod " _jrs ) ;
GDIShortName = translationsFile . get ( STRING_LITERAL_AS_REFERENCE ( " ShortTeamName " ) , STRING_LITERAL_AS_REFERENCE ( " GDI " ) , STRING_LITERAL_AS_REFERENCE ( " GDI " ) ) ;
GDIShortName = translationsFile . get ( " ShortTeamName " _jrs , " GDI " _jrs , " GDI " _jrs ) ;
OtherShortName = translationsFile . get ( STRING_LITERAL_AS_REFERENCE ( " ShortTeamName " ) , STRING_LITERAL_AS_REFERENCE ( " Other " ) , STRING_LITERAL_AS_REFERENCE ( " N/A " ) ) ;
OtherShortName = translationsFile . get ( " ShortTeamName " _jrs , " Other " _jrs , " N/A " _jrs ) ;
NodLongName = translationsFile . get ( STRING_LITERAL_AS_REFERENCE ( " LongTeamName " ) , STRING_LITERAL_AS_REFERENCE ( " Nod " ) , STRING_LITERAL_AS_REFERENCE ( " Brotherhood of Nod " ) ) ;
NodLongName = translationsFile . get ( " LongTeamName " _jrs , " Nod " _jrs , " Brotherhood of Nod " _jrs ) ;
GDILongName = translationsFile . get ( STRING_LITERAL_AS_REFERENCE ( " LongTeamName " ) , STRING_LITERAL_AS_REFERENCE ( " GDI " ) , STRING_LITERAL_AS_REFERENCE ( " Global Defense Initiative " ) ) ;
GDILongName = translationsFile . get ( " LongTeamName " _jrs , " GDI " _jrs , " Global Defense Initiative " _jrs ) ;
OtherLongName = translationsFile . get ( STRING_LITERAL_AS_REFERENCE ( " LongTeamName " ) , STRING_LITERAL_AS_REFERENCE ( " Other " ) , STRING_LITERAL_AS_REFERENCE ( " Unknown " ) ) ;
OtherLongName = translationsFile . get ( " LongTeamName " _jrs , " Other " _jrs , " Unknown " _jrs ) ;
scoreWinTypeTranslation = translationsFile . get ( STRING_LITERAL_AS_REFERENCE ( " WinType " ) , STRING_LITERAL_AS_REFERENCE ( " Score " ) , STRING_LITERAL_AS_REFERENCE ( " Domination (High Score) " ) ) ;
scoreWinTypeTranslation = translationsFile . get ( " WinType " _jrs , " Score " _jrs , " Domination (High Score) " _jrs ) ;
baseWinTypeTranslation = translationsFile . get ( STRING_LITERAL_AS_REFERENCE ( " WinType " ) , STRING_LITERAL_AS_REFERENCE ( " Base " ) , STRING_LITERAL_AS_REFERENCE ( " Conquest (Base Destruction) " ) ) ;
baseWinTypeTranslation = translationsFile . get ( " WinType " _jrs , " Base " _jrs , " Conquest (Base Destruction) " _jrs ) ;
beaconWinTypeTranslation = translationsFile . get ( STRING_LITERAL_AS_REFERENCE ( " WinType " ) , STRING_LITERAL_AS_REFERENCE ( " Beacon " ) , STRING_LITERAL_AS_REFERENCE ( " Espionage (Beacon) " ) ) ;
beaconWinTypeTranslation = translationsFile . get ( " WinType " _jrs , " Beacon " _jrs , " Espionage (Beacon) " _jrs ) ;
tieWinTypeTranslation = translationsFile . get ( STRING_LITERAL_AS_REFERENCE ( " WinType " ) , STRING_LITERAL_AS_REFERENCE ( " Tie " ) , STRING_LITERAL_AS_REFERENCE ( " Draw (Tie) " ) ) ;
tieWinTypeTranslation = translationsFile . get ( " WinType " _jrs , " Tie " _jrs , " Draw (Tie) " _jrs ) ;
shutdownWinTypeTranslation = translationsFile . get ( STRING_LITERAL_AS_REFERENCE ( " WinType " ) , STRING_LITERAL_AS_REFERENCE ( " Shutdown " ) , STRING_LITERAL_AS_REFERENCE ( " Ceasefire (Shutdown) " ) ) ;
shutdownWinTypeTranslation = translationsFile . get ( " WinType " _jrs , " Shutdown " _jrs , " Ceasefire (Shutdown) " _jrs ) ;
surrenderWinTypeTranslation = translationsFile . get ( STRING_LITERAL_AS_REFERENCE ( " WinType " ) , STRING_LITERAL_AS_REFERENCE ( " Surrender " ) , STRING_LITERAL_AS_REFERENCE ( " Forfeit (Surrender) " ) ) ;
surrenderWinTypeTranslation = translationsFile . get ( " WinType " _jrs , " Surrender " _jrs , " Forfeit (Surrender) " _jrs ) ;
unknownWinTypeTranslation = translationsFile . get ( STRING_LITERAL_AS_REFERENCE ( " WinType " ) , STRING_LITERAL_AS_REFERENCE ( " Unknown " ) , STRING_LITERAL_AS_REFERENCE ( " Aliens (Unknown) " ) ) ;
unknownWinTypeTranslation = translationsFile . get ( " WinType " _jrs , " Unknown " _jrs , " Aliens (Unknown) " _jrs ) ;
scoreWinTypePlainTranslation = translationsFile . get ( STRING_LITERAL_AS_REFERENCE ( " WinTypePlain " ) , STRING_LITERAL_AS_REFERENCE ( " Score " ) , STRING_LITERAL_AS_REFERENCE ( " High Score " ) ) ;
scoreWinTypePlainTranslation = translationsFile . get ( " WinTypePlain " _jrs , " Score " _jrs , " High Score " _jrs ) ;
baseWinTypePlainTranslation = translationsFile . get ( STRING_LITERAL_AS_REFERENCE ( " WinTypePlain " ) , STRING_LITERAL_AS_REFERENCE ( " Base " ) , STRING_LITERAL_AS_REFERENCE ( " Base Destruction " ) ) ;
baseWinTypePlainTranslation = translationsFile . get ( " WinTypePlain " _jrs , " Base " _jrs , " Base Destruction " _jrs ) ;
beaconWinTypePlainTranslation = translationsFile . get ( STRING_LITERAL_AS_REFERENCE ( " WinTypePlain " ) , STRING_LITERAL_AS_REFERENCE ( " Beacon " ) , STRING_LITERAL_AS_REFERENCE ( " Beacon " ) ) ;
beaconWinTypePlainTranslation = translationsFile . get ( " WinTypePlain " _jrs , " Beacon " _jrs , " Beacon " _jrs ) ;
tieWinTypePlainTranslation = translationsFile . get ( STRING_LITERAL_AS_REFERENCE ( " WinTypePlain " ) , STRING_LITERAL_AS_REFERENCE ( " Tie " ) , STRING_LITERAL_AS_REFERENCE ( " Tie " ) ) ;
tieWinTypePlainTranslation = translationsFile . get ( " WinTypePlain " _jrs , " Tie " _jrs , " Tie " _jrs ) ;
shutdownWinTypePlainTranslation = translationsFile . get ( STRING_LITERAL_AS_REFERENCE ( " WinTypePlain " ) , STRING_LITERAL_AS_REFERENCE ( " Shutdown " ) , STRING_LITERAL_AS_REFERENCE ( " Shutdown " ) ) ;
shutdownWinTypePlainTranslation = translationsFile . get ( " WinTypePlain " _jrs , " Shutdown " _jrs , " Shutdown " _jrs ) ;
unknownWinTypePlainTranslation = translationsFile . get ( STRING_LITERAL_AS_REFERENCE ( " WinTypePlain " ) , STRING_LITERAL_AS_REFERENCE ( " Unknown " ) , STRING_LITERAL_AS_REFERENCE ( " Unknown " ) ) ;
unknownWinTypePlainTranslation = translationsFile . get ( " WinTypePlain " _jrs , " Unknown " _jrs , " Unknown " _jrs ) ;
}
}
Jupiter : : String RenX : : getFormattedPlayerName ( const RenX : : PlayerInfo * player )
Jupiter : : String RenX : : getFormattedPlayerName ( const RenX : : PlayerInfo * player )