Druide Posted March 18, 2003 Share Posted March 18, 2003 Everytime when someone with their browser language other then english visits and it exists in my (not finished translations) it will set that language in my admin while i am working in english it jumps to Espanol, German and Dutch etc... THAT's no fun to work with, anyone can tell me an explanation & solution for that ? Is it smart to hardcode this, which i don't like to do with a dynamic language like PHP I dont have automatic language selection installed, so thats not the case. Any help would be appreciated, i am using CVS 2.2 from end of February Robert We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;) Link to comment Share on other sites More sharing options...
Harald Ponce de Leon Posted March 18, 2003 Share Posted March 18, 2003 Everytime when someone with their browser language other then english visits and it exists in my (not finished translations) it will set that language in my admin while i am working in english it jumps to Espanol, German and Dutch etc... Update your version of admin/whos_online.php. Some fixes were implemented to prevent such a thing from happening. You can see the difference between the version you have and the latest here: http://cvs.sf.net/cgi-bin/viewcvs.cgi/tep/...whos_online.php I guess this was fixed at around v1.26. Happy fixing! , osCommerce Link to comment Share on other sites More sharing options...
Druide Posted March 18, 2003 Author Share Posted March 18, 2003 much appreciated Harald for your time & effort I'll give it a try Robert We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;) Link to comment Share on other sites More sharing options...
Druide Posted March 18, 2003 Author Share Posted March 18, 2003 Update your version of admin/whos_online.php. Some fixes were implemented to prevent such a thing from happening. You can see the difference between the version you have and the latest here: http://cvs.sf.net/cgi-bin/viewcvs.cgi/tep/...whos_online.php I guess this was fixed at around v1.26. Happy fixing! NOPE the file is identical i hardcoded the catalog/includes/application_top.php file for the moment old code: $language = $lng->language['directory']; $languages_id = $lng->language['id']; new code: $language = 'english'; $languages_id = '1'; but now i dont have a language selection anymore :( will it help to register the language data in my admin area ? I haven't checked it out yet but that's the only way it could work from memory Robert We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;) Link to comment Share on other sites More sharing options...
Harald Ponce de Leon Posted March 18, 2003 Share Posted March 18, 2003 NOPE the file is identical To which version? 1.26 or 1.30? , osCommerce Link to comment Share on other sites More sharing options...
Druide Posted March 18, 2003 Author Share Posted March 18, 2003 Harald: i've got the 1.30 version I have made a fix already thanks for your help How ? added my IP to configuration table, with a check like: if it's me then keep it english. Also added a DEV function for updating languages. If you have installed multiple languages then the Osc automaticly selects the browser language if available. There is no room for development from admin side to set a certain language (or more) ON/OFF for the visitors. It would be nice to make an extra field in the table languages like 'status' with off, on, dev Just an :idea: Robert We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.