mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-988: I18N id's not being looked up
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@56008 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -45,6 +45,7 @@ import org.alfresco.util.ParameterCheck;
|
||||
import org.json.JSONArray;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
import org.springframework.extensions.surf.util.I18NUtil;
|
||||
|
||||
/**
|
||||
* Records management search service implementation
|
||||
@@ -125,6 +126,11 @@ public class RecordsManagementSearchServiceImpl implements RecordsManagementSear
|
||||
throw new AlfrescoRuntimeException("Unable to load report details because name has not been specified. \n" + reportsJSON);
|
||||
}
|
||||
String name = report.getString(SavedSearchDetails.NAME);
|
||||
String translatedName = I18NUtil.getMessage(name);
|
||||
if (translatedName != null)
|
||||
{
|
||||
name = translatedName;
|
||||
}
|
||||
|
||||
// Get the query
|
||||
if (report.has(SavedSearchDetails.SEARCH) == false)
|
||||
@@ -138,6 +144,11 @@ public class RecordsManagementSearchServiceImpl implements RecordsManagementSear
|
||||
if (report.has(SavedSearchDetails.DESCRIPTION) == true)
|
||||
{
|
||||
description = report.getString(SavedSearchDetails.DESCRIPTION);
|
||||
String translatedDescription = I18NUtil.getMessage(description);
|
||||
if (translatedDescription != null)
|
||||
{
|
||||
description = translatedDescription;
|
||||
}
|
||||
}
|
||||
|
||||
RecordsManagementSearchParameters searchParameters = new RecordsManagementSearchParameters();
|
||||
|
Reference in New Issue
Block a user