12 * @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)
47 string c = HM_gets(CTX_cache, s);
48 if (c != "") return c;
50 int p = strstrofs(s, "^", 0);
51 string ret = (p < 0) ? s : substring(s, p + 1, -1);
53 LOG_DEBUGF("CTX(\"%s\")\n", s);
54 HM_sets(CTX_cache, s, ret);
59 #define ZCTX(s) strzone(CTX(s))