Closed (duplicate)
Project:
Language Switcher Dropdown
Version:
6.x-1.4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Mar 2011 at 05:33 UTC
Updated:
2 Apr 2011 at 16:15 UTC
When I went to look at http://taatparya.com/, I noticed that the dropdown had (escaped) HTML code in it, which I guessed to have a connection with me having disabled JavaScript on sites per default. And correctly enough, as I enabled JavaScript, the dropdown was properly replaced with the jQuery one introduced in #846662: Flags inside the dropdown list not outside.
So either the HTML needs to be removed when there's no JavaScript, or only inserted when there is. (This might also be related to #1111506: Language icon being shown twice in the Language Switcher dropdown.)
Comments
Comment #1
mohammed j. razemA temp solution is to disable the "Language switcher block" in Language Icons settings page.
Please try the above solution and report if that works with you.
Comment #2
rhoerbe commentedreverting to 6.x-1.2 worked for me. I did not understand the javascript problem. I did not change anything in the setup when I upgraded, and Javascript is enabled.
Comment #3
mohammed j. razem#1113272: Two Flags showing up in dropdown
Comment #4
Freso commented@rhoerbe:
What worked for you? Did you see the problem (ie., having escaped HTML in the drop down when JavaScript was turned off) before reverting to 6.x-1.2? As I noted in the initial comment, the issue seems likely to have been introduced with the fall-back drop down that was introduced in 6.x-1.4. Or are you talking about the dual flags issue? If the latter is the case, you should report that in the other issue - not this one.
Comment #5
Freso commented@Mohammed:
I can't really try that work-around, as it's not my site. :) However, that option is also gone in the 7.x-1.x versions, so if your solution is based on doing that, you'll probably have to think of something else, when you're going to port Language switcher dropdown to D7.
Also, how is this a duplicate of the other issue?
Comment #6
mohammed j. razem@Fresco:
It's because of the "Language switcher block" options being checked, it returns the flags along with the link title. Therefore, in version 6.x-1.5, Language switcher dropdown now forces Language icons with
variable_set('languageicons_show_block', 0);since this is the conflicting issue with Language icons.It's a duplicate because both are caused from the returned img tag along the link title from Language icons which causes two icons to appear with the JS widget, and and escaped HTML with the regular select widget when fallback happens.