Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/lua/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Cakephp 翻译不起作用,请帮帮忙_Cakephp_Translate - Fatal编程技术网

Cakephp 翻译不起作用,请帮帮忙

Cakephp 翻译不起作用,请帮帮忙,cakephp,translate,Cakephp,Translate,这是家里的电话线。ctp <div id="bid-now" class="border-blue"> <div class="heading bg-image-blue"><h3>BID NOW! - these auctions are about to end</h3></div> <?php echo $this->element('bid_

这是家里的电话线。ctp

<div id="bid-now" class="border-blue">
    <div class="heading bg-image-blue"><h3>BID NOW! - these auctions are about to end</h3></div>
    <?php echo $this->element('bid_now!_-_these_auctions_are_about_to_end'); ?>
    <div class="content">

我翻译了所有内容,有些翻译有效,有些则无效。有人能帮我吗?

你的代码片段没有任何用处。这是cakephp 2.6版,我有什么版本不重要;如果要翻译文本,必须通过翻译函数传递文本。
#: /views/auctions/home.ctp:20
msgid "BID NOW! - these auctions are about to end"
msgstr "BIETEN SIE JETZT! - Diese Auktionen sind kurz vor dem Ende"