开发者

Best practices for displaying a webpage in different languages

I would like to deploy a webpage in different languages (German and English). As a backend solution I would use Wordpress running on a nginx/PHP/MySQL stack on Linux.

From various posts here I think that looking at the browser locale (the ACCEPT-LANGUAGE field in HTTP 开发者_StackOverflowrequest) is a good first try for setting the correct language. Of course the user will be able to override this and this choice will be stored in a cookie.

So my questions is:

How would one implement that in wordpress? Would one have to deploy two separate wordpress installations one for each language or is there some plugin for it which I have not found yet.


You can use the plugin "WPML". Pretty sure that will do what you want.


@GorillaPatch,

See this question on WordPress Answers on how to add language support to your WordPress theme using the .mo and .po files.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜