2 languages in 1 db [message #120452] |
Thu, 19 May 2005 17:22 |
wejder
Messages: 7 Registered: May 2005 Location: Warsaw
|
Junior Member |
|
|
how implement polish language in french existing database to work in 2 languages ?
i'd like to take a note that in polish and english are local characters
[Updated on: Thu, 19 May 2005 17:24] Report message to a moderator
|
|
|
|
Re: 2 languages in 1 db [message #121078 is a reply to message #120704] |
Wed, 25 May 2005 17:14 |
andrew again
Messages: 2577 Registered: March 2000
|
Senior Member |
|
|
Maybe a better way to store multiple lang strings is to have a table with 3 cols e.g.
create table x1(msg_id varchar2(12), msg_lang varchar2(4), msg_long varchar2(80));
the PK is on (msg_id, msg_lang )
insert into x1 values('GREET', 'EN', 'English greeting');
insert into x1 values('GREET', 'FR', 'French greeting');
select msg_long into v_msg from x1 where msg_id = 'GREET' and msg_lang = 'EN';
I would also use UTF8 database characterset because it is a superset and will handle anything.
|
|
|