Grails

Incorrect display of plugin i18n non-english messages

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: 1.1
  • Fix Version/s: 1.2-M3
  • Component/s: Plugins
  • Labels:
    None

Description

I place some non-english messages in plugin grails-app/i18n/messages_ru.properties, then I install plugin to grails application and try to display them in this app using <g:message> tag. I receive non-readable characters instead of message text.

It seems that native2ascii tool not invoked on plugin package task

Issue Links

Activity

Hide
Markus Kramer added a comment -

I can confirm this issue. Special characters will not work in plugins right now.

Message property files of plugins are not loaded in the same way as the message properties of main web app.
I debugged ReloadableResourceBundleMessageSource#loadProperties and you can see that a processed version of the main web app properties will be loaded, but in case of plugins the original non-processed properties will be used.

Show
Markus Kramer added a comment - I can confirm this issue. Special characters will not work in plugins right now. Message property files of plugins are not loaded in the same way as the message properties of main web app. I debugged ReloadableResourceBundleMessageSource#loadProperties and you can see that a processed version of the main web app properties will be loaded, but in case of plugins the original non-processed properties will be used.
Hide
Cazacu Mihai added a comment -

I can also confirm this issue. Is there an workaround?

Show
Cazacu Mihai added a comment - I can also confirm this issue. Is there an workaround?

People

Vote (5)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: