Hi all..
I´m working in a new project, and using an idea that might be usefull here or somebodyelse.
’how to store text in a DB field in multiple languajes’ may be the title...
I need:
Multiple languages contents in same field .
maybe Poor for indexing, but really god for development.
At last, indexing and search will be done with crawlers in the posted pages, not in the database directly.
i don´t know how much languages in the future.
I only want to store /have data for languajes used. Not empty fields.
I develop:
a parser to store/retrieve data from de DB:
some objects/functions to generate/manipulate input fields to modify the data dependig of the active languages, some to save the data from those input fields... and some to retrieve the data to publish in the web page via scripting.
( in my case VBSCRPIT/JSCRIPT objects mix in ASP ), but portable to php or other SS script.
The Data:
{"UK":"Some text","ES":"Algo de texto","DE":"Not know German"}
YES, it is JSON.
is stored in A field. not multiple fields, not multiple tables, not multiple nothing.
Pros:
flexibility!
Cons:
Some server side additional functions.
DB normalization
BUT IT WORKS.
hope you can share what do you think about that.