diff options
Diffstat (limited to 'inc')
-rw-r--r-- | inc/poche/Tools.class.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/inc/poche/Tools.class.php b/inc/poche/Tools.class.php index 3a792d43..1ab90be1 100644 --- a/inc/poche/Tools.class.php +++ b/inc/poche/Tools.class.php | |||
@@ -248,4 +248,9 @@ class Tools | |||
248 | fclose($fp); | 248 | fclose($fp); |
249 | } | 249 | } |
250 | } | 250 | } |
251 | |||
252 | public static function getDocLanguage($userlanguage) { | ||
253 | $lang = explode('.', $userlanguage); | ||
254 | return str_replace('_', '-', $lang[0]); | ||
255 | } | ||
251 | } \ No newline at end of file | 256 | } \ No newline at end of file |