Bug(バグ) #1129
Warning error is occured when user's culture has no translation dictionary (e.g. English) (英語などの翻訳用の辞書ファイルがない言語を選択している場合にWarningエラーが発生する)
Start date:
2010-06-02
Due date:
% Done:
100%
3.6 で発生するか:
Unknown (未調査)
3.8 で発生するか:
Unknown (未調査)
Description
Overview (現象)¶
When user's culture has no translation dictionary (e.g. English), PHP warning error is occured.
英語などの翻訳用の辞書ファイルがない言語をユーザが選択している場合に、PHP の Warning エラーが発生する。
Notice: Undefined index: messages in /path/to/openpne/lib/vendor/symfony/lib/i18n/sfMessageFormat.class.php on line 195 Warning: Invalid argument supplied for foreach() in /path/to/openpne/lib/vendor/symfony/lib/i18n/sfMessageFormat.class.php on line 195
Causes (原因)¶
sfMessageSource_OpenPNECached::load() は sfMessageSource::load() のコメントにある通り、常に true を返す必要があるが、翻訳ファイルが存在しない場合に false を返す実装となっていたため。
Way to fix (修正内容)¶
sfMessageSource_OpenPNECached::load() で常に true を返すようにする。
Related issues
Associated revisions
sfMessageSource_OpenPNECached::load() returns always true as sfMessageSource::load() does (fixes #1129)
History
#1
Updated by Rimpei Ogawa over 13 years ago
- Target version set to OpenPNE 3.5.3
#2
Updated by Rimpei Ogawa over 13 years ago
- Status changed from Accepted(着手) to Pending Review(レビュー待ち)
- % Done changed from 0 to 50
更新履歴 c4d7bc273e6641378e43c0c4d791c2981ea4c9d0 で適用されました。
#3
Updated by Kousuke Ebihara over 13 years ago
- Status changed from Pending Review(レビュー待ち) to Fixed(完了)
- % Done changed from 50 to 100