如何用poedit读取Cakephp .ctp文件中的__()? [英] How to read __() in Cakephp .ctp files with poedit?

查看:90
本文介绍了如何用poedit读取Cakephp .ctp文件中的__()?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用Poedit读取__()中嵌入的字符串.这是一个Cakephp .ctp文件.目前,仅当我删除一个下划线时,它才有效:_().我知道如何使用控制台,但我想使用Poedit.

解决方案

目录->属性->源关键字并添加__,因为与_不同,它不是xgettext的默认值./p>

顺便说一句,顺便说一句,因为您的问题使很多在可用细节方面都令人无法满足.

How do i use Poedit to read strings embedded in __(). It's a Cakephp .ctp file. At the moment it only works if i remove one underscore: _(). I know how to use the console but i want to use Poedit.

解决方案

Catalog -> Properties -> Source keywords and add __, because unlike _ it is not xgettext's default.

Just guessing, BTW, because your question leaves a lot to be desired in terms of usable details.

这篇关于如何用poedit读取Cakephp .ctp文件中的__()?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆