我正在尝试翻译二十个基于子主题的主题,我已经使用自定义代码段修改了单loop.php,它显示了下一个和上一个箭头......
我的问题是这个字符串(下一个和上一个文本)无法翻译...替换不会发生在这个特定的字符串中。我执行检测字符串并使用poedit创建所有字符串的所有过程,但不起作用。所有其他字符串确实翻译好。
我通过添加下一个上一个片段编辑了php文件single-loop.php。
# installing the rest of dependencies
RUN apt-get install --no-install-recommends -qy monit
WORKDIR /etc/monit/conf.d
ADD webapp.conf ./
RUN echo "set httpd port 2812 and allow localhost" >> /etc/monit/monitrc
ADD minit /usr/bin/minit
RUN mkdir /etc/minit
RUN echo '#!/bin/bash\n /etc/init.d/monit start; monit start all' \
> /etc/minit/startup
RUN echo '#!/bin/bash\n \
monit stop all; while monit status | grep -q Running; do sleep 1; done; \
/etc/init.d/monit stop' > /etc/minit/shutdown
RUN chmod u+x /etc/minit/*
ENTRYPOINT ["/usr/bin/minit"]
然后我用poedit扫描了所有的php文件并显示了字符串:我使用poedit翻译它们(webapp.conf
- 和 - check process webapp with pidfile /var/run/webapp/webappd.pid
start program = "/etc/init.d/webapp start"
stop program = "/etc/init.d/webapp stop"
if failed host 127.0.0.1 port 8080 for 2 cycles then restart
if totalmem > 64 MB for 10 cycles then restart
depends mysql, nginx
group server
check process mysql with pidfile /var/run/mysqld/mysqld.pid
start program = "/etc/init.d/mysql start"
stop program = "/etc/init.d/mysql stop"
group database
check process nginx with pidfile /var/run/nginx.pid
start program = "/etc/init.d/nginx start"
stop program = "/etc/init.d/nginx stop"
group server
)但是,即使我将文件上传到了主题语言文件夹,这个字符串不翻译,但所有其他主题的原创,做翻译...
我做错了什么?
感谢您的帮助。