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 8234053
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T18:20:55+00:00 2026-06-07T18:20:55+00:00

Id like to program a multi-language application with play!. I never did that before

  • 0

Id like to program a multi-language application with play!. I never did that before so im looking for some advice how to do it right the first place.

the task:
lets assume i have a simple application with questions and answers. imagine it like a survey. Depending one the language the user chooses the questions and the answers are displayed in the correct language.
For better unstanding the model would look like:

question: id, questionString

answer: id, fk_questionId, answerString, isRightBool

As u see a usual 1:n relation. But how to approach now the multi language support?

  1. An idea would be duplicating the whole database…that idea seems simple but ugly because of the additional overhead for later changes…would be a nightmare i guess.
  2. additional fields like questionStringGerman, questionStringEnglish. Dont like that idea either…
  3. Additional table for each modelclass with an 1:n relation. Like question_lang, and answer_lang. Colums are the languages. Seems easier to handle.
  4. One table for all translations. Colums are the languages. Seems the easiest but hard to handle for correction.

Which approach is the best for dynamic translation. Maybe i miss something. Would be glad if some could tell me what the riht approach is to approach that problem.

Thx in advance!

  • 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-07T18:20:57+00:00Added an answer on June 7, 2026 at 6:20 pm

    I’d personally have as follows:

    Table: Language
    Id, Name
    
    Table: Translation
    Id, UniqueName(IdxUnique), LanguageId(FK), TranslationText
    
    Table: Question
    Id, TranslationUniqueName(FK)
    
    Table: Answer
    Id, QuestionId(FK), IsRight, TranslationUniqueName(FK)
    

    I’m torn between using an Id for the Translation and a UniqueName (Key) – Id is probably marginally beneficial in terms of performance but using a Meaningful Unique key makes development easier (eg Set something to WelcomeText and let the system look up the translation is far cleaner than setting it to 16)

    Also, Keys are more portable if you’re adding/deleting/duplicating translations, especially across multiple database instances (different environments).

    In Response to your comments on the other answer, for when no language is selected, you could add weightings in the Language table itself or associate a LanguageId with the user account. You could also (if you want to be clever) attempt to guess based on the location of the user (but ofc you should always give them the option to change – nothing more annoying than being redirected to google.es when you’re in Spain).

    In any case, your method to do the translation should do this for you – eg your app just makes a GetTranslation('WelcomeText') – Your GetTranslation() method can then look up the appropriate language to use and get the correct string.

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

Sidebar

Related Questions

I am trying to create a Multi-Language WPF program that will load it's languages
I have a multi-threaded C++ program that deadlocks in some rare cases. The problem
I'm creating a variant of a chess-like program that needs to simultaneously generate and
I'd like to program a buffer that is time constrained. It means that I
I'd like to program a wrapper around printf(...) . My first attempt was: sub
I want my program to work sort of like Team Player . Multi mice,
I've written a multi-threaded Java program to solve an embarrassingly parallel problem such that
I would like to write a small piece of program that launches threads, consumes
I have a PyQt program used to visualize some python objects. I would like
Looks like I have messed up with Java Threads/OS Threads and Interpreted language. Before

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.