Commit 9631528a authored by Yusei Tahara's avatar Yusei Tahara

erp5_hal_json_style: Use getTranslatedTitle instead of Base_translateString for container's title.

Then translation method is configurable per portal type and by default only modules use erp5_ui, portal types such as Sale Order use content translation, thus it does not create unnecessary translation messages.
parent 7e4a5fcf
......@@ -1432,7 +1432,7 @@ def calculateHateoas(is_portal=None, is_site_root=None, traversed_document=None,
"relative_url": container.getRelativeUrl(),
"script_id": script.id
},
"name": container.getTitle(),
"name": container.getTranslatedTitle(),
}
# Find current action URL and extract embedded view
......
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