drsqpko5286 2012-09-27 16:47 采纳率: 0%
浏览 49

使用Zend Translate的mo文件出错

I'm using Zend Translate on a project I'm working on, and from the last week or so, whenever I add a new string to the .po file, the scripts breaks giving the following error:

Warning: Unexpected character in input: '' (ASCII=1) state=0 in C:\www\web\application\languages\pt_PT\application.mo on line 132

But if I change the string that I want to translate to anything else, it starts working.

And if I add another string to translate, the file starts to work again.

I'm using Poedit to manage the translations, and the translations I'm inserting don't have any " or '.

Using the Validate tool in Poedit doesn't produce any errors.

Any thoughts?

  • 写回答

1条回答 默认 最新

  • doucan4815 2018-01-12 10:15
    关注

    This question it's to old but here is how I solved this.

    I have latest version of ZF1 1.12.20 (Discontinued). I tested everything but for me the solution was clean .po file by removing all “” especial quotes and \t characters in origin translation (English) and after that all works perfectly.

    评论

报告相同问题?

悬赏问题

  • ¥500 52810做蓝牙接受端
  • ¥15 基于PLC的三轴机械手程序
  • ¥15 多址通信方式的抗噪声性能和系统容量对比
  • ¥15 winform的chart曲线生成时有凸起
  • ¥15 msix packaging tool打包问题
  • ¥15 finalshell节点的搭建代码和那个端口代码教程
  • ¥15 Centos / PETSc / PETGEM
  • ¥15 centos7.9 IPv6端口telnet和端口监控问题
  • ¥20 完全没有学习过GAN,看了CSDN的一篇文章,里面有代码但是完全不知道如何操作
  • ¥15 使用ue5插件narrative时如何切换关卡也保存叙事任务记录