プロジェクト

全般

プロフィール

Bug(バグ) #4106

kaoru n約7年前に更新

h3. Overview (現象)

管理画面 メール通知送信設定 メール通知テンプレート設定 にてエラーメッセージが翻訳されない。

h3. Causes (原因)

https://github.com/openpne/OpenPNE3/blob/master/apps/pc_backend/modules/mail/actions/actions.class.php#L31
<pre>
<code class="php">$this->getUser()->setFlash('error', (string)$this->form->getErrorSchema(), false);</code>
</pre>
https://github.com/openpne/OpenPNE3/blob/master/apps/pc_backend/templates/layout.php#L44
<pre>
<code class="php"><p id="flashError" class="flash"><?php echo __($sf_user->getFlash('error')) ?></p></code>
</pre>
のようにフラッシュメッセージにてエラーメッセージを表示しようとしている。
フラッシュメッセージにて表示する際に翻訳を試みているが、既に編集された文字列であるため翻訳されない。

h3. Way to fix (修正内容)

renderGlobalErrors() または renderError() を使用して表示するように変更する。

戻る