Update javadoc for setLoginLanguage to reflect the current behaviour. Modify setLoginLanguage to be consistent with the new getLoginLanguage behaviour.

(transplanted from bad1d69fac940f36e2627247e250579afbd04f2f)
This commit is contained in:
Heng Sin Low 2011-08-22 23:07:39 +08:00
parent ffc1bbf925
commit 411eedc398
1 changed files with 4 additions and 4 deletions

View File

@ -401,8 +401,8 @@ public class Language implements Serializable
/**************************************************************************
* Get Default Login Language
* @return default Language
* Get Current Login Language
* @return login language
*/
public static Language getLoginLanguage ()
{
@ -411,14 +411,14 @@ public class Language implements Serializable
} // getLanguage
/**
* Set Default Login Language
* Set Current Login Language
* @param language language
*/
public static void setLoginLanguage (Language language)
{
if (language != null)
{
s_loginLanguage = language;
Env.setContext(Env.getCtx(), Env.LANGUAGE, language.getAD_Language());
log.config(s_loginLanguage.toString());
}
} // setLanguage