2011-12-16 3 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")) 
     ); 

하지만 아무도 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

이 솔루션은 쉬운 것 .

+0

감사합니다. 보안 구멍이 실제로 보이지 않습니다. 응용 프로그램은 공용보기 외부에있는 poedit .po 파일에서 적절한 변환을 읽습니다. 내가 놓친 게 있니? – dimbo

관련 문제