Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Firefox not showing correct language


Sliper

Recommended Posts

Posted

I?m having big trouble getting firefox showing my default language which is Finnish. It shows English instead. IE has no problems what so ever handling this.

Tried to search for similiar topics but didn?t find any answers solving this problem.

 

Anyone knows how to fix this?

Posted

Yes, it?s located at /catalog/includes/languages/finnish and it?s set as default in admin.

 

Firefox shows also the admin area in english, but IE doesn?t

I deleted "English" from localization-languages in admin area, but it didn?t help.

This is really weird I think... havent tried what Opera does, but it?s pretty osolete browser.

Posted

I wasn't asking if Finnish was installed as a language in osCommerce. I was asking if the Finnish language pack was installed in the Firefox browser?

 

Vger

Posted

Sorry, read it too fast...

You solved my problem, thanks! I didn?t know that you had to install different languages in FF (noob) :rolleyes:

 

This present a problem though, since I didn?t know this I?m quite sure 99% of the expected customers doesn?t that either, although I don?t think that they use FF either. Is there any way of having FF tell/ask the customer about the language pack not installed? Or do you know how to or if it?s possible to have OsC. recognize that he/she is using Firefox and the promt a popup where I can put info about the language?

Posted

I am having 100% the same problem ;) Now the question is, how to DISABLE the option that osCommerce selects language by browser?! I don't have English language ready so I need to be able to force every browser with any language to use Finnish! How to do that?

Posted
I am having 100% the same problem  ;) Now the question is, how to DISABLE the option that osCommerce selects language by browser?! I don't have English language ready so I need to be able to force every browser with any language to use Finnish! How to do that?

 

in application_top.php

 

change this :

 

if (isset($HTTP_GET_VARS['language']) && tep_not_null($HTTP_GET_VARS['language'])) {

$lng->set_language($HTTP_GET_VARS['language']);

} else {

$lng->get_browser_language();

}

 

to this :

 

if (isset($HTTP_GET_VARS['language']) && tep_not_null($HTTP_GET_VARS['language'])) {

$lng->set_language($HTTP_GET_VARS['language']);

} else {

// $lng->get_browser_language();

$lng->set_language('fi');

}

Treasurer MFC

  • 3 months later...
Posted
in application_top.php

 

change this :

 

if (isset($HTTP_GET_VARS['language']) && tep_not_null($HTTP_GET_VARS['language'])) {

$lng->set_language($HTTP_GET_VARS['language']);

} else {

$lng->get_browser_language();

}

 

to this :

 

if (isset($HTTP_GET_VARS['language']) && tep_not_null($HTTP_GET_VARS['language'])) {

$lng->set_language($HTTP_GET_VARS['language']);

} else {

// $lng->get_browser_language();

$lng->set_language('fi');

}

 

Thanks! I've searched the forums for a solution to change default language for far too long time.

I just can't understand why you would want to set the language based on the browser's settings.

 

Again - thanks!

Posted
Thanks! I've searched the forums for a solution to change default language for far too long time.

I just can't understand why you would want to set the language based on the browser's settings.

 

Again - thanks!

 

because that is what that setting is there for.

Treasurer MFC

Posted
because that is what that setting is there for.

 

Eh - say what? What I mean is that for most users it would be quite annoying that the system sets the language to something else than the "default language" specified in the admin panel. But I'm probably missing out on something here.

Posted
Eh - say what? What I mean is that for most users it would be quite annoying that the system sets the language to something else than the "default language" specified in the admin panel. But I'm probably missing out on something here.

 

yes, you are missing the point of the meaning of "default"

Treasurer MFC

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...