2011-12-16 7 views
0

多言語サイトを構築していて、_( 'mytext')または_( "mytext")の形式でテキストを表示するので、Poeditはそれを認識して保留中の翻訳に追加できます。次のテキストを削除しない限り、以下のテキストは認識されません:{$form->getValue('email')}部分?これをどのように変更すればPoeditがそれを選択するのですか?翻訳値を認識しないPoedit - なぜですか?

$this->view->errors = array(
       array(_("{$form->getValue('email')} is already registered with this site. If you have 
       forgotten your password, click on the link and we will send you a new one")) 
      ); 

答えて

0

ソリューションは簡単に思える:なぜ、私はわからないんだけど、それは誰もがpoeditのようなプログラムを使用してPHPの変数を注入できることは良いアイデアのようには思えないのよう

$this->view->errors = array(
      array($form->getValue('email') . _(" is already registered with this site. If you have 
      forgotten your password, click on the link and we will send you a new one")) 
     ); 

+0

ありがとうございました。私は実際にセキュリティホールを見ない。アプリケーションは、パブリックビューの外にあるpoedit .poファイルから適切な変換を読み込むだけです。何か不足していますか? – dimbo

関連する問題