Code

Updated model
[gosa.git] / include / class_Utils.inc
diff --git a/include/class_Utils.inc b/include/class_Utils.inc
new file mode 100644 (file)
index 0000000..94f71bc
--- /dev/null
@@ -0,0 +1,28 @@
+<?php
+
+require_once("accept-to-gettext.inc");
+
+class Utils {
+
+  static public function getBrowserLanguage() {
+
+    #TODO: Support users language
+
+    /* Return gettext based string */
+    return (al2gt(Utils::getLanguages(), 'text/html'));  
+  }
+
+
+  static public function getLanguages() {
+    #TODO: crawl the locale directory for languages
+
+    return array(
+        "German" => "de_DE.UTF-8",
+        "French" => "fr_FR.UTF-8",
+        );
+  }
+
+}
+
+// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
+?>