Announcement Announcement Module
Collapse
No announcement yet.
how to do i18n in spring? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • how to do i18n in spring?

    Hi,

    I need to internationalize different types of resources: gifs, jpgs even some sound files.
    Iíve been looking at Message Source as a way of i18n in spring, but it serves only for textual messages. How do I internationalize gifs, jpgs etc?

    Thanks,

    Danijel

  • #2
    How about:

    Code:
    <a href="<spring&#58;message code="image1"/>">
    Or are you looking for something else?

    Comment


    • #3
      Resource Locator

      It seems as if you will need to create the language specific resources (gif, jpg etc...) then use Spring's RequestContextUtils (org.springframework.web.servlet.support.RequestCo ntextUtils) to find the locale then use that to load the specific resource.

      I'll watch this thread. Let me know if you get it working.

      Thanks,
      Chris Rosenquest

      Comment


      • #4
        to be a bit more specific...

        I am working on what is to be a kind of "Printing Service" and it is not typical web app. It has a dedicated front-end (java applet) that permits visualizing the documents.
        The app should manage localized images and text, for generating localized documents and I thought of bundling images as well.
        If I am not sidetracked, I guess I need to do something like ImageSource.getImage(..).

        Thanx

        Comment

        Working...
        X