Made rich presence text not change with language (#5613)

* update for no reason

* bruuhhhhhhhhh

* bruuhhhhhhhhh

* rebase... this probably wont work

* bruuhhhhhhhhh

* fix comments..?

* bruuhhhhhhhhh

* equalize with upstream/master

* made the game not change the text shown in rich presence with the current language, added a language override functionality to String.tr() which is probably inefficient as hell, also the reason why i had to keep the .tr in leader name is because it showed the parantheses

* i have no idea why github or git keeps bugging me on this but this line randomly appears then disappears

* i have no idea why github or git keeps bugging me on this but this line randomly appears then disappears

* revert changes to .tr(), use what @yairm210 suggested
This commit is contained in:
logic
2021-11-02 18:24:37 +03:00
committed by GitHub
parent 15a2a51a99
commit f53435e612
3 changed files with 4 additions and 2 deletions

View File

@ -259,6 +259,7 @@ class WorldScreenTopBar(val worldScreen: WorldScreen) : Table() {
val nation = worldScreen.gameInfo.ruleSet.nations[worldScreen.selectedCiv.civName]!!
val selectedCivIcon = ImageGetter.getNationIndicator(nation, 35f)
selectedCivIconHolder.actor = selectedCivIcon
selectedCivIconHolder.onClick { worldScreen.game.setScreen(EmpireOverviewScreen(worldScreen.selectedCiv)) }
}
private fun getCultureText(civInfo: CivilizationInfo, nextTurnStats: Stats): String {