Changing the language of the web application in java -
can 1 tell me how change language of web application in java without using properties file.
for instance if browser's language in french web application text has change french.
the standard way use accept-language
header. instance:
accept-language:en-us,en;q=0.8,fr-fr;q=0.6,fr;
usually build application on top of framework (e.g. spring) and/or technology (e.g. jsf) takes care of problem , gives correct locale
of user.
based on locale
, retrieve correct version of given message. typically, have multiple properties file (one each language). managed framework or technologie using.
actually, definitively have tell more application if want precise answer.
Comments
Post a Comment