Commit b9ace5eb authored by Nicolas Delaby's avatar Nicolas Delaby

Check cataloging of translated workflow state title with context

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34045 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d2ac269b
......@@ -280,6 +280,12 @@ class TestWorkflowStateTitleTranslation(ERP5TypeTestCase):
self.assertEquals(item.getTranslatedValidationStateTitle(), "En bon usage")
self.assertEquals(organisation.getTranslatedValidationStateTitle(),
'Validé')
# Now run indexation of translations.
self.portal.ERP5Site_updateTranslationTable()
# Ckeck queries with translated workflow state title generated with
# getMessageIdWithContext
self.assertTrue(len(self.portal.portal_catalog(
translated_validation_state_title="En bon usage")))
class LanguageGetter(MethodObject.Method):
......
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