X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Flib%2Fi18n.qh;h=841486f5837a9150cf730d77ef23a7d9c8443ca5;hb=5453f53da1df88742c11c71e4dc5b9c3e3d24c62;hp=8ebedb76f65f66110d3fd26ffaa46277e1b24021;hpb=9185b58da6fe5f2b095d7066577e1e024b4d2798;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/lib/i18n.qh b/qcsrc/lib/i18n.qh index 8ebedb76f6..841486f583 100644 --- a/qcsrc/lib/i18n.qh +++ b/qcsrc/lib/i18n.qh @@ -10,6 +10,7 @@ string prvm_language; /** * @deprecated prefer _("translated") */ +ERASEABLE string language_filename(string s) { string fn = prvm_language; @@ -40,17 +41,18 @@ string language_filename(string s) } #endif +ERASEABLE string CTX(string s) { #if CTX_CACHE - string c = HM_gets(CTX_cache, s); - if (c != "") return c; + string c = HM_gets(CTX_cache, s); + if (c != "") return c; #endif int p = strstrofs(s, "^", 0); string ret = (p < 0) ? s : substring(s, p + 1, -1); #if CTX_CACHE - LOG_DEBUGF("CTX(\"%s\")", s); - HM_sets(CTX_cache, s, ret); + LOG_DEBUGF("CTX(\"%s\")", s); + HM_sets(CTX_cache, s, ret); #endif return ret; }