NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Language Translation

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 09-12-2003, 05:22 AM THREAD STARTER               #1 (permalink)
New Member
Join Date: Apr 2003
Posts: 5
monfu is an unknown quantity at this point
 



Language Translation


Hello All,

I am designing a dynamic webpage in English language, and I wish to have it translated to various languages on the fly. What I wish to do is for example, enter some text in the back-end console in English, and then this is translated dynamically in various languages on my web page, in the various language sections. Is this possible? Does a component exist for this? Or do I have to do it all manually?

Thanks for your help and time
__________________
http://www.johannmontfort.com
monfu is offline  
Old 09-12-2003, 07:24 AM   #2 (permalink)
NamePros Member
Join Date: Jul 2003
Posts: 118
web guru is an unknown quantity at this point
 



I think I know what your on about, but your going about it wronge. Instead of just putting in static text use variables. Then put all your variables with there corresponing phrases into seperate files for each lanuage. eg. english.php, french.php. Then include which ever lanuage file correspons to the users lanuage at the top of each page.

PHP Code:
//lanuage file
-----------------

<?php
$s123 
"hello";
$s124 "How are you?";
?>
-----------------

//any page on your site
-----------------

<?php
include($selected_lan.'.php');
?>

<p>
<?php
//prints hello in whatever lanuage has been selected
    
echo $s123;
?>
</p>
<p>
<?php
//prints How are you? in whatever lanuage has been selected
   
echo $s124;
?>
</p>
-------------------
The only way you can get your text translated properly is to get someone who knows the lanuage you need it translated to and get them to translate it for you.
????: NamePros.com http://www.namepros.com/programming/15234-language-translation.html

hope this is of some help to you!
web guru is offline  
Old 09-12-2003, 07:55 AM THREAD STARTER               #3 (permalink)
New Member
Join Date: Apr 2003
Posts: 5
monfu is an unknown quantity at this point
 



Yeah I got that

Thanks mate!
__________________
http://www.johannmontfort.com
monfu is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 06:49 PM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger