Code

Updated model
[gosa.git] / include / class_Utils.inc
1 <?php
3 require_once("accept-to-gettext.inc");
5 class Utils {
7   static public function getBrowserLanguage() {
9     #TODO: Support users language
11     /* Return gettext based string */
12     return (al2gt(Utils::getLanguages(), 'text/html'));  
13   }
16   static public function getLanguages() {
17     #TODO: crawl the locale directory for languages
19     return array(
20         "German" => "de_DE.UTF-8",
21         "French" => "fr_FR.UTF-8",
22         );
23   }
25 }
27 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
28 ?>