WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-24-2008, 10:06 AM
WebProWorld Veteran
 

Join Date: Jul 2003
Location: Spain
Posts: 331
computergenius RepRank 1
Default Javascript in French

I have a website which works in English and French. Both versions have the headers set correctly, and the text changes because it is a selected from a different field in the database.

But in MY browser, on a Javascript pop up, I still see [OK] and [Cancel] in the buttons. Do I need to do something, or is this a product of the visitors browser settings?

...and I have just noticed, we still have [Browse] on the image file upload button.
Reply With Quote
  #2 (permalink)  
Old 01-24-2008, 11:25 AM
Dubbya's Avatar
WebProWorld 1,000+ Club
 

Join Date: Nov 2006
Location: Steinbach, Manitoba, Canada
Posts: 1,194
Dubbya RepRank 3Dubbya RepRank 3
Default Re: Javascript in French

You can't change the button text but if the client's regional settings and preferences are set to French then the button captions in javascript confirm, alert and file upload buttons should appear in French.

If you've changed the regional settings and you're still seeing them in English, go back and click the "Advanced" tab. Make sure you've changed the "Language for non-Unicode Programs" to French.

You may be prompted to get out your Windows CD and you'll have to restart your machine for the changes to take effect.

Hope that helps.
__________________
Printer ink, inkjet & toner cartridges in Canada
"Price-wise printing supplies"
inkjetOasis.ca
Reply With Quote
  #3 (permalink)  
Old 01-24-2008, 03:38 PM
WebProWorld Veteran
 

Join Date: Jul 2003
Location: Spain
Posts: 331
computergenius RepRank 1
Default Re: Javascript in French

Quote:
Originally Posted by Dubbya View Post
if the client's regional settings and preferences are set to French
Do you mean the Windows - Control Panel settings?

That's fine, if that's the way it works. I am on XP, I can't change the language, only the date display, currency display etc. - I understand that it is possible if you are on Vista.

So it appears that I don't have to do anything myself, THAT bit is done for me.

Thanks for the input
__________________
Pete Clark
Sunny Southern Spain - http://hotcosta.com/Andalucia.Spain
Reply With Quote
  #4 (permalink)  
Old 01-24-2008, 05:20 PM
Dubbya's Avatar
WebProWorld 1,000+ Club
 

Join Date: Nov 2006
Location: Steinbach, Manitoba, Canada
Posts: 1,194
Dubbya RepRank 3Dubbya RepRank 3
Default Re: Javascript in French

Right, Regional Settings in the control panel and in the IE browser itself.

If you've already changed your regional settings, then all that remains to be done would be to check your language preferences the browser.

In IE:

Tools/Internet Options

Under the "General" tab, click "Languages".

For French, you'd see: "French (France) [fr]" in the list. If it's not there, add it.

You'll have to restart your computer for the changes to take effect.
__________________
Printer ink, inkjet & toner cartridges in Canada
"Price-wise printing supplies"
inkjetOasis.ca
Reply With Quote
  #5 (permalink)  
Old 02-05-2008, 09:13 AM
calculator's Avatar
WebProWorld New Member
 

Join Date: Feb 2008
Posts: 7
calculator RepRank 0
Default Re: Javascript in French

I think this is rather to do with your windows languange settings, i.e. you cannot simply switch the whole windows language pack if you don't have the windows multilanguage disc. This isn't to do with regional settings.

The 'windows language pack' will change everything related to windows (start button becomes Démarrer, control panel > panneau de configuration etc...)
Reply With Quote
  #6 (permalink)  
Old 02-05-2008, 03:00 PM
WebProWorld Veteran
 

Join Date: Jul 2003
Location: Spain
Posts: 331
computergenius RepRank 1
Default Re: Javascript in French

Yes, the first part of the post was about Windows language, which can't be changed under XP, but can under Vista. And the settings that Dubbya mentioned, don't actually change the language, but change things like date layout, or number display - as in UK 1.00 is european 1,00. But he did answer the gist of the question.

The second part of his suggestion, doesn't actually change the language of the display, but, if the page offers multiple languages (mine doesn't, the pages do not automatically change language), then this sets the language that the page displays in.
__________________
Pete Clark
Sunny Southern Spain - http://hotcosta.com/Andalucia.Spain
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum


Thread Tools
Display Modes

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
AJAX and javascript calling javascript krnl Web Programming Discussion Forum 14 11-18-2007 10:00 AM
Do English or French Ads Appear On A French Website? send2paul Google AdWords/Google AdSense 0 07-09-2005 06:19 AM
No Google, please, we're French WPW_Feedbot Search Engine Optimization Forum 0 04-29-2005 10:00 AM
French SEO a.rypinski Search Engine Optimization Forum 0 01-07-2005 06:12 PM
Apologies to the French simonm Breakroom (General: Any Topic) 11 12-07-2003 12:48 PM


Search Engine Optimization by vBSEO 3.2.0