mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fixes ALF-10615: Channel names must be in correct case in Social Publishing UI
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31169 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -35,6 +35,7 @@ import org.alfresco.service.namespace.QName;
|
||||
import org.alfresco.util.ParameterCheck;
|
||||
import org.springframework.core.io.ClassPathResource;
|
||||
import org.springframework.core.io.Resource;
|
||||
import org.springframework.extensions.surf.util.I18NUtil;
|
||||
|
||||
/**
|
||||
* @author Nick Smith
|
||||
@@ -77,6 +78,13 @@ public abstract class AbstractChannelType implements ChannelType, ChannelTypePub
|
||||
this.nodeService = nodeService;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTitle()
|
||||
{
|
||||
String title = I18NUtil.getMessage("publishing.channel-type." + getId() + ".title");
|
||||
return title == null ? getId() : title;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
|
@@ -0,0 +1 @@
|
||||
publishing.channel-type.facebook.title=Facebook
|
@@ -0,0 +1 @@
|
||||
publishing.channel-type.flickr.title=Flickr
|
@@ -0,0 +1 @@
|
||||
publishing.channel-type.linkedin.title=LinkedIn
|
@@ -0,0 +1 @@
|
||||
publishing.channel-type.slideshare.title=SlideShare
|
@@ -0,0 +1 @@
|
||||
publishing.channel-type.twitter.title=Twitter
|
@@ -0,0 +1 @@
|
||||
publishing.channel-type.youtube.title=YouTube
|
@@ -40,6 +40,13 @@ public interface ChannelType
|
||||
*/
|
||||
String getId();
|
||||
|
||||
/**
|
||||
* Returns the title (display name) of this channel type.
|
||||
* The title may be localised, but this is implementation specific
|
||||
* @return
|
||||
*/
|
||||
String getTitle();
|
||||
|
||||
/**
|
||||
* Each channel is stored in the repository as a node. This operation returns
|
||||
* the qualified name of the type of that node.
|
||||
|
Reference in New Issue
Block a user