「Unable to retrieve state do not translate for cycle Localization」エラーを防ぐにはどうすればよいですか?
このエラーを防ぐために、設定を変更することができます。
説明
ユーザーが画像を作成し、Needs translation(翻訳が必要)チェックボックスを選択しなかった場合、その画像はローカライズ時にLocalization:do not translate
に設定されます。Localization: do not translate
状態がsystem/conf/image_status.xmlファイルで定義されていない場合、このエラーが発生します。
解決法
system/conf/image_status.xmlファイルを編集し、以下のエントリーを追加します:
<!-- Localization cannot have multiple higher states ( higher state are next to current with a higher level ) -->
<cycle collection="/content/localization/" description="" initial="false" lastworkcycle="false"
level="0" name="Localization" type="localization">
<nextCycle/>
<states>
<state level="0" name="do not translate" type="work">
<lockable>
<objtypes>
<type>none</type>
</objtypes>
</lockable>
<nextStates/>
</state>
<state initial="true" level="0" name="tb translated" type="work">
<lockable>
<objtypes>
<type>none</type>
</objtypes>
</lockable>
<nextStates>
<next>in translation</next>
</nextStates>
</state>