Forum Moderators: phranque

Message Too Old, No Replies

Multilanguage php (english/italian)

Problem with italian

         

theemaxo

10:35 am on Jan 10, 2006 (gmt 0)

10+ Year Member



Hi,
I have to write a website in two languages: english and italian. To do that I would like to use the multilanguage function of Apache.

I write a file .htaccess:

Options +MultiViews
AddLanguage en .en
AddLanguage it .it
DefaultLanguage it
LanguagePriority it en

Than I write two files: index.php.it and index.php.en
If I set the language priority of my browser to the english everything works fine, and the file index.php.en is loaded. But if I set the language preferences to the italian I'm not able to see the correct page: the browser try to download the file index.php.it.

I tryed with other languages (french and german) and it works. It seemes that the problem is only for the italian language.

The strange thing is that in the file apache-mime.types I found this
line:
audio/x-it IT it
I changed it with:
application/x-php IT it
but still want work!

Anyone could help me?

Max-B
--

[edited by: Woz at 11:27 am (utc) on Jan. 10, 2006]
[edit reason] No SIGs please, see TOS#13 [/edit]

jdMorgan

4:25 pm on Jan 11, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The proper MIME-type for an HTML page is text/html. This is true regardless of whether the html page is a static html page or whether it is produced dynamically by a php or a cgi script.

If you set the MIME-type to application/<anything>, then the browser will download it.

Jim