11 * @deprecated prefer _("translated")
14 string language_filename(string s)
16 string fn = prvm_language;
17 if (fn == "" || fn == "dump") return s;
18 fn = strcat(s, ".", fn);
19 int fh = fopen(fn, FILE_READ);
34 STATIC_INIT(CTX_cache)
48 string c = HM_gets(CTX_cache, s);
49 if (c != "") return c;
51 int p = strstrofs(s, "^", 0);
52 string ret = (p < 0) ? s : substring(s, p + 1, -1);
54 LOG_DEBUGF("CTX(\"%s\")", s);
55 HM_sets(CTX_cache, s, ret);
60 #define ZCTX(s) strzone(CTX(s))