Commit 073f6cf1 authored by Sebastien Robin's avatar Sebastien Robin

erp5_content_translation: display text to translate as textarea, otherwise it is not usable

It would be surely better to have matrixbox having possibility to
define which widget we use to display matrix variation labels.
parent 8aea5b39
......@@ -2,5 +2,7 @@ result = []
for property_name in context.getTypeInfo().getContentTranslationDomainPropertyNameList():
original_text = context.getProperty(property_name)
if original_text:
if pretty:
original_text = "<textarea readonly>" + original_text + "</textarea>"
result.append((property_name, original_text))
return result
......@@ -50,7 +50,7 @@
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>*args, **kw</string> </value>
<value> <string>pretty=False, **kw</string> </value>
</item>
<item>
<key> <string>id</string> </key>
......
......@@ -108,6 +108,10 @@
<key> <string>alternate_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>as_cell_range_script_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>cell_base_id</string> </key>
<value> <string></string> </value>
......@@ -184,6 +188,10 @@
<key> <string>update_cell_range</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>url_cells</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
......@@ -290,10 +298,7 @@
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
</pickle>
<pickle>
<dictionary>
......@@ -306,16 +311,13 @@
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>here/Base_getContentTranslationPropertyValueAndLabelList</string> </value>
<value> <string>python: here.Base_getContentTranslationPropertyValueAndLabelList(pretty=True)</string> </value>
</item>
</dictionary>
</pickle>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment