GetLocalizedText(const char *)
- Defined in
- CvGameCoreUtils.h, line 459
- Not a hook point
- written in a header
Code
458//The following templates are used to aide migration from the old text system to the new one.459inline CvString GetLocalizedText(const char* szString)460{461 Localization::String text = Localization::Lookup(szString);462463 size_t bytes = 0;464 const char* szComposedString = text.toUTF8(bytes);465 CvString str;466 str.assign(szComposedString, bytes);467 return str;468}
Calls
CvString::CvStringCvString::CvStringLocalization::LookupLocalization::String::toUTF8std::basic_string::assign
Called by
75 functions in 19 files
- CvBeliefHelpers::ConvertBarbarianUnit(const CvUnit *, UnitHandle)
- CvCity::getName() const
- CultureHelpers::SendArtSwapNotification(GreatWorkSlotType, bool, PlayerTypes, PlayerTypes, int, int)
- CvCityCulture::GetThemingTooltip(BuildingClassTypes) const
- CvPlayerCulture::DoTurn()
- CvGameDeals::DoEndTradedItem(CvTradedItem *, PlayerTypes, bool)
- CvDiplomacyAI::DoCounters()
- CvDiplomacyAI::DoTestPromises()
- CvDllNetMessageHandler::ResponseEnhanceReligion(PlayerTypes, ReligionTypes, const char *, BeliefTypes, BeliefTypes, int, int)
- CvDllNetMessageHandler::ResponseFoundReligion(PlayerTypes, ReligionTypes, const char *, BeliefTypes, BeliefTypes, BeliefTypes, BeliefTypes, int, int)
- CvEspionageAI::DoTurn()
- CvEspionageAI::EvaluateDefensiveSpies()
- CvEspionageAI::EvaluateDiplomatSpies()
- CvEspionageAI::EvaluateSpiesAssignedToTargetPlayer(PlayerTypes)
- CvEspionageAI::EvaluateUnassignedSpies()
- CvPlayerEspionage::AttemptCoup(uint)
- CvPlayerEspionage::CreateSpy()
- CvPlayerEspionage::MoveSpyTo(CvCity *, uint, bool)
- CvPlayerEspionage::ProcessSpy(uint)
- CvPlayerEspionage::ProcessSpyMessages()
- CvBaseInfo::CacheResults(Database::Results &, CvDatabaseUtility &)
- CvCivilizationBaseInfo::setShortDescriptionKey(const char *)
- CvCivilizationInfo::setAdjectiveKey(const char *)
- CvHotKeyInfo::CreateHotKeyFromDescription(const char *, bool, bool, bool)
- CvHotKeyInfo::CreateKeyStringFromKBCode(const char *)
- CvVoteSourceInfo::CacheResults(Database::Results &, CvDatabaseUtility &)
- CvMinorCivInfo::setAdjectiveKey(const char *)
- CvMinorCivInfo::setShortDescriptionKey(const char *)
- CvPlayer::ChangeNumFaithGreatPeople(int)
- CvPlayer::ChangeNumFreeGreatPeople(int)
- CvPlayer::ChangeNumFreePolicies(int)
- CvPlayer::ChangeNumFreeTenets(int, bool)
- CvPlayer::ChangeNumMayaBoosts(int)
- CvPlayer::GetBorrowedCityName(CivilizationTypes) const
- CvPlayer::GetStateReligionName() const
- CvPlayer::acquireCity(CvCity *, bool, bool, bool)
- CvPlayer::chooseTech(int, const char *, TechTypes)
- CvPlayer::doTurnPostDiplomacy()
- CvPlayer::getCivilizationCityName(CvString &, CivilizationTypes) const
- CvPlayer::processPolicies(PolicyTypes, int)
- CvPlayer::setStrike(bool)
- CvPlayer::setTurnActive(bool, bool)
- CvPlot::changeBuildProgress(BuildTypes, int, PlayerTypes)
- CvPlot::setRevealed(TeamTypes, bool, CvUnit *, bool, TeamTypes)
- CvPlot::setRevealedImprovementType(TeamTypes, ImprovementTypes)
- CvPlayerPolicies::SetPolicyBranchUnlocked(PolicyBranchTypes, bool, bool)
- CvPolicyEntry::CacheResults(Database::Results &, CvDatabaseUtility &)
- CvPreGame::bandwidthDescription()
- CvPreGame::civilizationAdjective(PlayerTypes)
- CvPreGame::civilizationDescription(PlayerTypes)
- CvPreGame::civilizationShortDescription(PlayerTypes)
- CvPreGame::leaderName(PlayerTypes)
- CvGameReligions::DoPlayerTurn(CvPlayer &)
- CvGameReligions::FoundPantheon(PlayerTypes, BeliefTypes)
- CvGameReligions::NotifyPlayer(PlayerTypes, CvGameReligions::FOUNDING_RESULT)
- CvReligionAI::LogBeliefChoices(CvWeightedVector<BeliefTypes, 100, true> &, int)
- CvTeam::DoTestSmallAwards()
- CvTeam::setHasTech(TechTypes, bool, PlayerTypes, bool, bool)
- CvTeam::testCircumnavigated()
- CvTechEntry::SetQuoteKey(const char *)
- CvPlayerTraits::ConvertBarbarianCamp(CvUnit *, CvPlot *)
- CvPlayerTraits::ConvertBarbarianNavalUnit(CvUnit *, UnitHandle)
- CvUnit::DoAttrition()
- CvUnit::DoEnhanceReligion()
- CvUnit::DoFoundReligion()
- CvUnit::UnitPathTo(int, int, int, int, bool)
- CvUnit::blastTourism()
- CvUnit::buyCityState()
- CvUnit::discover()
- CvUnit::getName() const
- CvUnit::setPromotionReady(bool)
- CvGameLeagues::DoPlayerTurn(CvPlayer &)
- CvGameLeagues::FoundLeague(PlayerTypes)
- CvLeague::CheckStartSpecialSession(LeagueSpecialSessionTypes)
- CvLeague::NotifySessionSoon(int)