MCPcopy Create free account
hub / github.com/ddnet/ddnet / Localize

Function Localize

src/game/localization.cpp:15–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13#include <engine/storage.h>
14
15const char *Localize(const char *pStr, const char *pContext)
16{
17 const char *pNewStr = g_Localization.FindString(str_quickhash(pStr), str_quickhash(pContext));
18 return pNewStr ? pNewStr : pStr;
19}
20
21void CLocalizationDatabase::LoadIndexfile(IStorage *pStorage, IConsole *pConsole)
22{

Callers 15

OnInitMethod · 0.85
OnConnectedMethod · 0.85
OnRenderMethod · 0.85
RenderShutdownMessageMethod · 0.85
RefreshSkinsMethod · 0.85
OnSaveCodeNetMessageMethod · 0.85
DoEditBox_SearchMethod · 0.85
YesNoButtonsMethod · 0.85
RenderStartMenuMethod · 0.85
FormatServerbrowserPingFunction · 0.85

Calls 2

str_quickhashFunction · 0.85
FindStringMethod · 0.80

Tested by 1

OnRenderMethod · 0.68