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)
35 AL_NEW(CTX_cache, 0, string_null, s);
47 string c = AL_gets(CTX_cache, i);
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 AL_sets(CTX_cache, i, ret);
59 #define ZCTX(s) strzone(CTX(s))