diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-09-15 10:12:56 -0700 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-09-15 10:12:56 -0700 |
commit | d62dfd88d2519f84b418700bcf7e08f1a4081662 (patch) | |
tree | dd6196df1919c616294a274652cc7f006893d594 /inc | |
parent | 48207b6814eeaef30a0baf64c3ed1e1d148de6fe (diff) | |
parent | d081f272b0b63cdf86ab7666747b63dbff7f068e (diff) | |
download | wallabag-d62dfd88d2519f84b418700bcf7e08f1a4081662.tar.gz wallabag-d62dfd88d2519f84b418700bcf7e08f1a4081662.tar.zst wallabag-d62dfd88d2519f84b418700bcf7e08f1a4081662.zip |
Merge pull request #221 from NumEricR/language
Fix #183: language declaration
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 |