IDEMPIERE-489 Make use of AD_Language configuration
This commit is contained in:
parent
ee485727f7
commit
30af38e5b1
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue