mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Various translations for RM-183
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@55749 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -36,6 +36,7 @@ import org.alfresco.service.cmr.repository.StoreRef;
|
||||
import org.alfresco.util.ParameterCheck;
|
||||
import org.json.JSONArray;
|
||||
import org.json.JSONObject;
|
||||
import org.springframework.extensions.surf.util.I18NUtil;
|
||||
|
||||
/**
|
||||
* Records management event service implementation
|
||||
@@ -297,8 +298,12 @@ public class RecordsManagementEventServiceImpl implements RecordsManagementEvent
|
||||
// Get the details of the event
|
||||
String eventType = eventJSON.getString("eventType");
|
||||
String eventName = eventJSON.getString("eventName");
|
||||
String eventDisplayLabel = eventJSON.getString("eventDisplayLabel");
|
||||
|
||||
String eventDisplayLabel = eventJSON.getString("eventDisplayLabel");
|
||||
String translated = I18NUtil.getMessage(eventDisplayLabel);
|
||||
if (translated!=null ) eventDisplayLabel = translated;
|
||||
|
||||
|
||||
// Check that the eventType is valid
|
||||
if (eventTypes.containsKey(eventType) == false)
|
||||
{
|
||||
|
@@ -518,6 +518,8 @@ public class FilePlanRoleServiceImpl implements FilePlanRoleService,
|
||||
String groupShortName = authorityService.getShortName(roleAuthority);
|
||||
String name = getShortRoleName(groupShortName, rmRootNode);
|
||||
String displayLabel = authorityService.getAuthorityDisplayName(roleAuthority);
|
||||
String translated = I18NUtil.getMessage(displayLabel);
|
||||
if (translated!=null ) displayLabel = translated;
|
||||
Set<Capability> capabilities = getCapabilitiesImpl(rmRootNode, roleAuthority);
|
||||
|
||||
Role role = new Role(name, displayLabel, capabilities, roleAuthority, groupShortName);
|
||||
@@ -559,6 +561,8 @@ public class FilePlanRoleServiceImpl implements FilePlanRoleService,
|
||||
String groupShortName = authorityService.getShortName(roleAuthority);
|
||||
String name = getShortRoleName(groupShortName, rmRootNode);
|
||||
String displayLabel = authorityService.getAuthorityDisplayName(roleAuthority);
|
||||
String translated = I18NUtil.getMessage(displayLabel);
|
||||
if (translated!=null ) displayLabel = translated;
|
||||
Set<Capability> capabilities = getCapabilitiesImpl(rmRootNode, roleAuthority);
|
||||
|
||||
Role role = new Role(name, displayLabel, capabilities, roleAuthority, groupShortName);
|
||||
|
@@ -24,6 +24,7 @@ import org.alfresco.service.namespace.NamespaceService;
|
||||
import org.alfresco.util.ParameterCheck;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
import org.springframework.extensions.surf.util.I18NUtil;
|
||||
|
||||
/**
|
||||
* Saved search details.
|
||||
@@ -139,6 +140,8 @@ public class SavedSearchDetails extends ReportDetails
|
||||
if (search.has(DESCRIPTION) == true)
|
||||
{
|
||||
description = search.getString(DESCRIPTION);
|
||||
String translated = I18NUtil.getMessage(description);
|
||||
if (translated!=null ) description = translated;
|
||||
}
|
||||
|
||||
// Get the query
|
||||
|
Reference in New Issue
Block a user