Opened 11 years ago

Closed 11 years ago

#148 closed bug (fixed)

language selection on BW pages broken

Reported by: philipp Owned by: jaliste
Priority: critical Milestone: 0.1-outreach-release
Component: BW General Keywords: hot

Description (last modified by micha)

the language selection by the flags is no longer working on BW pages. > somehow just the english-language-selection seems to be broken at some point.

There is also a problem with the transaltion of your profile which might or might not be related and some maybe related mess in the words table of the db has been reported as well (jean-yves).

Change History (5)

comment:1 Changed 11 years ago by philipp

  • version changed from alpha to test

same problem in test

comment:2 Changed 11 years ago by micha

  • Description modified (diff)

I updated the bug-report. The language-selection is just broken for "English". I can switch to any other language but not to english.

comment:3 Changed 11 years ago by philipp

  • Owner set to jaliste

comment:4 Changed 11 years ago by jaliste

  • Status changed from new to assigned

comment:5 Changed 11 years ago by jaliste

  • Resolution set to fixed
  • Status changed from assigned to closed

There were two bugs here. First, there were code asking whether the variable $_SESSIONIdLanguage? is empty which is true when this is 0, but the id of English is actually 0, so we should ask !isset instead :)

Second, code in rox didn't take care of the lang sessions variables in old bw, so when you changed the lang in rox it didn't changed in bw. Just unseting IdLanguage? in rox code just forces bw code to call SwitchNewLang? with the lang session variable(which is actually modified by the rox code) so this makes the magic.

Fixed in [3267].

Note: See TracTickets for help on using tickets.