Pages: [1]   Go Down
Send this topic | Print
Author Topic: translating site into multiple languages?  (Read 514 times)
paulspage
Trash PC Reviver
Authority Member
****
Offline Offline

Posts: 962


I'm slowly teaching myself website design for fun!


WWW
« on: October 01, 2008, 02:12:35 AM »

i seen pages on some sites have this where it basically shows to click here to see site in a choice of languages. anyone can recommane me a good one that they have used. i would like to have one that does Polish at least. i tried to translate my site myself but simce my Polish sux i gave up. but there are sites that do this automatically by reading your page and doing a translation. i know its not perfect but it saves some time everytime the site gets updated with new text.
Logged

since Oct 18 2007
random userbar about me below



Dropbox file share and backup free 2.3 gigs -> https://www.getdropbox.com/referrals/NTEyMjczNDA5
general vegitable
please ask (by pm duh!) before you yim me
Official 110mb Guru
********
Online Online

Posts: 6028


do NOT pm me asking for help


WWW
« Reply #1 on: October 01, 2008, 02:18:24 AM »

google have a translator, with a bit of php knowledge you can translate your site using google into many languages
Logged




paulspage
Trash PC Reviver
Authority Member
****
Offline Offline

Posts: 962


I'm slowly teaching myself website design for fun!


WWW
« Reply #2 on: October 01, 2008, 02:41:09 AM »

hehe and i have no php knowledge at all. LOL
Logged

since Oct 18 2007
random userbar about me below



Dropbox file share and backup free 2.3 gigs -> https://www.getdropbox.com/referrals/NTEyMjczNDA5
general vegitable
please ask (by pm duh!) before you yim me
Official 110mb Guru
********
Online Online

Posts: 6028


do NOT pm me asking for help


WWW
« Reply #3 on: October 01, 2008, 02:49:26 AM »

well you would need to learn it
Logged




inp o҉rtb
The Gangsta
Global Moderator
Official 110mb Guru
*****
Offline Offline

Posts: 15635


experimental theologian


WWW
« Reply #4 on: October 01, 2008, 02:55:51 AM »

Well, you do not need to know lots of PHP; but it would certainly help if you knew some, in that it would be easier for knowledgeable individuals to help you wink

As for the Google translator thingy: you can use cURL to send queries and download responses. You'd need to know what format Google receives queries in, send your translation request in the same format, and output the response into your page. Preferably, you'd be using a caching mechanism to speed up page loads and reduce bandwidth usasge (you can use my unicache script if you want, which is floating around somewhere).
Logged

Hi! I’m a signature virus! Add me to your signature to help me spread.
spam me: ispamspot@gmail.com

blog | my work @ deviantART | Imagine-ng image editor
thefluffball
Knock. Knock.
Loyal 110MB Member
*******
Offline Offline

Posts: 2314


I came, I saw, I strutted.


WWW
« Reply #5 on: October 01, 2008, 06:09:16 AM »

I use this one on my site: http://www.altavista.com/help/free/free_searchbox_transl
Logged

paulspage
Trash PC Reviver
Authority Member
****
Offline Offline

Posts: 962


I'm slowly teaching myself website design for fun!


WWW
« Reply #6 on: October 03, 2008, 02:51:57 AM »

does anyone know of a site that does english to polish?
Logged

since Oct 18 2007
random userbar about me below



Dropbox file share and backup free 2.3 gigs -> https://www.getdropbox.com/referrals/NTEyMjczNDA5
iNDECiSiVE
iNDECiSiVE DUDE
Super Authority member
******
Online Online

Posts: 1562


yay for my new shoes


WWW
« Reply #7 on: October 03, 2008, 02:57:57 AM »

you could do it like this:
(dirty and quick-coded way, nto tested)

en.php
Code:
<?php
$hello
="Hello";
$welcome="welcome to our site";
$enjoy="Enjoy!";
?>

nl.php
Code:
<?php
$hello
="Hallo";
$welcome="welkom op onze site";
$enjoy="Veel plezier!";
?>


index.php:
Code:
<?php
$lang
=$_GET['lang'];
switch(
$lang)
{
 case
'en':
require
"en.php";
break;
 case
'nl':
require
"nl.php";
break;
default:
require
"en.php";
break;
}
echo
$hello."<br>";

echo
$welcome."<br>";

echo
$enjoy."<br>";
?>


you'd call index.php liek this:
sub.domain.com/index.php?lang=en

for example. should do the job Smiley
« Last Edit: October 03, 2008, 03:37:48 AM by joeyvanhummel » Logged

http://melchiormphilips.com/MellieAndJoey/
There will soon be new energy drink reviews! (After Sony vegas decides to work again), we've recorded 5 new episodes! And we found one that doesn't look like piss!
paulspage
Trash PC Reviver
Authority Member
****
Offline Offline

Posts: 962


I'm slowly teaching myself website design for fun!


WWW
« Reply #8 on: October 03, 2008, 03:17:52 AM »

i dont have a problem with coding my site in 2 languages. i did that before but it was horrible as my polish is really bad. thats why i rather have a automated way of doing it and i want "on the fly" translating. it will be less maintenance and people will still be able to read and understand the site somewhat ok.
Logged

since Oct 18 2007
random userbar about me below



Dropbox file share and backup free 2.3 gigs -> https://www.getdropbox.com/referrals/NTEyMjczNDA5
Pages: [1]   Go Up
Send this topic | Print
Jump to: