开发者

wordpress use gettext library for translating pages content

开发者 https://www.devze.com 2023-04-02 15:36 出处:网络
Im using wordpress to build a multilanguage website.I know exist many multilanguage plugins for this pur开发者_开发百科pose.But I don\'t want to do in this way.There\'s any work around? could I use ge

Im using wordpress to build a multilanguage website.I know exist many multilanguage plugins for this pur开发者_开发百科pose.But I don't want to do in this way.There's any work around? could I use gettext library instead of plugins to translate pages content?

thanks Luca


Short answer - NO

Slightly more long: gettext shows previously prepared translation (if exist) of piece of text, stored in mo-files. For user-generated content you just haven't this translation and methods of getting strings for translation

Note: all above is true, if multilanguage website for you means site with multilanguage content (and changeable from language to language), not just with different languages of interface

0

精彩评论

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