Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-6498

Improve Tooling for i18n

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Neutral Neutral
    • None
    • None
    • i18n
    • 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
            
        • C] Or would it be possible to somehow attach a listener to vaadin processor????

        Acceptance criteria

              Unassigned Unassigned
              rkovarik Roman Kovařík
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:

                  Task DoD