10 string language_filename(string s)
12 string fn = prvm_language;
13 if (fn == "" || fn == "dump") return s;
14 fn = strcat(s, ".", fn);
15 int fh = fopen(fn, FILE_READ);
30 STATIC_INIT(CTX_cache)
32 AL_NEW(CTX_cache, 0, string_null, s);
44 string c = AL_gets(CTX_cache, i);
47 int p = strstrofs(s, "^", 0);
48 string ret = (p < 0) ? s : substring(s, p + 1, -1);
50 LOG_DEBUGF("CTX(\"%s\")\n", s);
51 AL_sets(CTX_cache, i, ret);
56 #define ZCTX(s) strzone(CTX(s))