Information on Pages Available in Multiple Languages

Information on Pages Available in Multiple Languages


Several documents of our web site, are available in different languages (mostly Italian and English).

This document (available in Italian as well) explains how to set the preferred language in your browser.

Setting the Preferred Language in your Browser

To set the default language in your browser you have to set a variable that gets passed to the web server. How this is done depends on the browser you are using.

lynx
You can either edit the preferred_language variable in your .lynxrc or set it using the 'O' command while in lynx.
netscape 3.x
Add
*httpAcceptLanguage: [preferred_language string]
to the Netscape app-defaults file or ~/.Xresources
netscape 4.x
Use
Edit -> Preferences -> Navigator -> Languages
Make sure you select the language from the choices. A number of people reported problems because they typed in the language by hand.
Mozilla
Edit -> Preferences -> Navigator -> Languages
W3 (emacs based web browser)
(setq url-mime-language-string  "preferred_language=it; q=1.0, en; q=0.5")
or using the custom package (assuming URL version p4.0pre.14):
Hypermedia -> URL -> Mime -> Mime Language String...
IE ??
View -> Internet Options -> General/Languages
IE 5
Tools (or Extras) -> Internet Options -> Languages
Opera
Windows: File -> Preferences -> Languages
Linux: File -> Preferences -> Document -> Languages
iCab
Edit -> Preferences -> Browser -> Fonts,Languages
W3M
Options (o) -> Other Behavior -> Accept-Language

What should I set the variable to?

Not all documents of our web site may be available into your preferred language, it is a good idea to set your preferred language variable to allow English or Italian as a backups. For example, if you are a native French speaker using lynx, you would want the following line in your .lynxrc

preferred_language=it; q=1.0, en; q=0.5
This tells the server that you would like the Italian version of the document if available, otherwise use the English one.

For more information about setting the preferred_language variable see the Apache documentation on content negotiation.


If you have any comments or questions about the Computer Engineering Home Page,
send an e-mail to Webmaster@CE.UniPR.IT