11 * @deprecated prefer _("translated")
13 string language_filename(string s)
15 string fn = prvm_language;
16 if (fn == "" || fn == "dump") return s;
17 fn = strcat(s, ".", fn);
18 int fh = fopen(fn, FILE_READ);
33 STATIC_INIT(CTX_cache)
46 string c = HM_gets(CTX_cache, s);
47 if (c != "") return c;
49 int p = strstrofs(s, "^", 0);
50 string ret = (p < 0) ? s : substring(s, p + 1, -1);
52 LOG_DEBUGF("CTX(\"%s\")", s);
53 HM_sets(CTX_cache, s, ret);
58 #define ZCTX(s) strzone(CTX(s))