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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:49:05+00:00 2026-06-11T06:49:05+00:00

I cannot imagine being the first one encountering this problem but I still have

  • 0

I cannot imagine being the first one encountering this problem but I still have not found a satisfying answer.

My PHP/MySQL/CodeIgniter application uses a MySQL database with a bunch of lookup tables for things like statusses and discrete choices. Those tables have the generic form:

table XXXXXX
id: int (PK) 
description: varchar(100)

The website will be available in two languages, English and Thai. We will use a resource bundle for the static content, but what to do with the lookup values, which will in most cases shown in dropdown boxes?

My first idea is to use 2 separate description fields: description_en and description_th, and selecting the right one according to the locale stored in the session.

My co-worker tends to have all i18n values in the resource bundle, which will make the description field in the tables redundant. A table with only one PK field is nonense which would mean that the corresponding FK field will be “degraded” to an ordinary lookup key.
Or still use the lookup table in conjugation with the resource bundle, and leave the English description as a administrator reference?

The lookup tables will be mutable by the administrators only, not by the end users.

I want to make an informed decision about this, so any suggestions are welcome!

  • 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-11T06:49:07+00:00Added an answer on June 11, 2026 at 6:49 am

    Not much feedback but sometimes just only posting a problem forces you to think about it on a deeper level…

    I have used a solution which is pretty straightforward, we keep using the language files also for the lookup values. The only modificaion is that the lookup tables do not contain the actual descriptions but the lookup keys for the language files. BEcause all developsers are fluenn in English, we shoose to use English abbrevations for the description field, which is renamed to description_key.

    SO I consider this issue as solved.

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

Sidebar

Related Questions

I have seen this question posed regarding Silverlight 2 but I have not seen
I cannot imagine how this is anything other than a bug, but since I
I have rather simple, I imagine, question about CRTP , but I cannot seem
Dictionary cannot have two values with same key. please tell which logic/algorithm being used
I have just started learning XNA. This is my first program that I am
Getting contradictory messages about that, hope they're not. I cannot imagine support for it
I cannot think about a proper question title to describe the problem. Hopefully the
Ok this may seem stupid and I have googled extensively using various different keywords
In asp.net, we have uploaded a .jpeg file and saved this as bitmap image
Imagine I have the following elements: +------------------+ | | | +----------------+ | | |

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.