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:
Roy Wetherall
2013-09-26 02:44:15 +00:00
parent 44c1fef683
commit edde3b929b
5 changed files with 29 additions and 3 deletions

View File

@@ -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();