Style classes were available only for switch by hostname, I included for else also.
In if($setcurrentactive && $lang==localizer_get_uilocale()) removed $setcurrentactive because it was always FALSE for me so class currentuilocale wasn't shown.
Maybe it is needed for something else but I can't figure out what for.
I have also removed active in class because I think that if someone will want a different style than it will create at least a.currentuilocale and maybe a.uilocale.
I don't like a.active class because it changes color of a link in default (Garland) theme.
It could be a good idea to remove link (tekst stays but it is not link) for current locale but it's too much messing with the code for my skill level.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | localizer_module_1.patch | 1.85 KB | Wuk |
| localizer_module_0.patch | 1.84 KB | Wuk |
Comments
Comment #1
Wuk commentedI just find out (I looked more carefully) that all menus are using a.active so it's better to have active as backup.
Here is patch with a.active included.
Comment #2
Wuk commentedThis one is correct. In previous post I manually changed patch file and got errors.
Comment #3
Roberto Gerola commentedThanks.
Integrated in the latest cvs version of localizer.module file
Comment #4
(not verified) commented