how to use gettext in php?

后端 未结 3 1315
执念已碎
执念已碎 2021-01-22 12:59

I have a file dk.po and dk.mo in folder lang in my webdir.

How can I use this file? I have tried all, but I can not get it to work.

<         


        
3条回答
  •  生来不讨喜
    2021-01-22 13:42

    I would seriously recommend using Zend_Translate for this as you can run into a lot of inconsistencies with locales on various types of systems.

    Docs: http://framework.zend.com/manual/en/zend.translate.using.html

提交回复
热议问题