note 123514 added to function.gettext

From: Date: Fri, 11 Jan 2019 09:39:30 +0000
Subject: note 123514 added to function.gettext
Groups: php.notes 
Request: Send a blank email to php-notes+get-210038@lists.php.net to get a copy of this message
putenv(...) can cause hidden problems when upgrading or moving between systems which are difficult to diagnose. On one Linux server we had the following working perfectly with setlocale putenv("LANG=$locale"); We switched servers and found gettext wouldn't work despite having all the same locale files and settings The recommendation to switch to putenv("LC_ALL=$locale"); didn't fix the problem. However, putenv("LANGUAGE=$locale"); did. So if you have problems, check all three settings. ---- Server IP: 208.43.231.9 Probable Submitter: 185.85.3.194 (proxied: 83.32.170.117) ---- Manual Page -- http://php.net/manual/en/function.gettext.php Edit -- https://master.php.net/note/edit/123514 Del: integrated -- https://master.php.net/note/delete/123514/integrated Del: useless -- https://master.php.net/note/delete/123514/useless Del: bad code -- https://master.php.net/note/delete/123514/bad+code Del: spam -- https://master.php.net/note/delete/123514/spam Del: non-english -- https://master.php.net/note/delete/123514/non-english Del: in docs -- https://master.php.net/note/delete/123514/in+docs Del: other reasons-- https://master.php.net/note/delete/123514 Reject -- https://master.php.net/note/reject/123514 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#210038) next »