Author: thomas.heute(a)jboss.com
Date: 2008-05-30 06:05:05 -0400 (Fri, 30 May 2008)
New Revision: 10855
Modified:
branches/JBoss_Portal_Branch_2_7/core/src/resources/portal-core-war/WEB-INF/jsp/content/portlet_editor.jsp
branches/JBoss_Portal_Branch_2_7/core/src/resources/portal-core-war/WEB-INF/portlet.xml
Log:
i18n the content selector
Modified:
branches/JBoss_Portal_Branch_2_7/core/src/resources/portal-core-war/WEB-INF/jsp/content/portlet_editor.jsp
===================================================================
---
branches/JBoss_Portal_Branch_2_7/core/src/resources/portal-core-war/WEB-INF/jsp/content/portlet_editor.jsp 2008-05-30
09:20:48 UTC (rev 10854)
+++
branches/JBoss_Portal_Branch_2_7/core/src/resources/portal-core-war/WEB-INF/jsp/content/portlet_editor.jsp 2008-05-30
10:05:05 UTC (rev 10855)
@@ -1,3 +1,4 @@
+<%@ page language="java"
extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
<%@ page import="org.jboss.portal.common.i18n.LocalizedString" %>
<%@ page import="org.jboss.portal.common.util.IteratorStatus" %>
<%@ page import="org.jboss.portal.core.model.instance.Instance" %>
@@ -4,19 +5,20 @@
<%@ page import="org.jboss.portal.core.portlet.info.PortletIconInfo" %>
<%@ page import="org.jboss.portal.core.portlet.info.PortletInfoInfo" %>
<%@ page
import="org.jboss.portal.core.ui.content.portlet.PortletContentEditorPortlet"
%>
-<%@ page language="java" %>
+<%@ page import="org.jboss.portal.portlet.Portlet" %>
+<%@ page import="org.jboss.portal.portlet.PortletInvokerException" %>
+<%@ page import="org.jboss.portal.portlet.info.MetaInfo" %>
+<%@ page import="org.jboss.portal.portlet.info.PortletInfo" %>
+<%@ page import="java.util.Collection" %>
+<%@ page import="java.util.Locale" %>
+
<%@ taglib
uri="http://java.sun.com/portlet" prefix="portlet"
%>
+<%@ taglib uri="/WEB-INF/portal-lib.tld" prefix="n" %>
<%
Collection instances = (Collection)request.getAttribute("INSTANCES");
Instance selectedInstance =
(Instance)request.getAttribute("SELECTED_INSTANCE");
%>
-<%@page import="org.jboss.portal.portlet.Portlet" %>
-<%@page import="org.jboss.portal.portlet.PortletInvokerException" %>
-<%@page import="org.jboss.portal.portlet.info.MetaInfo" %>
-<%@page import="org.jboss.portal.portlet.info.PortletInfo" %>
-<%@ page import="java.util.Collection" %>
-<%@ page import="java.util.Locale" %>
<portlet:defineObjects/>
<script type='text/javascript'
src='/portal-admin/js/domLib.js'></script>
<script type="text/javascript"
src="/portal-admin/js/fadomatic.js"></script>
@@ -62,7 +64,7 @@
<table style="width:500px;">
<tr>
- <td><h3 class="sectionTitle tenpx-top-bottom">Portlet instance
associated to this window:</h3></td>
+ <td><h3 class="sectionTitle
tenpx-top-bottom">${n:i18n("PORTLET_INSTANCE_ASSOCIATED")}:</h3></td>
</tr>
<%
Locale locale = renderRequest.getLocale();
@@ -95,10 +97,10 @@
<span><%= displayName %></span>
<div>
- <span class="portlet-form-field-label">Portlet
name:</span><%= displayName %>
+ <span
class="portlet-form-field-label">${n:i18n("PORTLET_NAME")}:</span><%=
displayName %>
</div>
<div>
- <span class="portlet-form-field-label">Portlet
description:</span>
+ <span
class="portlet-form-field-label">${n:i18n("PORTLET_DESCRIPTION")}:</span>
<%= getLocalizedValue(metaInfo.getMetaValue(MetaInfo.DESCRIPTION), locale)
%>
</div>
</td>
@@ -150,22 +152,22 @@
</div>
</div>
</div>
- <tr class="<%= rowClass %>">
- <td>
- <img src="<%= iconLocation %>" align="middle"
style="margin:0 4px 0 0" alt="icon"/>
+ <tr class="<%= rowClass %>">
+ <td>
+ <img src="<%= iconLocation %>"
align="middle" style="margin:0 4px 0 0" alt="icon"/>
<span
onmouseover="domTT_activate(this, event, 'content',
document.getElementById('info-container-<%= displayName
%>'),'delay', 0, 'trail', false, 'fade', 'both',
'fadeMax', 95, 'styleClass', 'none');"><a
href="javascript:void(0);"
onclick="submitForm('<%= url %>');return false"
id="portlet-instance-link"><%= displayName %>
</a></span>
</td>
- </tr>
- <%
- }
- %>
- </table>
- </div>
- </td>
+ </tr>
+ <%
+ }
+ %>
+ </table>
+ </div>
+ </td>
</tr>
</table>
Modified:
branches/JBoss_Portal_Branch_2_7/core/src/resources/portal-core-war/WEB-INF/portlet.xml
===================================================================
---
branches/JBoss_Portal_Branch_2_7/core/src/resources/portal-core-war/WEB-INF/portlet.xml 2008-05-30
09:20:48 UTC (rev 10854)
+++
branches/JBoss_Portal_Branch_2_7/core/src/resources/portal-core-war/WEB-INF/portlet.xml 2008-05-30
10:05:05 UTC (rev 10855)
@@ -37,6 +37,7 @@
<portlet-mode>VIEW</portlet-mode>
<portlet-mode>EDIT_CONTENT</portlet-mode>
</supports>
+ <resource-bundle>Resource</resource-bundle>
<portlet-info>
<title>Portlet Content Portlet</title>
<keywords>management,admin</keywords>