| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: One True i18n Table
Kenneth Downs <firstinit.lastname_at_lastnameplusfam.net> wrote in message news:<6keokc.sif.ln_at_mercury.downsfam.net>...
> --CELKO-- wrote:
>
> >>> I am wondering how others have approached this. <<
> >
> > If we are talking about the same thing, use SQLSTATE and attach
> > various languages to each code in a single table:
> >
> > CREATE TABLE ErrorMessages
> > (err_msg_code CHAR(5) NOT NULL PRIMARY KEY,
> > english_err CHAR (25) NOT NULL ...
> > french_err NCHAR (25) NOT NULL ..
> > ...
> > esperanto NCHAR (25) NOT NULL ..);
>
> ouch. The above requires a structure change to add a language.
Yes, and an application change to the SQL which will look something like:
SELECT CASE :my_language
WHEN 'English' THEN english_err
WHEN 'French' THEN french_err
...
END
![]() |
![]() |