#66 css file depending on language


Is it possible to select a different css file depending on the language a user or admin selects during login? I think that this is improving the interface because the amount of caracters depend on the language, for instance in my language dutch many of the tabpositions are to small so that words are spread over two lines in stead of one line in the englisch language. It would be nice to have the oppurtunity to change a css file depending on the choice of language.


  • Christian Boltz

    Christian Boltz - 2010-02-18

    Thinking about it, there are two options:
    a) $CONF['theme_css'] = css/@LANG@.css
    b) a class in the body tag, like <body class="lang-en"> - could then be used as ".lang-en table {...}" in the CSS file

    IMHO b) would be the better way because most styles are shared between all languages, but I'm open for feedback.

  • Christian Boltz

    Christian Boltz - 2010-09-30
    • status: open --> closed-fixed
  • Christian Boltz

    Christian Boltz - 2010-09-30

    Commited to SVN trunk r872.

    Postfixadmin >= 2.4 will come with <body class="lang-XY">. See my previous comment, option b) for the details.


Log in to post a comment.