IDEMPIERE-2062 Add methods for MRefList for getting translation with specific language (and not ctx)
This commit is contained in:
parent
bcc4bdbc54
commit
83108c0070
|
@ -44,8 +44,7 @@ public class MRefList extends X_AD_Ref_List
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private static final long serialVersionUID = 2210328198547927123L;
|
private static final long serialVersionUID = -3612793187620297377L;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get Reference List
|
* Get Reference List
|
||||||
|
@ -130,6 +129,7 @@ public class MRefList extends X_AD_Ref_List
|
||||||
return retValue;
|
return retValue;
|
||||||
} // getListName
|
} // getListName
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get Reference List Value Description (cached)
|
* Get Reference List Value Description (cached)
|
||||||
* @param ctx context
|
* @param ctx context
|
||||||
|
@ -140,6 +140,18 @@ public class MRefList extends X_AD_Ref_List
|
||||||
public static String getListDescription (Properties ctx, String ListName, String Value)
|
public static String getListDescription (Properties ctx, String ListName, String Value)
|
||||||
{
|
{
|
||||||
String AD_Language = Env.getAD_Language(ctx);
|
String AD_Language = Env.getAD_Language(ctx);
|
||||||
|
return getListDescription (AD_Language, ListName, Value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get Reference List Value Description (cached)
|
||||||
|
* @param Language
|
||||||
|
* @param ListName reference
|
||||||
|
* @param Value value
|
||||||
|
* @return List or null
|
||||||
|
*/
|
||||||
|
public static String getListDescription (String AD_Language, String ListName, String Value)
|
||||||
|
{
|
||||||
String key = AD_Language + "_" + ListName + "_" + Value;
|
String key = AD_Language + "_" + ListName + "_" + Value;
|
||||||
String retValue = s_cache.get(key);
|
String retValue = s_cache.get(key);
|
||||||
if (retValue != null)
|
if (retValue != null)
|
||||||
|
|
Loading…
Reference in New Issue