Add global JS variable `LANGUAGE_USE_INFORMAL_VARIANT`
authorMatthias Schmidt <gravatronics@live.com>
Thu, 29 Sep 2016 08:46:42 +0000 (10:46 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Thu, 29 Sep 2016 08:46:47 +0000 (10:46 +0200)
… for global support of language items containing checks for
`LANGUAGE_USE_INFORMAL_VARIANT`.

com.woltlab.wcf/templates/headIncludeJavaScript.tpl
wcfsetup/install/files/acp/templates/header.tpl

index 160d81caf7797811314ce6a0e06004f6555ee94c..913bc45e3b1889e31cfe9e5d05558e873ebf940f 100644 (file)
@@ -8,6 +8,7 @@
        var WSC_API_URL = '{@$__wcf->getPath()}';
        var SECURITY_TOKEN = '{@SECURITY_TOKEN}';
        var LANGUAGE_ID = {@$__wcf->getLanguage()->languageID};
+       var LANGUAGE_USE_INFORMAL_VARIANT = {if LANGUAGE_USE_INFORMAL_VARIANT}true{else}false{/if};
        var TIME_NOW = {@TIME_NOW};
        var URL_LEGACY_MODE = false;
 </script>
index 411a0bf6c22128bcb69c16769f59b9e16530a02f..9819a0626467b923b63803cbdcb64f4c98eab147 100644 (file)
@@ -21,6 +21,7 @@
                var WSC_API_URL = '{@$__wcf->getPath()}acp/';
                var SECURITY_TOKEN = '{@SECURITY_TOKEN}';
                var LANGUAGE_ID = {@$__wcf->getLanguage()->languageID};
+               var LANGUAGE_USE_INFORMAL_VARIANT = {if LANGUAGE_USE_INFORMAL_VARIANT}true{else}false{/if};
                var TIME_NOW = {@TIME_NOW};
                var URL_LEGACY_MODE = false;
        </script>