Announcement Announcement Module
Collapse
No announcement yet.
Message Key Translation Interface Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Message Key Translation Interface

    I have implemented typical i18n and L10n with messagesource and Spring TLD using spring:message to replace text on a locale basis.

    What I would like to do is provide an interface to provide translations per message in a web app. If you have ever used the OpenACS-Lang package you will see this implemented quite well.

    I'm relatively new to Spring and have run into a few issues.

    Firstly, when translator mode is toggled on I want each message to be marked up with a link or icon next to the message on the view to take the user to a page where they can provide a new translation for that message. The only way I can think of redoing this is by doubling up on a lot of code and have the handlers provide the relevant JSP. I'd prefer to just have a single page that is dynamically marked up depending on user role.

    Secondly, and should be less of an issue, I need to be able to have the message updated in the relevant locale message file. I'm after any recommendations on XML IO when considering how a normal messages file is laid out.

    thanks.
Working...
X