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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T09:01:25+00:00 2026-06-04T09:01:25+00:00

I need to create a large scale DB Model for a web application that

  • 0

I need to create a large scale DB Model for a web application that will be multilingual.

One doubt that I’ve every time I think on how to do it is how I can resolve having multiple translations for a field. A case example.

The table for language levels, that administrators can edit from the backend, can have multiple items like: basic, advance, fluent, mattern… In the near future probably it will be one more type. The admin goes to the backend and add a new level, it will sort it in the right position.. but how I handle all the translations for the final users?

Another problem with internationalization of a database is that probably for user studies can differ from USA to UK to DE… in every country they will have their levels (that probably it will be equivalent to another but finally, different). And what about billing?

How you model this in a big scale?

  • 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-04T09:01:28+00:00Added an answer on June 4, 2026 at 9:01 am

    Here is the way I would design the database:

    Data model

    Visualization by DB Designer Fork

    The i18n table only contains a PK, so that any table just has to reference this PK to internationalize a field. The table translation is then in charge of linking this generic ID with the correct list of translations.

    locale.id_locale is a VARCHAR(5) to manage both of en and en_US ISO syntaxes.

    currency.id_currency is a CHAR(3) to manage the ISO 4217 syntax.

    You can find two examples: page and newsletter. Both of these admin-managed entites need to internationalize their fields, respectively title/description and subject/content.

    Here is an example query:

    select
      t_subject.tx_translation as subject,
      t_content.tx_translation as content
    
    from newsletter n
    
    -- join for subject
    inner join translation t_subject
      on t_subject.id_i18n = n.i18n_subject
    
    -- join for content
    inner join translation t_content
      on t_content.id_i18n = n.i18n_content
    
    inner join locale l
    
      -- condition for subject
      on l.id_locale = t_subject.id_locale
    
      -- condition for content
      and l.id_locale = t_content.id_locale
    
    -- locale condition
    where l.id_locale = 'en_GB'
    
      -- other conditions
      and n.id_newsletter = 1
    

    Note that this is a normalized data model. If you have a huge dataset, maybe you could think about denormalizing it to optimize your queries. You can also play with indexes to improve the queries performance (in some DB, foreign keys are automatically indexed, e.g. MySQL/InnoDB).

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

Sidebar

Related Questions

I want to create a fairly large-scale Flex web application that has a similar
For a large web application I'm building, I need to create an extensive user
I work for a company that develops a very large scale data based application.
I'm working on a large scale performance critical asp web application with a pretty
I am wondering how divide large scale application into projects. Does I need to
I need to create a demo version of an existing large application consisting of
Need to create a custom DNS name server using C which will check against
I'm developing a large scale application for iOS 5 using ARC in xcode. The
I need to create a large table of contents for an HTML book but
I have a very large binary file and I need to create separate files

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.