CHANGE: enable translation on filter names from a custom package
This commit is contained in:
parent
844f180111
commit
f7338da297
1 changed files with 7 additions and 1 deletions
|
@ -812,7 +812,13 @@ public class PoiFiltersHelper {
|
|||
String filterId = query.getString(0);
|
||||
boolean deleted = query.getInt(3) == TRUE_INT;
|
||||
if (map.containsKey(filterId) && (includeDeleted || !deleted)) {
|
||||
PoiUIFilter filter = new PoiUIFilter(query.getString(1), filterId,
|
||||
String filterName = query.getString(1);
|
||||
String translation = application.getPoiTypes().getPoiTranslation(filterName);
|
||||
if(translation != null)
|
||||
{
|
||||
filterName = translation;
|
||||
}
|
||||
PoiUIFilter filter = new PoiUIFilter(filterName, filterId,
|
||||
map.get(filterId), application);
|
||||
filter.setSavedFilterByName(query.getString(2));
|
||||
filter.setDeleted(deleted);
|
||||
|
|
Loading…
Reference in a new issue