How to debug gettext not working in PHP?

前端 未结 6 1822
心在旅途
心在旅途 2020-12-30 04:02

i am trying to use the php gettext extension in php 5.5 (on win2008 server, using IIS7). I am doing this:



        
6条回答
  •  礼貌的吻别
    2020-12-30 04:15

    It's a bit old question but here goes this answer in the hope of being useful for someone.

    Try changing LC_ALL to LANG in the putenv function, from this:

    $results = putenv("LC_ALL=$locale");
    

    to this:

    $results = putenv("LANG=$locale");
    

    In the mac it was given problems with LC_ALL and probably it the same here .

    Also check this answer in other cases https://stackoverflow.com/a/3535866/6628843

    Hope it helps!

提交回复
热议问题