Gettext will always use system default locale

后端 未结 7 708
孤城傲影
孤城傲影 2020-12-30 09:30

I need to localise a Windows-only PHP web application and I\'m evaluating the gettext extension but I\'m having the hardest time trying to make it work in my Windows 7 devel

7条回答
  •  再見小時候
    2020-12-30 10:02

    It's an issue that's been acknowledged and partially fixed by the PHP team.

    It's a fairly technical thing, apparently related to the way environment variables (on which gettext heavily depends) are handled by the underlying platform. Also, something has changed in the Visual C Runtime libraries from VC9 to VC11 that affects all this.

    To sum up:

    • Non thread-safe builds have been fixed in the source tree on 21st Nov. 2014.
    • Thread-safe builds (e.g. Apache module) haven't and there isn't a clear solution in sight.

提交回复
热议问题