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

php 国际化解决思路

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 13:41:39
Original
995 people have browsed it

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.……
Related labels:
Statement of this Website
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
Latest Issues
Hello everyone, new report
From 1970-01-01 08:00:00
0
0
0
When myhomepage opens, it prompts Hello World
From 1970-01-01 08:00:00
0
0
0
Hello, export your data table there
From 1970-01-01 08:00:00
0
0
0
Hello, what is the group number?
From 1970-01-01 08:00:00
0
0
0
Can only access index, not hello
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template