aboutsummaryrefslogtreecommitdiffstats
path: root/config/vnstat2/vnstat_php_frontend/localize.php
diff options
context:
space:
mode:
authorBryan Paradis <bryan.paradis@gmail.com>2014-01-22 23:09:02 -0500
committerBryan Paradis <bryan.paradis@gmail.com>2014-01-22 23:09:02 -0500
commit3f126784b31d5b5011fb10be7802cf122d953d16 (patch)
tree65bc82e56f83cbbad8951e2c28b77028d08443f4 /config/vnstat2/vnstat_php_frontend/localize.php
parent238612a72478ce9c00d25b31f9a7516a69f996c5 (diff)
downloadpfsense-packages-3f126784b31d5b5011fb10be7802cf122d953d16.tar.gz
pfsense-packages-3f126784b31d5b5011fb10be7802cf122d953d16.tar.bz2
pfsense-packages-3f126784b31d5b5011fb10be7802cf122d953d16.zip
added vnstat_php_frontend moving away from tar
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;
+ }
+
+?>