473,385 Members | 1,342 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Language Script

hello,

does any know of any php script which can change the language of the
webpage on the fly, i have seen many websites which have several
language options to choose from

thanks
Jul 17 '05 #1
3 2591
Vikram M Gautam wrote:
does any know of any php script which can change the language of the
webpage on the fly,
Look at the Accept-Language header the user sends you and serve
content in her preferred language. Apache will do this for you with
mod_negotiation. See

"Apache Content Negotiation",
http://httpd.apache.org/docs/content-negotiation.html
i have seen many websites which have several language options to
choose from


Ah, are you talking about the user manually selecting her preferred
language?

--
Jock
Jul 17 '05 #2
in**@buyselloffers.com (Vikram M Gautam) wrote in message news:<4e**************************@posting.google. com>...
hello,

does any know of any php script which can change the language of the
webpage on the fly, i have seen many websites which have several
language options to choose from


Perhaps my post on this subject may help you
<http://groups.google.com/groups?selm=abc4d8b8.0404012138.40881f74%40posting .google.com>
--
| Just another PHP saint |
Email: rrjanbiah-at-Y!com
Jul 17 '05 #3
While the city slept, Vikram M Gautam <in**@buyselloffers.com> feverishly
typed:
hello,

does any know of any php script which can change the language of the
webpage on the fly, i have seen many websites which have several
language options to choose from


As an aside, whichever of the methods you adopt to present the language on
the site, make sure that you have the text translated by a professional (or
at least a very competent speaker of the language), and not by an automated
service such as Google's language tools.

As an example I took your original post to Google's language tools (and
modified some spelling and punctuation to at least give it a fighting
chance). I translated the following from English to French: "does anyone
know of any php script which can change the language of the webpage on the
fly? i have seen many websites which have several language options to
choose from"

Which gave the following: "est-ce que n'importe qui sait d'un manuscrit de
php qui peut changer la langue du webpage en marche? j'ai vu beaucoup de
websites dont ayez plusieurs options de langue à choisir"

Which I then translated back to English, giving the following: "does no
matter who know of a manuscript of php which can change the language of the
webpage moving? I saw many websites of which have several options of
language to choose"

Cheers,
Nige

--
Nigel Moss.

Email address is not valid. ni***@nigenetDOG.org.uk. Take the dog out!
http://www.nigenet.org.uk | Boycott E$$O!! http://www.stopesso.com
In the land of the blind, the one-eyed man is very, very busy!
Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Rune Strand | last post by:
What would it take to create a Firefox extension that enables Python as a script language in the browser - just like Javascript? Is it at all possible? Are the hundred good reasons not to bother? ...
1
by: Robert Scheer | last post by:
Hi. Does the language version change the way browsers read a script? <Script Language='Javascript'></Script> <Script Language='Javascript1.2'></Script> When the language attribute is only...
7
by: Erwin Moller | last post by:
Hi group, I am a bit cconfused with the different tags I encounter to start a script. I used to use: language="Javascript" Nowadays I use: type="text/javascript" I did see some...
7
by: RFS666 | last post by:
Hello, I would like to use variables with a type in jscript.NET. I declare them as follows: var x : double = 5.03; This doesn't work in my script, that I write to the page in codebehind with...
5
by: Placek | last post by:
Hello Are the 3 script tags below all client-side javascript? If not, what are they? If they are client-side javascript, why the different syntax (ie. <SCRIPT>, <SCRIPT...
0
by: PHPBob | last post by:
Hello, I am trying to run Languid language guesser - see http://languid.cantbedone.org/ I am not a perl programmer, and I have no idea how to get this script running. I am running perl scripts...
1
by: mouton | last post by:
Hello, I am a beginner. My website has 2 pages: one in English and one in French. I would like non English people to be directed to the English page. There I would like to display a...
3
Banfa
by: Banfa | last post by:
The project I work on has a bespoke hardware platform which is designed to go into a variety of different situations. However to keep things simple we really want the software for the platform to...
4
by: Erwin Moller | last post by:
Hi, I was surprised to see that my fav. database offers PHP as a scripting language Procedural language (eg stored procedures). Untill now I always used PgPL/SQL for that. Offered by command...
8
by: howa | last post by:
Just found a funny things.. in HTML4's dtd, http://www.w3.org/TR/html4/strict.dtd language is not valid, i.e. <!ELEMENT SCRIPT - - %Script; -- script statements --> <!ATTLIST...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.