aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/Wallabag/Language.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/Wallabag/Language.php')
-rw-r--r--src/Wallabag/Wallabag/Language.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Wallabag/Wallabag/Language.php b/src/Wallabag/Wallabag/Language.php
index 43411817..a8fbbc35 100644
--- a/src/Wallabag/Wallabag/Language.php
+++ b/src/Wallabag/Wallabag/Language.php
@@ -10,6 +10,8 @@
10 10
11namespace Wallabag\Wallabag; 11namespace Wallabag\Wallabag;
12 12
13use \Session;
14
13class Language 15class Language
14{ 16{
15 protected $wallabag; 17 protected $wallabag;
@@ -38,7 +40,7 @@ class Language
38 $pocheUser = Session::getParam('poche_user'); 40 $pocheUser = Session::getParam('poche_user');
39 $language = (is_null($pocheUser) ? LANG : $pocheUser->getConfigValue('language')); 41 $language = (is_null($pocheUser) ? LANG : $pocheUser->getConfigValue('language'));
40 42
41 @putenv('LC_ALL=' . $language); 43 putenv('LC_ALL=' . $language);
42 setlocale(LC_ALL, $language); 44 setlocale(LC_ALL, $language);
43 bindtextdomain($language, LOCALE); 45 bindtextdomain($language, LOCALE);
44 textdomain($language); 46 textdomain($language);