Hi guys
I have a question, how would I do the following?
- I want to display a dropdown (html) with a list of language (english, french, etc.), ISO 639-1 codes. I want to display the language based on the native language (e.g., on the combo box, the "french" must say "francais" for the french speaking people to understand).
How I would do it? i,e. This is how I did it in MySQL
CREATE TABLE IF NOT EXISTS LANGUAGE
(
LANGUAGE_CODE VARCHAR(3) NOT NULL --ISO 3 digit digit code
,LANGUAGE_NAME_ENGLISH TEXT NOT NULL
,LANGUAGE_NAME_NATIVE TEXT NOT NULL
) DEFAULT CHARACTER SET utf8;
The only problem, I cannot populate "LANGUAGE_NAME_NATIVE" since 1) I cannot get all native languages, and 2) I don't have languages in UTF8 format.
Is there any better way to do this?
Basically, what I'm accenuating is this: Should I have a language table for all the language list of all respective language; should I have i18n configuration files (properties file) for all languages list in their respective language or should I use a language translator?
PS I'm using MVC like Spring MVC and Struts.