Results 1 to 3 of 3

Thread: change images and/or css based on locale for i18n issues

  1. #1
    Join Date
    Nov 2010
    Posts
    3

    Default change images and/or css based on locale for i18n issues

    I use spring MVC and I have arranged to change messages based on locale in JSP forms, using ReloadableResourceBundleMessageSource and message tag of spring forms taglib. But what I want is to change images based on locale. Images are in CSS files and IMG tags in JSP.

    What are the options for that? I know about themes in spring but I do not know how to attach them to LocaleChangeInterceptor.

    Any Ideas will be greatly appreciated.

    Thank you in advance.

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,629

    Default

    I suggest to read the theme chapter of the reference guide.

    Basically setup themes and make a ThemeResolver which uses the current selected locale to decide which theme to use.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3
    Join Date
    Nov 2010
    Posts
    3

    Default

    Thank you, I'll try that.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •