Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Warning

If your language file contains non-ASCII characters, you'll need to use the Native-to-ASCII Converter included with the Sun JVM. Otherwise, it may not display properly in your browser or SVN.

Selecting CSS per language/locale

Code Block
languagejava

<%
    String cssFileName = "mylogin.css"; // default
    Locale locale = request.getLocale();

    if (locale != null && StringUtils.isNotBlank(locale.getLanguage())){
       String languageCssFileName = "mylogin_" + locale.getLanguage() + ".css";
       // Maybe test here if languageCssFile exists...
       cssFileName = languageCssFileName;
    }


%>