X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Futil.qh;h=a15855753217765d2396f6ab38f89e127a5060dc;hb=3f0620ef10b0c142cfb2f64d87af78c1243766c6;hp=79b93d3ede3d238d5e6d8ad4eaf4f787aa331ea0;hpb=c4052acb21de917a6010586315bf102e262eb986;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/util.qh b/qcsrc/common/util.qh index 79b93d3ed..a15855753 100644 --- a/qcsrc/common/util.qh +++ b/qcsrc/common/util.qh @@ -142,7 +142,7 @@ string getWrappedLine_remaining; string getWrappedLine(float w, vector size, textLengthUpToWidth_widthFunction_t tw); string getWrappedLineLen(float w, textLengthUpToLength_lenFunction_t tw); -float isGametypeInFilter(float gt, float tp, string pattern); +float isGametypeInFilter(float gt, float tp, float ts, string pattern); typedef void(float i1, float i2, entity pass) swapfunc_t; // is only ever called for i1 < i2 typedef float(float i1, float i2, entity pass) comparefunc_t; // <0 for <, ==0 for ==, >0 for > (like strcmp) @@ -249,3 +249,9 @@ vector NearestPointOnBox(entity box, vector org); float vercmp(string v1, string v2); float u8_strsize(string s); + +// translation helpers +string prvm_language; +string language_filename(string s); +string CTX(string s); +#define ZCTX(s) strzone(CTX(s))