Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problem with languages


Goaul

Recommended Posts

Posted

Hi there,

 

I installed osCommerce v2.2 RC2 and added some languages in "\includes\languages\", also added the flags from admin panel and set other(not eng) language as default.

But the problem is that the default language still is eng., i press the flag on index.php it changes, but if i choose some other menu, the eng lng are back and the rest too.

So what ever language i choose it will translate the page im on now, also have no idea why the defoult lng what i set from admin panel doesnt work.

 

Any encountered this problem or know the solution? Hoping to get some reply.

 

 

G

Posted

The initial language displayed is determined by the default browser language.

 

Why the language once it is changed is not retained ........ anyone?

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Posted

But it should stay for one session. If i just choose other menu on page, the lng should stay from what i choose not reset do default.

If default lng is taken from browser language, for what is the menu in admin panel for setting default lng?

Posted

ah found solution:

 

This is what you do:

 

1. Go to catalog/includes/application_top.php

 

2. Replace this line:

 

$lng->get_browser_language();

 

With

 

//$lng->get_browser_language();

 

3. Save and upload.

 

4.Your done.

 

 

////

This one allows to use default language, but if i choose other language and going to some menu it shows again default lng, not the one i choosed.

 

whats wrong, how that can be fixed?

  • 4 months later...
Posted

ah found solution:

 

This is what you do:

 

1. Go to catalog/includes/application_top.php

 

2. Replace this line:

 

$lng->get_browser_language();

 

With

 

//$lng->get_browser_language();

 

3. Save and upload.

 

4.Your done.

 

 

////

This one allows to use default language, but if i choose other language and going to some menu it shows again default lng, not the one i choosed.

 

whats wrong, how that can be fixed?

thanks bro.

problem fix

Archived

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

×
×
  • Create New...