aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/poche
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-09-15 10:12:56 -0700
committerNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-09-15 10:12:56 -0700
commitd62dfd88d2519f84b418700bcf7e08f1a4081662 (patch)
treedd6196df1919c616294a274652cc7f006893d594 /inc/poche
parent48207b6814eeaef30a0baf64c3ed1e1d148de6fe (diff)
parentd081f272b0b63cdf86ab7666747b63dbff7f068e (diff)
downloadwallabag-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/poche')
-rw-r--r--inc/poche/Tools.class.php5
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