Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
837 views
in Technique[技术] by (71.8m points)

internationalization - complete example of gettext in php

i've been googling for the last hour or so trying to find a complete working example of gettext in php - all source files, po files, with proper paths, etc. Just a "hello world" with all the required files.

I was wondering if anybody has such a working example. thanks in advance.

question from:https://stackoverflow.com/questions/4062832/complete-example-of-gettext-in-php

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I've read these other guides posted for this question, but none of them was complete enough for me and also they seem to be rushing into the subject.

THIS GUIDE is divided in many parts, you'll learn from a simple Hello World to a complex plural management. It not just explain what every function does, but also the values used for these functions.

As a bonus, this guide teaches how to use Poedit which is a very helpful toll for working with gettext internationalization and a must have if you are dealing with a huge project.

The OP may change the accepted answer to this one if he also think that guide is better. So this answer can get more attention and more gettext beginners like me can be helped.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...