【发布时间】:2012-05-21 12:26:12
【问题描述】:
我正在使用 gettext 编写一个多语言的 php web 应用程序。
实际使用gettext的最佳方式是什么,我可以用它作为关键词:
echo (_("main.welcomeText.1"));
或者
echo (_("Welcome to my site, we build great webapps."));
在这两种方式中,我都使用 .po 文件来翻译请求。
有什么更好的方法?
【问题讨论】:
-
感谢您的评论,但该主题的重点并不是什么更好,而是更多地关注人们使用关键短语方式的原因。
标签: php html translation gettext