-
Type: Improvement
-
Status: Resolved
-
Priority: Minor
-
Resolution: Duplicate
-
Affects Version/s: 5.8, 6.0, 7.10, 8.2
-
Fix Version/s: None
-
Component/s: Workflow
-
Tags:
-
Backlog priority:300
- create a test file
- start a serial workflow
- require validation
- validate or refuse
- the log in history is in English even if both nuxeo and browser use another language
Same scenario for other log events like Review.
This is actually hardcoded and should take into account internationalization.
Please check nuxeo-platform-document-routing/nuxeo-routing-default/src/main/resources/OSGI-INF/extensions.xml for
<chain id="logInAudit"> <operation id="Audit.LogEvent"> <param type="string" name="event">expr:NodeVariables["button"] =="reject"?"Document refused":"Document validated"</param> <param type="string" name="category">Review workflow</param> <param type="string" name="comment">expr:@{nodeLastActor} @{NodeVariables["button"] =="reject"?"Document refused":"validated"} the document with the following comment: @{NodeVariables["comment"]}</param> </operation> </chain>
and also
<operation id="Audit.LogEvent"> <param type="string" name="event">Review completed successfully</param> <param type="string" name="category">Review workflow</param> <param type="string" name="comment">All the participants of the review have approved the document.</param> </operation>
Ideally the file should be checked for other occurences.
A workaround for Audit.LogEvent and logInAudit is to edit the chains directly in the Studio.
- duplicates
-
NXP-19269 Internationalize audit log's comment in validation workflow
- Resolved