RE: Automatic language selection

John Jesen <[email protected]>
Newsgroups gmane.comp.web.oscommerce.installation
Message-ID <783ac6e4a7cb9c13e10856d3e0aac663@osCommerce-Forums>
This message was sent from: Installation and Configuration
http://forums.oscommerce.com/viewtopic.php?p=227451#227451
----------------------------------------------------------------

Yes, I have this code in application_top.php at the mentioned location, but further down it says:
[code]// set the language
  if (!tep_session_is_registered('language') || isset($HTTP_GET_VARS['language'])) {
    if (!tep_session_is_registered('language')) {
      tep_session_register('language');
      tep_session_register('languages_id');
    }

    include(DIR_WS_CLASSES . 'language.php');
    $lng = new language();

    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();
    }

    $language = $lng->language['directory'];
    $languages_id = $lng->language['id'];
  }[/code]

I guess it is here that language - maybe (I can't look throgh the code) - are being set.

But if yes, could you then tell how to name my languages i OSC? Thanks.

John
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.