Page 1 of 1
Website Translation
Posted: Sat Nov 29, 2003 7:04 am
by leebo
Hi
Is there any php software which you can buy which will display your website into a different language ?
so for english version it would be mysite.com
for the spanish version it would be mysite.com/spanish
Which would have a script/software that will display in spanish.
Any ideas ?
Posted: Sat Nov 29, 2003 9:27 am
by ghost007
Posted: Sat Nov 29, 2003 1:27 pm
by m3mn0n
That's not php software you can buy and put on your site, ghost. But that is probably the best bet for translating entire sites.
There is also the option to do what I've seen done in some major open source apps (I think even this forum). Most words displayed on the site will be within a translate("text text text", "language") type of function. Then language can be controlled by a users preference in the database, or a global variable within a config file.
eg.
Code: Select all
<?php
$lang = array();
$lang[0] = "en";
$lang[1] = "de";
$lang[2] = "es";
// etc..
translate("Welcome", "$lang[1]");
?>
the translate function would then query a database and pull up the transation for that specific word.
This is limited to menus and other 1 or 2 word phrases. I've never seen it done on a full scale (huge paragraphs) before.
Posted: Tue Dec 02, 2003 11:24 am
by leebo
Thanks but I found a script which converts it automatically on the fly.
Posted: Tue Dec 02, 2003 11:54 am
by mrvanjohnson
Care to share... What script did you find others might appreicate knowing

Posted: Tue Dec 02, 2003 12:48 pm
by ghost007
yes plz share this unique piece of super coding. I think I can quit my job once I will have registered this

Posted: Tue Dec 02, 2003 1:16 pm
by JayBird
check out this class from PHP Classes -
http://www.phpclasses.org/browse.html/package/1389.html
This class is meant to translate text between different languages using Altavista Babelfish remote service via the Web.
Just pass to the class a text string in any of the supported idioms and obtain it translated to another supported idiom.
Currently, the supported idioms are: English, Chinese, French, German, Italian, Japanese, Korean, Portuguese and Russian
Quite useful
Mark
Posted: Wed Dec 03, 2003 12:19 am
by leebo
Ok OK steady on lads.
http://www.rohitab.com/cgiscripts/translingo.html
one file to config thats it - your site is multilingual
If you choose different engines when making the link for the translation ( all explained in the files ) there is one which has no banner.
OH and its free!!!!!
Posted: Wed Dec 03, 2003 12:23 pm
by ghost007
nice it can be usefull but will use other tranlation services which are payable if you want to use them on commercial website. And once you pay they provide you with the necessary code.
"you should have look at the Terms of Use of the translation service"
thx for the info but will have to keep my job
siech
Posted: Thu Dec 04, 2003 3:00 am
by markbeadle
I have heard that Gettext extension may be used although I have not yet tried it. Any experiences welcomed.
Posted: Fri Dec 05, 2003 12:27 pm
by Derfel Cadarn
..and that shows!!
My god, those translations are worse than what babelguppy comes up with! Or IS it babalguppy?