大佬教程收集整理的这篇文章主要介绍了Gettext和PHP 5.3.5 xampp-使用未定义的常数LC_MESSAGES-假定为“ LC_MESSAGES”,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我收到以下错误:
Notice: Use of undefined constant LC_messaGES - assumed 'LC_messaGES' in C:\Program Files\xampp\htdocs\xampp\PHPtest\resources\testi18n.PHP on line 19
Notice: Undefined index: language in C:\Program Files\xampp\htdocs\xampp\PHPtest\resources\testi18n.PHP on line 19
Deprecated: setlocale() [function.setlocale]: Passing locale category name as String is deprecated. Use the LC_* -constants instead in C:\Program Files\xampp\htdocs\xampp\PHPtest\resources\testi18n.PHP on line 19
编码:
<?PHP
setlocale( LC_messaGES, $_GET['language']);
bindtextdomain('messages', 'locale');
...
?>
解决方法:
参见manual(重点是我的):
LC_ALL可能是您有用的替代品.
以上是大佬教程为你收集整理的Gettext和PHP 5.3.5 xampp-使用未定义的常数LC_MESSAGES-假定为“ LC_MESSAGES”全部内容,希望文章能够帮你解决Gettext和PHP 5.3.5 xampp-使用未定义的常数LC_MESSAGES-假定为“ LC_MESSAGES”所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。