MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / Localize

Function Localize

engine/Poseidon/UI/Locale/Stringtable/Stringtable.cpp:607–625  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

605inline StringTable& GetStringTable()
606{
607 static StringTable instance;
608 return instance;
609}
610
611#pragma clang diagnostic pop
612
613// API compatibility macro (GLanguage comes from Stringtable.hpp)
614#define GStringTable GetStringTable()
615
616void LoadStringtable(RString type, RString filename, float priority, bool init)
617{
618 GStringTable.Load(type, filename, priority, init);
619 ++GLanguageGeneration;
620}
621
622int RegisterString(RString name)
623{
624 return GStringTable.Register(name);
625}
626
627RString LocalizeString(int ids)
628{

Callers 15

OnActivateMethod · 0.85
ApplyEffectsFunction · 0.85
InitMissionMethod · 0.85
DisplayMissionMethod · 0.85
DrawMarkersMethod · 0.85
DrawLabelMethod · 0.85
LoadDirectoryMethod · 0.85
OnChildDestroyedMethod · 0.85
DrawMarkersMethod · 0.85
DrawExtMethod · 0.85
SetRadioTextMethod · 0.85

Calls 1

LocalizeStringFunction · 0.85

Tested by

no test coverage detected