Author: woonsan
Date: Thu Dec 17 18:41:17 2009
New Revision: 891831
URL: http://svn.apache.org/viewvc?rev=891831&view=rev
Log:
JS2-1057: Adding i18n
Added:
portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/toolbox/
portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/toolbox/resources/
portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/toolbox/resources/JetspeedToolboxResources.properties
(with props)
Modified:
portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/portlet.xml
portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/view/toolbox/toolbox.jsp
Added:
portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/toolbox/resources/JetspeedToolboxResources.properties
URL:
http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/toolbox/resources/JetspeedToolboxResources.properties?rev=891831&view=auto
==============================================================================
---
portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/toolbox/resources/JetspeedToolboxResources.properties
(added)
+++
portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/toolbox/resources/JetspeedToolboxResources.properties
Thu Dec 17 18:41:17 2009
@@ -0,0 +1,34 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# $Id$
+#
+
+# DO NOT TRANSLATE & DO NOT INCLUDE IN L10N PROPERTIES FILE
+toolbox.label.portlets = Portlets
+toolbox.label.layout = Layout
+toolbox.label.theme = Theme
+toolbox.label.widget = Widgets
+toolbox.label.search = Search
+toolbox.label.page = Page
+toolbox.label.moveFirst = <<
+toolbox.label.movePrev = <
+toolbox.label.moveNext = >
+toolbox.label.moveLast = >>
+toolbox.label.preview = Preview
+toolbox.label.add = Add
+toolbox.label.close = Close
+
+toolbox.message.chooseOne = Choose one
Propchange:
portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/toolbox/resources/JetspeedToolboxResources.properties
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/toolbox/resources/JetspeedToolboxResources.properties
------------------------------------------------------------------------------
svn:keywords = Id
Propchange:
portals/jetspeed-2/applications/j2-admin/trunk/src/main/resources/org/apache/jetspeed/portlets/toolbox/resources/JetspeedToolboxResources.properties
------------------------------------------------------------------------------
svn:mime-type = text/plain
Modified:
portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/portlet.xml
URL:
http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/portlet.xml?rev=891831&r1=891830&r2=891831&view=diff
==============================================================================
---
portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/portlet.xml
(original)
+++
portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/portlet.xml
Thu Dec 17 18:41:17 2009
@@ -2158,6 +2158,7 @@
<portlet-mode>EDIT</portlet-mode>
</supports>
<supported-locale>en</supported-locale>
+
<resource-bundle>org.apache.jetspeed.portlets.toolbox.resources.JetspeedToolboxResources</resource-bundle>
<portlet-info>
<title>Jetspeed Toolbox</title>
<short-title>Toolbox</short-title>
Modified:
portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/view/toolbox/toolbox.jsp
URL:
http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/view/toolbox/toolbox.jsp?rev=891831&r1=891830&r2=891831&view=diff
==============================================================================
---
portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/view/toolbox/toolbox.jsp
(original)
+++
portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/view/toolbox/toolbox.jsp
Thu Dec 17 18:41:17 2009
@@ -30,6 +30,8 @@
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet"%>
<portlet:defineObjects/>
+<fmt:setBundle
basename="org.apache.jetspeed.portlets.toolbox.resources.JetspeedToolboxResources"
/>
+
<c_rt:set var="requestContext"
value="<%=request.getAttribute(RequestContext.REQUEST_PORTALENV)%>"/>
<c:set var="portalContextPath" value="${requestContext.request.contextPath}"/>
<c:set var="portalPagePath" value="${requestContext.portalURL.path}"/>
@@ -42,13 +44,13 @@
<table style="border-collapse: collapse; width: 100%; margin-top: 0px;
margin-bottom: 0px; float: left;">
<tr>
<td class="portlet-section-subheader">
- <a href="#" id="<portlet:namespace/>portletsTabAction">Portlets</a>
+ <a href="#" id="<portlet:namespace/>portletsTabAction"><fmt:message
key="toolbox.label.portlets"/></a>
|
- <a href="#" id="<portlet:namespace/>layoutTabAction">Layout</a>
+ <a href="#" id="<portlet:namespace/>layoutTabAction"><fmt:message
key="toolbox.label.layout"/></a>
|
- <a href="#" id="<portlet:namespace/>themeTabAction">Theme</a>
+ <a href="#" id="<portlet:namespace/>themeTabAction"><fmt:message
key="toolbox.label.theme"/></a>
|
- <a href="#" id="<portlet:namespace/>widgetsTabAction">Widgets</a>
+ <a href="#" id="<portlet:namespace/>widgetsTabAction"><fmt:message
key="toolbox.label.widget"/></a>
</td>
</tr>
</table>
@@ -56,19 +58,19 @@
<form id="<portlet:namespace/>form">
<table id="<portlet:namespace/>portletsTab" style="display: none;
border-collapse: collapse; width: 100%; margin-top: 0px; margin-bottom: 0px;
float: left;">
<tr>
- <th class="portlet-section-header">Portlets</th>
+ <th class="portlet-section-header"><fmt:message
key="toolbox.label.portlets"/></th>
</tr>
<tr>
<td class="portlet-section-subheader">
<input type="text" name="query" size="15" value="" >
- <input type="submit" value="Search" />
+ <input type="submit" value="<fmt:message
key="toolbox.label.search"/>" />
</td>
</tr>
<tr>
<td class="portlet-section-subheader">
<select id="<portlet:namespace/>categories">
- <option value="">Choose a category</option>
+ <option value=""><fmt:message
key="toolbox.message.chooseOne"/></option>
<c:forEach var="category" items="${categories}">
<option value="${category}"
keywords="${categoryKeywords[category]}">${category}</option>
</c:forEach>
@@ -85,14 +87,13 @@
<tr>
<td class="portlet-section-subheader">
<div id="<portlet:namespace/>pageNavBar" class="jstbPageNavBar">
- <a href="#" class="jstbPageNav"
pageIndex="first"><<</a>
- <a href="#" class="jstbPageNav" pageIndex="prev"><</a>
+ <a href="#" class="jstbPageNav"
pageIndex="first"><fmt:message key="toolbox.label.moveFirst"/></a>
+ <a href="#" class="jstbPageNav"
pageIndex="prev"><fmt:message key="toolbox.label.movePrev"/></a>
<select id="<portlet:namespace/>pageNavIndex">
- <option value="">Page</option>
- </select>
+ <option value=""><fmt:message
key="toolbox.label.page"/></option>
</select>
- <a href="#" class="jstbPageNav" pageIndex="next">></a>
- <a href="#" class="jstbPageNav"
pageIndex="last">>></a>
+ <a href="#" class="jstbPageNav"
pageIndex="next"><fmt:message key="toolbox.label.moveNext"/></a>
+ <a href="#" class="jstbPageNav"
pageIndex="last"><fmt:message key="toolbox.label.moveLast"/></a>
</div>
</td>
</tr>
@@ -115,8 +116,8 @@
</tr>
<tr>
<td class="portlet-section-body">
- <a href="#" name="preview">Preview</a>
- <a href="#" name="add">Add</a>
+ <a href="#" name="preview"><fmt:message
key="toolbox.label.preview"/></a>
+ <a href="#" name="add"><fmt:message
key="toolbox.label.add"/></a>
</td>
</tr>
</table>
@@ -124,7 +125,7 @@
<table id="<portlet:namespace/>layoutTab" style="display: none;
border-collapse: collapse; width: 100%; margin-top: 0px; margin-bottom: 0px;
float: left;">
<tr>
- <th class="portlet-section-header" colspan="2">Layouts</th>
+ <th class="portlet-section-header" colspan="2"><fmt:message
key="toolbox.label.layout"/></th>
</tr>
<c:forEach var="layout" items="${layouts}">
<tr>
@@ -156,7 +157,7 @@
<table id="<portlet:namespace/>themeTab" style="display: none;
border-collapse: collapse; width: 100%; margin-top: 0px; margin-bottom: 0px;
float: left;">
<tr>
- <th class="portlet-section-header" colspan="2">Themes</th>
+ <th class="portlet-section-header" colspan="2"><fmt:message
key="toolbox.label.theme"/></th>
</tr>
<c:forEach var="theme" items="${themes}">
<tr>
@@ -178,7 +179,7 @@
<table id="<portlet:namespace/>widgetsTab" style="display: none;
border-collapse: collapse; width: 100%; margin-top: 0px; margin-bottom: 0px;
float: left;">
<tr>
- <th class="portlet-section-header" colspan="1">Widgets</th>
+ <th class="portlet-section-header" colspan="1"><fmt:message
key="toolbox.label.widget"/></th>
</tr>
<tr>
<th class="portlet-section-header" colspan="1"></th>
@@ -187,7 +188,7 @@
<div id="<portlet:namespace/>previewPanel" style="BACKGROUND: #eee; BORDER:
lightgrey solid 1px; POSITION: absolute; Z-INDEX: 1000; VISIBILITY: hidden">
<div></div>
- <div align="right"><a href="#">Close</a></div>
+ <div align="right"><a href="#"><fmt:message
key="toolbox.label.close"/></a></div>
</div>
<script language="javascript">
@@ -496,6 +497,8 @@
var closePreviewPanel = function(e) {
var panel = Y.Node.one("#<portlet:namespace/>previewPanel");
Y.Node.getDOMNode(panel).style.visibility = "hidden";
+
+ e.halt();
};
Y.on("click", switchTab, "#<portlet:namespace/>portletsTabAction");
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]