|
Posted by Ian B on 10/30/20 11:33
I have done this in the past (see www.jasww.com or any other jas site -
they are all really the same site).
We did it with messages in a database (it's CF, but the principle is
the same).
You could use resource files and include the language of choice -
syncing is a problem here
You can write the site in English and go and get a translation
e.g.
echo translate("Welcome");
where translate()...
returns English immediately if language reqd is English
looks up translation in file/db and returns it if found
if translation not found, writes to a log and returns the English
A couple of things to remember, whichever way you do it:
The site needs a liquid layout - message strings will vary in length
Have long messages, eevn if you are sure you can split them up, don't
do it.
Trying to create a message (even a paragraph) from bits is
hazardous. Translating each word in a sentence one by one
obviouslygives pathetic results. even sentence by sentence gives
problems.
Ian
Navigation:
[Reply to this message]
|