summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSidharth Singh2012-11-05 02:34:42 (EST)
committerSven Rottstock2012-11-14 09:20:22 (EST)
commit7b6c13f61fc8c76c0a961b84c1bef19d7b73970d (patch)
treee5bfa340acb87a9c4845a72e9f4e0b68cddc6d31
parent2789a2ac848d787303e2a165f3e6becb2ffddd23 (diff)
downloadorg.eclipse.stardust.ui.web-7b6c13f61fc8c76c0a961b84c1bef19d7b73970d.zip
org.eclipse.stardust.ui.web-7b6c13f61fc8c76c0a961b84c1bef19d7b73970d.tar.gz
org.eclipse.stardust.ui.web-7b6c13f61fc8c76c0a961b84c1bef19d7b73970d.tar.bz2
Jira-ID: CRNT-24693
Added I18N properties for CommonMenuItem in views-common-messages.properties bundle. Changed reference for title of IppCommonMenuItem in views-common-spi-context.xml Made changes to IppCommonMenuItem.java to read title from message bundle. git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ui.web@60570 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/common/spi/menu/impl/IppCommonMenuItem.java15
-rw-r--r--views-common/src/main/resources/META-INF/spring/views-common-spi-context.xml2
-rw-r--r--views-common/src/main/resources/views-common-messages.properties17
-rw-r--r--views-common/src/main/resources/views-common-messages_de.properties15
-rw-r--r--views-common/src/main/resources/views-common-messages_zh_CN.properties15
5 files changed, 62 insertions, 2 deletions
diff --git a/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/common/spi/menu/impl/IppCommonMenuItem.java b/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/common/spi/menu/impl/IppCommonMenuItem.java
index a35a04e..06dee91 100644
--- a/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/common/spi/menu/impl/IppCommonMenuItem.java
+++ b/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/common/spi/menu/impl/IppCommonMenuItem.java
@@ -11,6 +11,8 @@
package org.eclipse.stardust.ui.web.viewscommon.common.spi.menu.impl;
import org.eclipse.stardust.ui.web.common.spi.menu.CommonMenuItem;
+import org.eclipse.stardust.ui.web.common.util.FacesUtils;
+import org.eclipse.stardust.ui.web.viewscommon.messages.MessagesViewsCommonBean;
/**
* @author Anoop.Nair
@@ -51,8 +53,21 @@ public class IppCommonMenuItem implements CommonMenuItem
return id;
}
+ /**
+ * If title is I18N, title will be of format 'messageBean#message' split and return the
+ * message
+ */
public String getTitle()
{
+ if (title.contains("#"))
+ {
+ String[] parts = title.split("#");
+ if (null != parts)
+ {
+ MessagesViewsCommonBean messBean = (MessagesViewsCommonBean) FacesUtils.getBeanFromContext(parts[0]);
+ return messBean.getString(parts[1]);
+ }
+ }
return title;
}
diff --git a/views-common/src/main/resources/META-INF/spring/views-common-spi-context.xml b/views-common/src/main/resources/META-INF/spring/views-common-spi-context.xml
index 313fd10..6ebed1a 100644
--- a/views-common/src/main/resources/META-INF/spring/views-common-spi-context.xml
+++ b/views-common/src/main/resources/META-INF/spring/views-common-spi-context.xml
@@ -42,4 +42,4 @@
scope="session">
<aop:scoped-proxy/>
</bean>
- <bean name="commonMenuProvider" class="org.eclipse.stardust.ui.web.viewscommon.common.spi.menu.impl.IppCommonMenuProvider" scope="session"> <property name="menuItems"> <list> <bean class="org.eclipse.stardust.ui.web.viewscommon.common.spi.menu.impl.IppCommonMenuItem"> <property name="id" value="1" /> <property name="title" value="Financial Systems Community" /> </bean> <bean class="org.eclipse.stardust.ui.web.viewscommon.common.spi.menu.impl.IppCommonMenuItem"> <property name="id" value="2" /> <property name="title" value="TEN Blogs" /> <property name="URL" value="http://blogs.sungard.com/ten/" /> <property name="iconPath" value="/plugins/common/css/camino-images/b_article.png" /> <property name="changed" value="false" /> </bean> <bean class="org.eclipse.stardust.ui.web.viewscommon.common.spi.menu.impl.IppCommonMenuItem"> <property name="id" value="3" /> <property name="title" value="Sign up for the next City Day!" /> <property name="URL" value="http://www.capitalize-on-change.com/events.aspx" /> <property name="iconPath" value="/plugins/common/css/camino-images/b_edit.png" /> <property name="changed" value="false" /> </bean> <bean class="org.eclipse.stardust.ui.web.viewscommon.common.spi.menu.impl.IppCommonMenuItem"> <property name="id" value="4" /> <property name="title" value="Latest Press Releases" /> <property name="URL" value="http://www.google.com" /> <property name="iconPath" value="/plugins/common/css/camino-images/b_document.png" /> <property name="changed" value="false" /> </bean> <bean class="org.eclipse.stardust.ui.web.viewscommon.common.spi.menu.impl.IppCommonMenuItem"> <property name="id" value="5" /> <property name="title" value="See All" /> <property name="URL" value="http://www.google.com" /> <property name="changed" value="false" /> </bean> <bean class="org.eclipse.stardust.ui.web.viewscommon.common.spi.menu.impl.IppCommonMenuItem"> <property name="id" value="6" /> <property name="title" value="Infinity" /> </bean> <bean class="org.eclipse.stardust.ui.web.viewscommon.common.spi.menu.impl.IppCommonMenuItem"> <property name="id" value="7" /> <property name="title" value="Infinity Process Platform" /> <property name="URL" value="http://www.sungard.com/financialsystems/products/infinityprocessplatform.aspx" /> <property name="iconPath" value="/plugins/common/css/camino-images/b_chat.png" /> <property name="changed" value="false" /> </bean> <bean class="org.eclipse.stardust.ui.web.viewscommon.common.spi.menu.impl.IppCommonMenuItem"> <property name="id" value="8" /> <property name="title" value="Documentation" /> <property name="URL" value="http://infinity.sungard.com/documentation/ipp" /> <property name="iconPath" value="/plugins/common/css/camino-images/b_add.png" /> <property name="changed" value="false" /> </bean> <bean class="org.eclipse.stardust.ui.web.viewscommon.common.spi.menu.impl.IppCommonMenuItem"> <property name="id" value="9" /> <property name="title" value="IPP as a Service" /> <property name="URL" value="https://www.infinity.com/storefront/faces/procurement/solution-details.xhtml?solutionGuid=a97a63ee-e80f-4be6-8f3a-dfd2a24a064f" /> <property name="iconPath" value="/plugins/common/css/camino-images/b_next.png" /> <property name="changed" value="false" /> </bean> <bean class="org.eclipse.stardust.ui.web.viewscommon.common.spi.menu.impl.IppCommonMenuItem"> <property name="id" value="10" /> <property name="title" value="Stardust" /> </bean> <bean class="org.eclipse.stardust.ui.web.viewscommon.common.spi.menu.impl.IppCommonMenuItem"> <property name="id" value="11" /> <property name="title" value="Get Stardust" /> <property name="URL" value="http://www.eclipse.org/stardust/download/download.php" /> <property name="iconPath" value="/plugins/common/css/camino-images/b_next.png" /> <property name="changed" value="false" /> </bean> <bean class="org.eclipse.stardust.ui.web.viewscommon.common.spi.menu.impl.IppCommonMenuItem"> <property name="id" value="12" /> <property name="title" value="Community Forums" /> <property name="URL" value="http://www.eclipse.org/forums/index.php?t=thread&amp;frm_id=225" /> <property name="iconPath" value="/plugins/common/css/camino-images/b_group.png" /> <property name="changed" value="false" /> </bean> <bean class="org.eclipse.stardust.ui.web.viewscommon.common.spi.menu.impl.IppCommonMenuItem"> <property name="id" value="13" /> <property name="title" value="Blog" /> <property name="URL" value="http://blogs.sungard.com/fs_stardust/" /> <property name="iconPath" value="/plugins/common/css/camino-images/b_message.png" /> <property name="changed" value="false" /> </bean> </list> </property> <aop:scoped-proxy/> </bean> </beans> \ No newline at end of file
+ <bean name="commonMenuProvider" class="org.eclipse.stardust.ui.web.viewscommon.common.spi.menu.impl.IppCommonMenuProvider" scope="session"> <property name="menuItems"> <list> <bean class="org.eclipse.stardust.ui.web.viewscommon.common.spi.menu.impl.IppCommonMenuItem"> <property name="id" value="1" /> <property name="title" value="views_common_msgPropsBean#ippCommonMenuItem.finSysCommunity"/> </bean> <bean class="org.eclipse.stardust.ui.web.viewscommon.common.spi.menu.impl.IppCommonMenuItem"> <property name="id" value="2" /> <property name="title" value="views_common_msgPropsBean#ippCommonMenuItem.tenBlogs" /> <property name="URL" value="http://blogs.sungard.com/ten/" /> <property name="iconPath" value="/plugins/common/css/camino-images/b_article.png" /> <property name="changed" value="false" /> </bean> <bean class="org.eclipse.stardust.ui.web.viewscommon.common.spi.menu.impl.IppCommonMenuItem"> <property name="id" value="3" /> <property name="title" value="views_common_msgPropsBean#ippCommonMenuItem.signUpNextCityDay" /> <property name="URL" value="http://www.capitalize-on-change.com/events.aspx" /> <property name="iconPath" value="/plugins/common/css/camino-images/b_edit.png" /> <property name="changed" value="false" /> </bean> <bean class="org.eclipse.stardust.ui.web.viewscommon.common.spi.menu.impl.IppCommonMenuItem"> <property name="id" value="4" /> <property name="title" value="views_common_msgPropsBean#ippCommonMenuItem.latestPressReleases" /> <property name="URL" value="http://www.google.com" /> <property name="iconPath" value="/plugins/common/css/camino-images/b_document.png" /> <property name="changed" value="false" /> </bean> <bean class="org.eclipse.stardust.ui.web.viewscommon.common.spi.menu.impl.IppCommonMenuItem"> <property name="id" value="5" /> <property name="title" value="views_common_msgPropsBean#ippCommonMenuItem.seeAll" /> <property name="URL" value="http://www.google.com" /> <property name="changed" value="false" /> </bean> <bean class="org.eclipse.stardust.ui.web.viewscommon.common.spi.menu.impl.IppCommonMenuItem"> <property name="id" value="6" /> <property name="title" value="views_common_msgPropsBean#ippCommonMenuItem.infinity" /> </bean> <bean class="org.eclipse.stardust.ui.web.viewscommon.common.spi.menu.impl.IppCommonMenuItem"> <property name="id" value="7" /> <property name="title" value="views_common_msgPropsBean#ippCommonMenuItem.ipp" /> <property name="URL" value="http://www.sungard.com/financialsystems/products/infinityprocessplatform.aspx" /> <property name="iconPath" value="/plugins/common/css/camino-images/b_chat.png" /> <property name="changed" value="false" /> </bean> <bean class="org.eclipse.stardust.ui.web.viewscommon.common.spi.menu.impl.IppCommonMenuItem"> <property name="id" value="8" /> <property name="title" value="views_common_msgPropsBean#ippCommonMenuItem.documentation" /> <property name="URL" value="http://infinity.sungard.com/documentation/ipp" /> <property name="iconPath" value="/plugins/common/css/camino-images/b_add.png" /> <property name="changed" value="false" /> </bean> <bean class="org.eclipse.stardust.ui.web.viewscommon.common.spi.menu.impl.IppCommonMenuItem"> <property name="id" value="9" /> <property name="title" value="views_common_msgPropsBean#ippCommonMenuItem.ippAsService" /> <property name="URL" value="https://www.infinity.com/storefront/faces/procurement/solution-details.xhtml?solutionGuid=a97a63ee-e80f-4be6-8f3a-dfd2a24a064f" /> <property name="iconPath" value="/plugins/common/css/camino-images/b_next.png" /> <property name="changed" value="false" /> </bean> <bean class="org.eclipse.stardust.ui.web.viewscommon.common.spi.menu.impl.IppCommonMenuItem"> <property name="id" value="10" /> <property name="title" value="views_common_msgPropsBean#ippCommonMenuItem.stardust" /> </bean> <bean class="org.eclipse.stardust.ui.web.viewscommon.common.spi.menu.impl.IppCommonMenuItem"> <property name="id" value="11" /> <property name="title" value="views_common_msgPropsBean#ippCommonMenuItem.getStardust" /> <property name="URL" value="http://www.eclipse.org/stardust/download/download.php" /> <property name="iconPath" value="/plugins/common/css/camino-images/b_next.png" /> <property name="changed" value="false" /> </bean> <bean class="org.eclipse.stardust.ui.web.viewscommon.common.spi.menu.impl.IppCommonMenuItem"> <property name="id" value="12" /> <property name="title" value="views_common_msgPropsBean#ippCommonMenuItem.communityForum" /> <property name="URL" value="http://www.eclipse.org/forums/index.php?t=thread&amp;frm_id=225" /> <property name="iconPath" value="/plugins/common/css/camino-images/b_group.png" /> <property name="changed" value="false" /> </bean> <bean class="org.eclipse.stardust.ui.web.viewscommon.common.spi.menu.impl.IppCommonMenuItem"> <property name="id" value="13" /> <property name="title" value="views_common_msgPropsBean#ippCommonMenuItem.blogs" /> <property name="URL" value="http://blogs.sungard.com/fs_stardust/" /> <property name="iconPath" value="/plugins/common/css/camino-images/b_message.png" /> <property name="changed" value="false" /> </bean> </list> </property> <aop:scoped-proxy/> </bean> </beans> \ No newline at end of file
diff --git a/views-common/src/main/resources/views-common-messages.properties b/views-common/src/main/resources/views-common-messages.properties
index d68e7ce..dca9c6a 100644
--- a/views-common/src/main/resources/views-common-messages.properties
+++ b/views-common/src/main/resources/views-common-messages.properties
@@ -1479,4 +1479,19 @@ views.participantTree.filters.model.title=Show Models
views.participantTree.toolbar.highlightUsers.title=Highlight Users
views.participantTree.toolbar.searchParticipants.title=Search Participants
views.participantTree.filters.model.off.title=Hide Models
-views.participantTree.toolbar.highlightUsers.off.title=Remove Highlighting \ No newline at end of file
+views.participantTree.toolbar.highlightUsers.off.title=Remove Highlighting
+
+################## Common Context Menu Items ############################
+ippCommonMenuItem.finSysCommunity = Financial Systems Community
+ippCommonMenuItem.tenBlogs = TEN Blogs
+ippCommonMenuItem.signUpNextCityDay = Sign up for the next City Day!
+ippCommonMenuItem.latestPressReleases = Latest Press Releases
+ippCommonMenuItem.seeAll = See All
+ippCommonMenuItem.infinity = Infinity
+ippCommonMenuItem.ipp = Infinity Process Platform
+ippCommonMenuItem.documentation = Documentation
+ippCommonMenuItem.ippAsService = IPP as a Service
+ippCommonMenuItem.stardust = Stardust
+ippCommonMenuItem.getStardust = Get Stardust
+ippCommonMenuItem.communityForum = Community Forums
+ippCommonMenuItem.blogs = Blog
diff --git a/views-common/src/main/resources/views-common-messages_de.properties b/views-common/src/main/resources/views-common-messages_de.properties
index c202537..c21ca7b 100644
--- a/views-common/src/main/resources/views-common-messages_de.properties
+++ b/views-common/src/main/resources/views-common-messages_de.properties
@@ -1476,3 +1476,18 @@ views.participantTree.toolbar.highlightUsers.title = Highlight Benutzer
views.participantTree.toolbar.searchParticipants.title = Teilnehmer suchen
views.participantTree.filters.model.off.title = Modelle ausblenden
views.participantTree.toolbar.highlightUsers.off.title = Highlighting entfernen
+
+################## Common Context Menu Items ############################
+ippCommonMenuItem.finSysCommunity = +Financial Systems Community
+ippCommonMenuItem.tenBlogs = +TEN Blogs
+ippCommonMenuItem.signUpNextCityDay = +Sign up for the next City Day!
+ippCommonMenuItem.latestPressReleases = +Latest Press Releases
+ippCommonMenuItem.seeAll = +See All
+ippCommonMenuItem.infinity = +Infinity
+ippCommonMenuItem.ipp = +Infinity Process Platform
+ippCommonMenuItem.documentation = +Documentation
+ippCommonMenuItem.ippAsService = +IPP as a Service
+ippCommonMenuItem.stardust = +Stardust
+ippCommonMenuItem.getStardust = +Get Stardust
+ippCommonMenuItem.communityForum = +Community Forums
+ippCommonMenuItem.blogs = +Blog \ No newline at end of file
diff --git a/views-common/src/main/resources/views-common-messages_zh_CN.properties b/views-common/src/main/resources/views-common-messages_zh_CN.properties
index 0674054..3f76238 100644
--- a/views-common/src/main/resources/views-common-messages_zh_CN.properties
+++ b/views-common/src/main/resources/views-common-messages_zh_CN.properties
@@ -1476,3 +1476,18 @@ views.participantTree.toolbar.highlightUsers.title = \u9AD8\u4EAE\u7A81\u51FA\u6
views.participantTree.toolbar.searchParticipants.title = \u641C\u7D22\u53C2\u4E0E\u8005
views.participantTree.filters.model.off.title = \u9690\u85CF\u6A21\u578B
views.participantTree.toolbar.highlightUsers.off.title = \u5220\u9664\u9AD8\u4EAE\u7A81\u51FA\u663E\u793A
+
+################## Common Context Menu Items ############################
+ippCommonMenuItem.finSysCommunity = +Financial Systems Community
+ippCommonMenuItem.tenBlogs = +TEN Blogs
+ippCommonMenuItem.signUpNextCityDay = +Sign up for the next City Day!
+ippCommonMenuItem.latestPressReleases = +Latest Press Releases
+ippCommonMenuItem.seeAll = +See All
+ippCommonMenuItem.infinity = +Infinity
+ippCommonMenuItem.ipp = +Infinity Process Platform
+ippCommonMenuItem.documentation = +Documentation
+ippCommonMenuItem.ippAsService = +IPP as a Service
+ippCommonMenuItem.stardust = +Stardust
+ippCommonMenuItem.getStardust = +Get Stardust
+ippCommonMenuItem.communityForum = +Community Forums
+ippCommonMenuItem.blogs = +Blog \ No newline at end of file