Servlets - Internationalization
Earlier than we proceed, let me provide an explanation for three essential terms − Internationalization (i18n) − this means allowing a web web site to provide extraordinary variations of content translated into the vacationer's language or nationality Localization (l10n) − this indicates including sources to an internet web page to conform to a specific geographical or cultural region. locale − this is a selected cultural or geographical vicinity. additionally it is called a language image followed by a rustic image that's separated by an underscore. as an instance "en_US" represents English locale for US. There are range of items which need to be taken care whilst building up a international internet site. This academic might no longer give you whole element on this but it would provide you with a terrific example on how you can offer your net page in one of a kind languages to net network by way of differentiating their vicinity i.e. locale. A servlet can pickup appropriate model of the website based on the requester's locale and offer suitable website model according to the nearby language, subculture and requirements. Following is the approach of request item which returns Locale object.