Search found 33 matches

by bongobongo
Mon Dec 15, 2008 12:37 pm
Forum: [locked] CMSMS MLE fork
Topic: Language detection?
Replies: 50
Views: 21317

Re: Language detection?

Here is a solution with less code: Changes in read, and no use of array_reverse: function language_user_setting( $hls ) { $browser_langs=array(); $t_hls = transform_language_arr($hls); $useUsort = 1; $qualityArr = array(); // Check if we have $_SERVER['HTTP_ACCEPT_LANGUAGE'] set and // it no longer ...
by bongobongo
Mon Dec 15, 2008 8:57 am
Forum: [locked] CMSMS MLE fork
Topic: Language detection?
Replies: 50
Views: 21317

Re: Language detection?

Hi.... Tested chrome this morning using 6 languages... and then failed.... as you said it would. There is probably a more elegant solution but this seem to works: 1. Comment out the array_reverse line. 2. Replace the usort line with this code: echo '<hr>Before:<br />'; foreach($browser_langs as $lan...
by bongobongo
Sun Dec 14, 2008 11:03 pm
Forum: [locked] CMSMS MLE fork
Topic: Language detection?
Replies: 50
Views: 21317

Re: Language detection?

If need someone else to test something I can assist tomorrow.
Just send me an example of the languages as defined in Language prefs, and browser used and I can do some testing tomorrow.

Now it is 00:12 here in Norway..... getting to sleepy her now...

Regards
by bongobongo
Sun Dec 14, 2008 10:51 pm
Forum: [locked] CMSMS MLE fork
Topic: Language detection?
Replies: 50
Views: 21317

Re: Language detection?

Is it q value related?
by bongobongo
Sun Dec 14, 2008 7:53 pm
Forum: [locked] CMSMS MLE fork
Topic: SOLVED Having problem outputting frontend translation for you_are_here etc..
Replies: 2
Views: 1966

SOLVED Having problem outputting frontend translation for you_are_here etc..

Hi.. Have read Tips & Tricks  #7 in this thread: http://forum.cmsmadesimple.org/index.php/topic,15318.0.html And are using in the template for the page, this: {* Start Breadcrumbs *}    <div class="breadcrumbs">         {breadcrumbs starttext='$mle_translation.you_are_here' root='Home'...
by bongobongo
Sun Dec 14, 2008 5:28 pm
Forum: [locked] CMSMS MLE fork
Topic: Language detection?
Replies: 50
Views: 21317

Re: Language detection?

Cool  :)

Problem solved
by bongobongo
Sun Dec 14, 2008 7:14 am
Forum: [locked] CMSMS MLE fork
Topic: Language detection?
Replies: 50
Views: 21317

Re: Language detection?

usort is necessary because in RFC is NOT MANDATORY that Accept-Language is in exact language order (q factor is in for THIS). If tomorrow FF go out with 4.0 with Accept-Language in reverse order, this IS CORRECT FOR RFC and THEN WHAT I DO? Thanks for that feedback, I did not know that the order of ...
by bongobongo
Sat Dec 13, 2008 11:12 pm
Forum: Announcements
Topic: CMSMS 2.0 (say what now?!)
Replies: 264
Views: 252766

Re: CMSMS 2.0 (say what now?!)

Hi there. I'm currently evaluating the latest MLE version.... and have found much to like  :) Very intuitive admin UI as well as how the admin of Extensions works.... One thing I miss though is to be able to set up different page structure for different languages. Will 2.0 have support for different...
by bongobongo
Sat Dec 13, 2008 6:17 pm
Forum: [locked] CMSMS MLE fork
Topic: Language detection?
Replies: 50
Views: 21317

Re: Language detection?

It is interesting how you manage to say so much without saying anything about why the usort line is there at all. The line causes bugs sometime. That is a fact. Not because of an error in the function or whatever. I know you have not created that function..... (bahhh). But some developer has decided...
by bongobongo
Sat Dec 13, 2008 3:00 pm
Forum: Modules/Add-Ons
Topic: Question about Form Builder and fetching related submitted data from database.
Replies: 0
Views: 867

Question about Form Builder and fetching related submitted data from database.

Hi. Just installed and tested the excellent Form Builder.... Really cool stuff and easy to use. One challenge remain though. When the form is submitted it stores the form data in the database and send an email.... good so far. But where/how do I read the data that was stored in the database but with...
by bongobongo
Sat Dec 13, 2008 2:30 pm
Forum: [locked] CMSMS MLE fork
Topic: Language detection?
Replies: 50
Views: 21317

Re: Language detection?

Hi. Having this line: usort($browser_langs, "language_accept_order"); in this file: mle/function.mle.php    and in this function: language_user_setting will SOMETIMES cause cmsmadesimple to select a wrong language . So I have also exemplified in my previous post. This bug will not be VISIB...
by bongobongo
Sat Dec 13, 2008 8:39 am
Forum: [locked] CMSMS MLE fork
Topic: Possible bug found in script regarding Browser Language detection
Replies: 3
Views: 2364

Re: Possible bug found in script regarding Browser Language detection

Okay.... In function.mle.php, if you make some changes before and after usort line (in function language_user_setting()  ) to this: echo '<hr>Before:<br />'; foreach($browser_langs as $lang) echo $lang[0] .'-'. $lang[1].'<br />'; usort($browser_langs, "language_accept_order"); echo '<hr>Af...
by bongobongo
Sat Dec 13, 2008 8:18 am
Forum: [locked] CMSMS MLE fork
Topic: Language detection?
Replies: 50
Views: 21317

Re: Language detection?

Okay.... ********************************************* Using your code from post #28 I get this output in IE7: ********************************************* Before: no-1 en--1 After: en--1 no-1 Which gives wrong result and wrong language is displayed. ******************************* Now lets try IE6...
by bongobongo
Fri Dec 12, 2008 11:51 pm
Forum: [locked] CMSMS MLE fork
Topic: Language detection?
Replies: 50
Views: 21317

Re: Language detection?

Could you show me the code you used to show ther order before and after?

Then I will test that code here tomorrow, now it is a little to late

Regards

Go to advanced search