SGershon Posted November 14, 2004 Posted November 14, 2004 The Default Language option is setting the Default_Language configuration in the DataBase. But... When opening the Store, the Default lLanguage is not working. I think that the default language is set here: $this->language = $this->catalog_languages[DEFAULT_LANGUAGE]; this is from includes\classes\language.php. In includes\classes\language.php, it looks like... if ( (tep_not_null($language)) && (isset($this->catalog_languages[$language])) ) ? ?{ ? ? ? ?$this->language = $this->catalog_languages[$language]; ? ?} else { ? ? ? ?$this->language = $this->catalog_languages[DEFAULT_LANGUAGE]; } ...is the responsible for knowing what is the default language. * Can be that "(tep_not_null($language))" and "(isset($this->catalog_languages[$language]))" are true, at the first use of the page? My DEFAULT_LANGUAGE setting in the DB is: configuration_id - configuration_title - configuration_key 85 - Default Language - DEFAULT_LANGUAGE configuration_value - configuration_description es - Default Language configuration_group_id - sort_order - last_modified 6 - 0 - NULL date_added - use_function - set_function 2003-07-17 10:29:22 - NULL - NULL Is there something missing? Maybe use_function or set_function? In resume: Why the default is not defaulting? If at first you don't succeed, you must be a programmer. Tip Posted: Languageless Reviews
SGershon Posted November 21, 2004 Author Posted November 21, 2004 Meanwhile, I just set the server to look for index.html before looking for index.php, and there I just redirect to mysite.com/indx.php?language=espanol But... this is not the best to do it, i know. How can I force and ensure that the default language do default? Where can me my error / mistake? SGershon If at first you don't succeed, you must be a programmer. Tip Posted: Languageless Reviews
Recommended Posts
Archived
This topic is now archived and is closed to further replies.