.po to .mo convertor in php?

后端 未结 2 1806
深忆病人
深忆病人 2021-01-21 02:46

i want a PHP script which can convert .po(Portable Object) as .mo(Machine Object) file? is any script available in PHP?

               


        
相关标签:
2条回答
  • 2021-01-21 03:14

    I have not tried it, but it looks like this PEAR package might help you. It is unmaintained, but maybe you can be the new maintainer?

    If you can read Python, then you can take a stab at converting their msgfmt.py script to PHP. It's only 200 lines or so.

    0 讨论(0)
  • 2021-01-21 03:33

    You could run msgfmt using exec() or similar. I don't know if there is a PHP-only way to do it.

    0 讨论(0)
提交回复
热议问题