dbTalk Databases Forums  

Translation from textfields

comp.databases.postgresql comp.databases.postgresql


Discuss Translation from textfields in the comp.databases.postgresql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Andreas Kraftl
 
Posts: n/a

Default Translation from textfields - 06-02-2008 , 12:40 AM






Hello,

first, sorry for a little bit off topic.

We plan a database and need also a translation from some text.
We have textfields in multiple tables. Some with one, two words, some
with more text.

What is "best practice" for translations into different languages, where
the languages are not fixed, and some text never would be translated.

I know solutions like copy the whole database to database_de, database_fr
and so on.
An other solution is same practice, but with tables like table_de,
table_fr and so on.
The last one, I know is to make a translation table where all textfields
are inside and linked to the tablefield.

For example:
tblid | textid
1 | 100

langid | textid | lang | text
1 | 100 | en | Hello
2 | 100 | de | Hallo

Any other ideas?

Thanks
Andreas
--
Kraftl EDV - Dienstleistungen
Linuxschulungen, Weblösungen, Linuxlösungen
http://www.kraftl.at

Reply With Quote
  #2  
Old   
Laurenz Albe
 
Posts: n/a

Default Re: Translation from textfields - 06-04-2008 , 01:32 AM






Andreas Kraftl <andreas.kraftl (AT) kraftl (DOT) at> wrote:
Quote:
What is "best practice" for translations into different languages, where
the languages are not fixed, and some text never would be translated.

The last one, I know is to make a translation table where all textfields
are inside and linked to the tablefield.

For example:
tblid | textid
1 | 100

langid | textid | lang | text
1 | 100 | en | Hello
2 | 100 | de | Hallo
I think that this is a good way to do it.
You can have a default language (say, langid 1).

Make sure to have a good index (e.g., primary key on textid and langid,
in that order).

Yours,
Laurenz Albe


Reply With Quote
  #3  
Old   
Laurenz Albe
 
Posts: n/a

Default Re: Translation from textfields - 06-04-2008 , 01:32 AM



Andreas Kraftl <andreas.kraftl (AT) kraftl (DOT) at> wrote:
Quote:
What is "best practice" for translations into different languages, where
the languages are not fixed, and some text never would be translated.

The last one, I know is to make a translation table where all textfields
are inside and linked to the tablefield.

For example:
tblid | textid
1 | 100

langid | textid | lang | text
1 | 100 | en | Hello
2 | 100 | de | Hallo
I think that this is a good way to do it.
You can have a default language (say, langid 1).

Make sure to have a good index (e.g., primary key on textid and langid,
in that order).

Yours,
Laurenz Albe


Reply With Quote
  #4  
Old   
Laurenz Albe
 
Posts: n/a

Default Re: Translation from textfields - 06-04-2008 , 01:32 AM



Andreas Kraftl <andreas.kraftl (AT) kraftl (DOT) at> wrote:
Quote:
What is "best practice" for translations into different languages, where
the languages are not fixed, and some text never would be translated.

The last one, I know is to make a translation table where all textfields
are inside and linked to the tablefield.

For example:
tblid | textid
1 | 100

langid | textid | lang | text
1 | 100 | en | Hello
2 | 100 | de | Hallo
I think that this is a good way to do it.
You can have a default language (say, langid 1).

Make sure to have a good index (e.g., primary key on textid and langid,
in that order).

Yours,
Laurenz Albe


Reply With Quote
  #5  
Old   
Laurenz Albe
 
Posts: n/a

Default Re: Translation from textfields - 06-04-2008 , 01:32 AM



Andreas Kraftl <andreas.kraftl (AT) kraftl (DOT) at> wrote:
Quote:
What is "best practice" for translations into different languages, where
the languages are not fixed, and some text never would be translated.

The last one, I know is to make a translation table where all textfields
are inside and linked to the tablefield.

For example:
tblid | textid
1 | 100

langid | textid | lang | text
1 | 100 | en | Hello
2 | 100 | de | Hallo
I think that this is a good way to do it.
You can have a default language (say, langid 1).

Make sure to have a good index (e.g., primary key on textid and langid,
in that order).

Yours,
Laurenz Albe


Reply With Quote
  #6  
Old   
Laurenz Albe
 
Posts: n/a

Default Re: Translation from textfields - 06-04-2008 , 01:32 AM



Andreas Kraftl <andreas.kraftl (AT) kraftl (DOT) at> wrote:
Quote:
What is "best practice" for translations into different languages, where
the languages are not fixed, and some text never would be translated.

The last one, I know is to make a translation table where all textfields
are inside and linked to the tablefield.

For example:
tblid | textid
1 | 100

langid | textid | lang | text
1 | 100 | en | Hello
2 | 100 | de | Hallo
I think that this is a good way to do it.
You can have a default language (say, langid 1).

Make sure to have a good index (e.g., primary key on textid and langid,
in that order).

Yours,
Laurenz Albe


Reply With Quote
  #7  
Old   
Laurenz Albe
 
Posts: n/a

Default Re: Translation from textfields - 06-04-2008 , 01:32 AM



Andreas Kraftl <andreas.kraftl (AT) kraftl (DOT) at> wrote:
Quote:
What is "best practice" for translations into different languages, where
the languages are not fixed, and some text never would be translated.

The last one, I know is to make a translation table where all textfields
are inside and linked to the tablefield.

For example:
tblid | textid
1 | 100

langid | textid | lang | text
1 | 100 | en | Hello
2 | 100 | de | Hallo
I think that this is a good way to do it.
You can have a default language (say, langid 1).

Make sure to have a good index (e.g., primary key on textid and langid,
in that order).

Yours,
Laurenz Albe


Reply With Quote
  #8  
Old   
Laurenz Albe
 
Posts: n/a

Default Re: Translation from textfields - 06-04-2008 , 01:32 AM



Andreas Kraftl <andreas.kraftl (AT) kraftl (DOT) at> wrote:
Quote:
What is "best practice" for translations into different languages, where
the languages are not fixed, and some text never would be translated.

The last one, I know is to make a translation table where all textfields
are inside and linked to the tablefield.

For example:
tblid | textid
1 | 100

langid | textid | lang | text
1 | 100 | en | Hello
2 | 100 | de | Hallo
I think that this is a good way to do it.
You can have a default language (say, langid 1).

Make sure to have a good index (e.g., primary key on textid and langid,
in that order).

Yours,
Laurenz Albe


Reply With Quote
  #9  
Old   
Laurenz Albe
 
Posts: n/a

Default Re: Translation from textfields - 06-04-2008 , 01:32 AM



Andreas Kraftl <andreas.kraftl (AT) kraftl (DOT) at> wrote:
Quote:
What is "best practice" for translations into different languages, where
the languages are not fixed, and some text never would be translated.

The last one, I know is to make a translation table where all textfields
are inside and linked to the tablefield.

For example:
tblid | textid
1 | 100

langid | textid | lang | text
1 | 100 | en | Hello
2 | 100 | de | Hallo
I think that this is a good way to do it.
You can have a default language (say, langid 1).

Make sure to have a good index (e.g., primary key on textid and langid,
in that order).

Yours,
Laurenz Albe


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.