Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8106243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T00:24:29+00:00 2026-06-06T00:24:29+00:00

I have basic Spring MVC 3 setup for i18n where I can show labels

  • 0

I have basic Spring MVC 3 setup for i18n where I can show labels on page based on user passed language in the request. For example: url?lang=fr, url?lang=de etc…

But actual requirement is I have to maintain 2 properties files for each locale, for example for French, I will have messages_fr_fr.properties and messages_fr_en.properties. Similarly for germany locale, I will have messages_de_de.properties and messages_de_en.properties.

That means when french user logs in, page will show french labels, but he can switch to english from a drop down if he wants. This requires programatic loading messages properties, how do I do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T00:24:31+00:00Added an answer on June 6, 2026 at 12:24 am

    From reference, I believe using LocaleChangeInterceptor helps you change the language at runtime and load the messages likewise. A more detailed example is described here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I can't seem to get basic validation working with Spring MVC. I have the
I have a Spring-MVC, Hibernate, (Postgres 9 db) Web app. An admin user can
I have looked at Spring MVC a few times briefly, and got the basic
I have built a REST API backend whith Spring MVC and secured with basic
I have a basic Spring MVC controller that looks like this: @Controller public void
I have a Spring-MVC based webapp with a JSP front end. It is your
Little confused, the basic spring mvc app has this: app-config.xml <context:component-scan base-package=org.springframework.samples.mvc.basic /> and
Can someone outline the steps required to get hibernate working with spring mvc. I've
I'm attempting to learn Spring MVC but have been spoiled by Grails. While I
Starting my way with STS and created a new basic Hello World Spring MVC

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.