wt.taglib.util
Class LocaleTag

java.lang.Object
  extended by TagSupport
      extended by wt.taglib.util.LocaleTag

public class LocaleTag
extends TagSupport

JSP LocaleTag parses the HTTP Accept-Language header as sent by the HTTP client and returns the most appropriate Windchill supported Locale. If no matching locale is found, a locale will be created based on the configured Windchill server locale. For example, if the Windchill Server is German, and the browser language list does not have a supported locale, then a German locale will be returned. Tag arguments may be used to override the settings within the browser which produce the Accept-Language header.

Example:
<%@ taglib uri="http://www.windchill.com/taglib/util" prefix="util" %>
<img src="title_<util:locale>.gif">


For English-US: <img src="title_en_US.gif">
For French-Canadian: <img src="title_fr.gif">
For German: <img src="title_de.gif">

Tag Attributes
language optional Set language code for desired locale, which will either be the empty string or a lowercase ISO 639 code. In the absence of this argument, the Accept-Language header will be used in the retrieval of an acceptible locale.

country optional Set the country/region code for desired locale, which will either be the empty string or an uppercase ISO 3166 2-letter code.

variant optional Set the variant code for desired locale.



Supported API: true
Extendable: false

Since:
Windchill R6.0
See Also:
LanguagePreference

Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait