]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/lib/i18n.qh
put sv_damagetext to defaultServer so that resetting server reenables damagetext too
[xonotic/xonotic-data.pk3dir.git] / qcsrc / lib / i18n.qh
index e439b22aa56799006c3eea004fa17fd987e699ae..3dfac622464a1144ed74096703108d0e9afa8251 100644 (file)
@@ -1,8 +1,7 @@
-#ifndef I18N_H
-#define I18N_H
+#pragma once
 
 #include "log.qh"
-#include "map.qc"
+#include "map.qh"
 #include "unsafe.qh"
 
 // translation helpers
@@ -11,6 +10,7 @@ string prvm_language;
 /**
  * @deprecated prefer _("translated")
  */
+ERASEABLE
 string language_filename(string s)
 {
        string fn = prvm_language;
@@ -41,6 +41,7 @@ string language_filename(string s)
        }
 #endif
 
+ERASEABLE
 string CTX(string s)
 {
 #if CTX_CACHE
@@ -50,12 +51,10 @@ string CTX(string s)
        int p = strstrofs(s, "^", 0);
        string ret = (p < 0) ? s : substring(s, p + 1, -1);
 #if CTX_CACHE
-        LOG_DEBUGF("CTX(\"%s\")\n", s);
+        LOG_DEBUGF("CTX(\"%s\")", s);
                HM_sets(CTX_cache, s, ret);
 #endif
        return ret;
 }
 
 #define ZCTX(s) strzone(CTX(s))
-
-#endif