Home  >  Article  >  Backend Development  >  php 国际化解决思路

php 国际化解决思路

WBOY
WBOYOriginal
2016-06-13 10:11:241330browse

php 国际化
谁能奉献个php实现国际化的例子啊? 感谢!!!!!!

------解决方案--------------------
你可以将语言写成配置文件,然后根据不同的语言选择不同的配置文件 .至于后台,这个没啥好说的
------解决方案--------------------
使用语言配置文件的呀,LZ想复杂了
------解决方案--------------------
就是php对unicode的支持,utf-8编码
------解决方案--------------------

探讨

xgettext -d [您定义的PACKAGE名称] [程序文件名]
WIN32下面的xgettext、msgfmt程序档可以从 ( http://www.sourceforge.net ) 下载,需要 libiconv.dll,、libintl.dll 的支持。
以上面hello.php档为例,
$ xgettext -d hello hello.php
运行后将产生一个hello.……
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn