Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
language coverter help
Old 08-25-2007, 06:57 AM language coverter help
Kushal's Avatar
Experienced Talker

Posts: 48
Trades: 0
Hello guys,
I need some help about getting a URL from address bar.

I have more then 500 pages in my website, now i am adding a language converter tool powered by freetranslation.com. My menu system works as <--include virtual (call the menu.html from another location) and all of my 500 pages call this menu.html file from another location. I want to add a language converter tool in menu.html. Now my problem is I don’t know how to get the address from the address bar so that this tool will convert from all 500 pages.

Here is a code:

<p><a href="http://fets3.freetranslation.com/?sequence=core&url=www.myurl.com&language=English% 2FSpanish" target="_top">Translate this page into Spanish

I have to get the address bar location in the &url=www.myurl.com field above so that visitors can convert all the page of my site where ever they are.

Can any one tell me how to do this?
Is there any other idea more then getting the location from address bar?
Kushal is offline
Reply With Quote
View Public Profile Visit Kushal's homepage!
 
 
Register now for full access!
Old 08-25-2007, 07:49 AM Re: language coverter help
Experienced Talker

Posts: 33
Trades: 0
Do a google on "ip2country" and see if that helps get you further. You didn't specify the language you're using, so hard to tell you which specific direction to go in, but all web languages/environments include a way to get the server to cough up the client's IP address. Use something like ip2country to map that to a country, which then can let you choose the best translation (although for a country like Switzerland, that may present a challenge, since there's no one right answer).
__________________

Please login or register to view this content. Registration is FREE
- FREE Directory of Freelance Consultants - Are You In It?
FreelanceMan is offline
Reply With Quote
View Public Profile
 
Old 08-25-2007, 07:55 AM Re: language coverter help
Kushal's Avatar
Experienced Talker

Posts: 48
Trades: 0
i use php and simple html.
I think there must be a javascript to get a url from the address bar

Last edited by Kushal; 08-25-2007 at 08:03 AM..
Kushal is offline
Reply With Quote
View Public Profile Visit Kushal's homepage!
 
Old 08-25-2007, 11:09 AM Re: language coverter help
Experienced Talker

Posts: 33
Trades: 0
In php, look up the $_SERVER variable. That'll get you the IP address. Then use IP2Country to get the country. If you have a little $$, look at maxmind.com, which has software to turn an IP address into a city location.
__________________

Please login or register to view this content. Registration is FREE
- FREE Directory of Freelance Consultants - Are You In It?
FreelanceMan is offline
Reply With Quote
View Public Profile
 
Old 08-25-2007, 12:05 PM Re: language coverter help
Kushal's Avatar
Experienced Talker

Posts: 48
Trades: 0
thanks
Kushal is offline
Reply With Quote
View Public Profile Visit Kushal's homepage!
 
Reply     « Reply to language coverter help
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.15047 seconds with 12 queries