plone.app.multilingual: Access Translated Object's Attributes -


environment: plone 4.3.3, plone.app.multilingual 2.0a4 (checkout github), in case, 2 languages (en , zh) enabled, ie bilingual site.

my custom dexterity type has field remoteurl, definition looks this:

<field name="remoteurl"  type="zope.schema.textline">   <title i18n:translate="">url</title>   <description i18n:translate="">link resource.</description>   <default>http://</default>   <required>false</required> </field> 

my scenario this: when creating item in zh folder (zh/my_item), remoteurl field filled, displayed according the template. then, when translating item en language (en/my_item), want display value zh/my_item if remoteurl field unfilled in en/my_item. on other hand, if filled in en/my_item, value used , displayed remoteurl field.

the existing language independent field not meet needs, because filled value affect both zh/en items. how access zh/my_item remoteurl value en/my_item context? hints or sample snippets view class / template appreciated.

if want display alternative value other language, can access translations catalog index translationgroup. idea.


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -