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

  • SEARCH
  • Home
  • 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 7790083
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T21:28:56+00:00 2026-06-01T21:28:56+00:00

I am writing a desktop application using MVVM and Prism and I have the

  • 0

I am writing a desktop application using MVVM and Prism and I have the following problem. As well as the labels etc it is also necessary to store data in different languages.

For example, in the USA a user might be able to login using either English or Spanish (as they are a native speaker).

  • If the user logs in using Spanish when they go into a product details
    form the product description will be saved to the database against
    the Spanish language.
  • If they log in using English the product description will be saved to
    the database and related to the English language.

At the moment my only ideas is as below:-
– a globally accessible ApplicationViewModel that contains a
CurrentLoggedInUser property

What I would like to know is how I go about saving the currently logged in user’s chosen language when using MVVM, particularly in a desktop application?
N.B the chosen language can be different to the language and locale that the operating system is in

How do other people go about resolving this and maintaining the user’s “session” across different windows / user controls when using MVVM?

  • 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-01T21:28:56+00:00Added an answer on June 1, 2026 at 9:28 pm

    All you need to do is store the current language somewhere, maybe as an LCID.

    Generally this is used to load a language specific resource file, which takes care of most language dependant situations. Controls etc just store all their strings in resources, so they don’t need direct access to the current language.

    For situations where you do need access to the language, such as knowing where to save your database string, then yes, the language should be exposed either as some static/singleton, or more desirably, should be injected into whatever ViewModels need it.

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

Sidebar

Related Questions

I am writing a search form for desktop application and I have a problem
I'm writing a facebook desktop application for the first time using the PyFacebook api.
I am writing a desktop and j2me application. I have debug statements in program.
We're writing Windows desktop apps using C++ and Win32. Our dialog boxes have an
Currently, I am showing splash screen in my desktop application using the following way
I am writing a Desktop GUI application in Clojure using Java Swing. Normally when
I am writing a Desktop application for professional users using C++. My current design
I am writing a desktop application using SWT. What is the simplest way to
I am writing a desktop application written in Swing developed using Java 1.5. Some
I am writing a desktop application and trying to decide between using AIR (FLex)

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.