IDEMPIERE-489 Make use of AD_Language configuration

This commit is contained in:
Elaine Tan 2013-03-20 20:25:06 +08:00
parent ee485727f7
commit 30af38e5b1
1 changed files with 25 additions and 18 deletions

View File

@ -148,6 +148,12 @@ public class Language implements Serializable
Locale locale = new Locale(language, country);
if (DB.isConnected()) {
MLanguage dblang = MLanguage.get(Env.getCtx(), langInfo);
if (dblang == null)
{
ll = new Language (lang, lang, locale);
}
else
{
Boolean decimalPoint = null;
if (dblang.getIsDecimalPoint() != null)
decimalPoint = "Y".equals(dblang.getIsDecimalPoint());
@ -168,6 +174,7 @@ public class Language implements Serializable
idxReplace = 0;
s_baseLanguage = ll;
}
}
} else {
ll = new Language (lang, lang, locale);
}