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:
@@ -195,7 +195,7 @@ subprojects {
|
||||
rename { String filename -> warFile }
|
||||
}
|
||||
|
||||
task explodeDeps(dependsOn: fetchWarFile) << {
|
||||
task explodeDeps << {
|
||||
|
||||
explodedDir = file(explodedDepsDir)
|
||||
explodedLibDir = file(explodedLibsDir)
|
||||
|
@@ -11,4 +11,18 @@ rm.role.powerUser=Records Management Power User
|
||||
rm.role.securityOfficer=Records Management Security Officer
|
||||
rm.role.recordsManager=Records Management Records Manager
|
||||
rm.role.administrator=Records Management Administrator
|
||||
rm.role.all=All Records Management Roles
|
||||
rm.role.all=All Records Management Roles
|
||||
|
||||
## Default searches
|
||||
rm.savedsearch.vitalRecordsName=Vital Records Due For Review
|
||||
rm.savedsearch.vitalRecordsDesc=All records currently due for review.
|
||||
rm.savedsearch.incompleteRecordsName=Incomplete Records
|
||||
rm.savedsearch.incompleteRecordsDesc=All incomplete records.
|
||||
rm.savedsearch.cutoffRecordsName=Records Eligible For Cutoff
|
||||
rm.savedsearch.cutoffRecordsDesc=All records currently eligible for cutoff.
|
||||
rm.savedsearch.transferRecordsName=Records Eligible For Transfer
|
||||
rm.savedsearch.transferRecordsDesc=All records currently eligible for transfer.
|
||||
rm.savedsearch.destructionRecordsName=Records Eligible For Destruction
|
||||
rm.savedsearch.destructionRecordsDesc=All records currently eligible for destruction.
|
||||
rm.savedsearch.frozenRecordsName=Frozen Records
|
||||
rm.savedsearch.frozenRecordsDesc=All frozen records.
|
@@ -1125,6 +1125,7 @@
|
||||
<property name="nodeService" ref="NodeService"/>
|
||||
<property name="policyComponent" ref="policyComponent" />
|
||||
<property name="dispositionService" ref="DispositionService" />
|
||||
<property name="dictionaryService" ref="DictionaryService" />
|
||||
</bean>
|
||||
|
||||
<!-- Record Service -->
|
||||
|
@@ -20,7 +20,7 @@
|
||||
<#list prop.constraints as con>
|
||||
{
|
||||
"name": "${con.constraint.shortName!""}",
|
||||
"title": "${con.constraint.title!""}",
|
||||
"title": "${msg(con.constraint.title)!""}",
|
||||
"type": "${con.constraint.type!""}",
|
||||
"parameters":
|
||||
{
|
||||
|
@@ -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