I would like to show the current locale in bigger bold font, ideally it shouldn't be a hyperlink, but that's not critical (anyway it should have its own style class). And I would like to show other locales in smaller font.
The attached diff adds style classes for the links in the locale switching block: 'current-locale' and 'locale'.
The correspondent piece of my style.css follows:

a.locale {                                                                                         
  font-size: 12px;                                                                                 
}                                                                                                  
a.current-locale {                                                                                 
  color: #000;                                                                                     
  font-size: 14px;                                                                                 
  font-weight: bold;                                                                               
}
CommentFileSizeAuthor
localizer.module.patch1.32 KByasenp

Comments

Roberto Gerola’s picture

Good suggestion. Many thanks.

I have integrated your patch with some little changes.

Defined two class : 'currentuilocale' for the selected item and 'uilocale' for other items.
Active class remains as fallback :

        if($setcurrentactive && $lang==localizer_get_uilocale()) {
          $links[$lang]= l("$flag$separator$langname_title", 'switchuilocale/'.$lang, array('title' => $langname, 'class' => 'active'), $destination , NULL, FALSE, TRUE);
        }
        else {
          $links[$lang]= l("$flag$separator$langname_title", 'switchuilocale/'.$lang, array('title' => $langname), $destination , NULL, FALSE, TRUE);
        }
Roberto Gerola’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)