aboutsummaryrefslogtreecommitdiffstats
path: root/config/vnstat2/vnstat_php_frontend/localize.php
diff options
context:
space:
mode:
Diffstat (limited to 'config/vnstat2/vnstat_php_frontend/localize.php')
-rw-r--r--config/vnstat2/vnstat_php_frontend/localize.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/config/vnstat2/vnstat_php_frontend/localize.php b/config/vnstat2/vnstat_php_frontend/localize.php
new file mode 100644
index 00000000..3695912f
--- /dev/null
+++ b/config/vnstat2/vnstat_php_frontend/localize.php
@@ -0,0 +1,15 @@
+<?php
+ // setup locale and translation
+ setlocale(LC_ALL, $locale);
+ require "lang/$language.php";
+
+ function T($str)
+ {
+ global $L;
+ if (isset($L[$str]))
+ return $L[$str];
+ else
+ return $str;
+ }
+
+?>