internationalizing text - Mailing list pgsql-general

From will trillich
Subject internationalizing text
Date
Msg-id 20010322220649.B15195@mail.serensoft.com
Whole thread Raw
List pgsql-general
so who's got a clever implementation of cross-linguistic texts?

    create table something (
        id serial,
        yadayada int4,
        whatever date,
        mumble float8,

        en varchar(50), -- english
        es varchar(50), -- espanol
        fr varchar(50), -- francais
        de varchar(50), -- deutsch

        ...
    );

or maybe

    create table something (
        id serial,
        yadayada int4,
        whatever date,
        mumble float8,
        ...
    );
    create table something_text (
        id int4 references something(id),
        lang varchar(5), -- language code 'en-us','it','jp'...
        descr varchar(50)
    );

anybody done something like this? is there another concept or are
these two the whole ball-o-wax? pro's and con's?

--
It is always hazardous to ask "Why?" in science, but it is often
interesting to do so just the same.
        -- Isaac Asimov, 'The Genetic Code'

will@serensoft.com
http://newbieDoc.sourceforge.net/ -- we need your brain!
http://www.dontUthink.com/ -- your brain needs us!

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: How to inspect blocked queries
Next
From: Tom Lane
Date:
Subject: Re: Updates on Views?