-
Improvement
-
Resolution: Unresolved
-
Neutral
-
None
-
None
-
None
We should provide informations about translations (all possible keys for labels and mark the used one) in development mode. The comfortable solution is to provide e.g. title element to labels which would occur on hover.
- It's easy to provide HTML with all the informations directly from TranslationServiceImpl.
- The problem is that most of our labels in UI do not support HTML.
- A] We'd need to support is all over the place.
- B] post processing and inserting the title elements into a parent elements
- We've already tried sitemesh/modify stream/javascript post processing. This works well on plain HTML page but not in admincentral since the output is json.
<script data-name='scriptid'> $(document).ready(function(){ var el = document.querySelector('script[data-name="scriptid"]'); el.parentNode.setAttribute(\"title\", \" Arrays.asList(keys).toString().replace(keys[0], ">" + keys[0] + "<") el.remove() }); </script> translatedMessage
- We've already tried sitemesh/modify stream/javascript post processing. This works well on plain HTML page but not in admincentral since the output is json.
- C] Or would it be possible to somehow attach a listener to vaadin processor????
Acceptance criteria
- clones
-
MAGNOLIA-6471 Tooling for i18n
- Closed