Index: applications/j2-admin/src/java/org/apache/jetspeed/portlets/selector/resources/PortletSelector.properties =================================================================== --- applications/j2-admin/src/java/org/apache/jetspeed/portlets/selector/resources/PortletSelector.properties (revision 600746) +++ applications/j2-admin/src/java/org/apache/jetspeed/portlets/selector/resources/PortletSelector.properties (working copy) @@ -3,18 +3,40 @@ # 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. -# -# - -select=Select -category=Category - +# 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. +# +# + + +category.name=Category Name +select=Select +add=Add +categories=Categories +search=Search +refresh=Refresh +next=Next +last=Last +previous=Previous +first=First +search.portlet=Search portlet +goback=GoBack +count=Count +save=Save +edit.category=Edit Category +edit.grid=Edit Display Grid +add.category=Add Category +remove.category=Remove Category +rows=Rows +columns=Columns +cancel=Cancel +keywords=Keywords +ok=OK + Index: applications/j2-admin/src/java/org/apache/jetspeed/portlets/selector/resources/PortletSelector_en.properties =================================================================== --- applications/j2-admin/src/java/org/apache/jetspeed/portlets/selector/resources/PortletSelector_en.properties (revision 600746) +++ applications/j2-admin/src/java/org/apache/jetspeed/portlets/selector/resources/PortletSelector_en.properties (working copy) @@ -3,18 +3,39 @@ # 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. -# -# - -select=Select -category=Category - +# 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. +# +# + + +category.name=Category Name +select=Select +add=Add +categories=Categories +search=Search +refresh=Refresh +next=Next +last=Last +previous=Previous +first=First +search.portlet=Search portlet +goback=GoBack +count=Count +save=Save +edit.category=Edit Category +edit.grid=Edit Display Grid +add.category=Add Category +remove.category=Remove Category +rows=Rows +columns=Columns +cancel=Cancel +keywords=Keywords +ok=OK Index: applications/j2-admin/src/java/org/apache/jetspeed/portlets/selector/resources/PortletSelector_ko.properties =================================================================== --- applications/j2-admin/src/java/org/apache/jetspeed/portlets/selector/resources/PortletSelector_ko.properties (revision 600746) +++ applications/j2-admin/src/java/org/apache/jetspeed/portlets/selector/resources/PortletSelector_ko.properties (working copy) @@ -15,6 +15,26 @@ # # +category.name=\uce74\ud14c\uace0\ub9ac \uc774\ub984 select=\uc120\ud0dd -category=\uce74\ud14c\uace0\ub9ac - +add=\ucd94\uac00 +categories=\uce74\ud14c\uace0\ub9ac +search=\uac80\uc0c9 +refresh=\uc0c8\ub85c\uace0\uce68 +next=\ub2e4\uc74c +last=\ub9c8\uc9c0\ub9c9 +previous=\uc774\uc804 +first=\ucc98\uc74c +search.portlet=\ud3ec\ud2c0\ub9bf \uac80\uc0c9 +goback=\ub4a4\ub85c +count=\uac2f\uc218 +save=\uc800\uc7a5 +edit.category=\uce74\ud14c\uace0\ub9ac \uc124\uc815 +edit.grid=\ud654\uba74 \ubc30\uc5f4 \uc124\uc815 +add.category=\uce74\ud14c\uace0\ub9ac \ucd94\uac00 +remove.category=\uce74\ud14c\uace0\ub9ac \uc0ad\uc81c +rows=\ud589 \uac2f\uc218 +columns=\uc5f4 \uac2f\uc218 +cancel=\ucde8\uc18c +keywords=\ud0a4\uc6cc\ub4dc +ok=\ud655\uc778 Index: applications/j2-admin/src/webapp/WEB-INF/view/selectors/category-edit-selector.vm =================================================================== --- applications/j2-admin/src/webapp/WEB-INF/view/selectors/category-edit-selector.vm (revision 600768) +++ applications/j2-admin/src/webapp/WEB-INF/view/selectors/category-edit-selector.vm (working copy) @@ -1,9 +1,9 @@ #* -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 +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 @@ -14,15 +14,16 @@ See the License for the specific language governing permissions and limitations under the License. *# +#set ($messages = $portletConfig.getResourceBundle($renderRequest.Locale))
-
Category Name: 
+
$messages.getString("category.name"): 
- +
Category Name:$messages.getString("category.name"):
@@ -44,8 +45,8 @@ layoutAlign="right" style="padding: 4px; border-right: thin inset grey; width: 78%; height: 30px">
- - + +
@@ -58,36 +59,36 @@ - + + - + - +
Categories: $messages.getString("categories"):  -Keywords: $messages.getString("keywords"): 
- + - +
Rows: $messages.getString("rows"):  Columns: $messages.getString("columns"): 
- - + + Index: applications/j2-admin/src/webapp/WEB-INF/view/selectors/category-portlet-selector.vm =================================================================== --- applications/j2-admin/src/webapp/WEB-INF/view/selectors/category-portlet-selector.vm (revision 600746) +++ applications/j2-admin/src/webapp/WEB-INF/view/selectors/category-portlet-selector.vm (working copy) @@ -17,17 +17,17 @@ #set ($refreshLink = $renderResponse.createActionURL()) $refreshLink.setParameter("reset","true") #set ($renderLink = $renderResponse.createActionURL()) - +#set ($messages = $portletConfig.getResourceBundle($renderRequest.Locale)) #set ($portalContextPath=$renderRequest.getAttribute("org.apache.jetspeed.request.RequestContext").request.contextPath) - +
Search for portlets: $messages.getString("search.portlet"):  - - + + @@ -87,7 +87,7 @@ var cell = document.getElementById(theNewPortlet); if (cell != null) { - cell.innerHTML = "Count: " + selectorPortlets[pID].count; // TODO: localize + cell.innerHTML = "$messages.getString("count"): " + selectorPortlets[pID].count; // TODO: localize } } function performSearch() @@ -152,12 +152,12 @@ if (Pagenumber != 1) { a = document.createElement("a"); - a.innerHTML = 'Previous'; + a.innerHTML = '$messages.getString("previous")'; a.href = "javascript:displayPortlets(" + "\"" + (Pagenumber-1)+ "\"" + ")"; pgCol.appendChild(a); pgCol = pgRoww.insertCell(1); a = document.createElement("a"); - a.innerHTML = 'First'; + a.innerHTML = '$messages.getString("first")'; a.href = "javascript:displayPortlets(" + "\"" + 1+ "\"" + ")"; pgCol.appendChild(a); } @@ -187,12 +187,12 @@ if (PageCount > 1) { a = document.createElement("a"); - a.innerHTML = 'Last'; + a.innerHTML = '$messages.getString("last")'; a.href = "javascript:displayPortlets(" + "\"" + PageCount+ "\"" + ")"; pgCol.appendChild(a); pgCol = pgRoww.insertCell(1); a = document.createElement("a"); - a.innerHTML = 'Next'; + a.innerHTML = '$messages.getString("next")'; a.href = "javascript:displayPortlets(" + "\"" + (parseInt(Pagenumber)+1)+ "\"" + ")"; pgCol.appendChild(a); } @@ -226,7 +226,7 @@ c1.appendChild(a); var c2 = row.insertCell(i+1); var a2 = document.createElement("a"); - a2.innerHTML = "[Go Back]"; // TODO: localize + a2.innerHTML = "[$messages.getString("goback")]"; // TODO: localize // TODO: determine if JETSPEED or DESKTOP a2.href = getReturnURL(); a2.setAttribute("style", "font-weight:normal"); @@ -291,12 +291,12 @@ c0 = row3.insertCell(0); c0.setAttribute("style","font-size: 8pt; color: blue;"); var a = document.createElement("a"); - a.innerHTML = "Add"; // TODO: localize + a.innerHTML = "$messages.getString("add")"; // TODO: localize a.href = "javascript:addPortletToPage("+"\""+selectorPortlets[iz].name+"\""+",\"" + iz + "\")"; c0.appendChild(a); c1 = row3.insertCell(1); // TODO: localize - c1.innerHTML = "Count: " + selectorPortlets[iz].count; + c1.innerHTML = "$messages.getString("count"): " + selectorPortlets[iz].count; c1.setAttribute("style","font-size: 8pt; color: blue;"); c1.setAttribute("id", selectorPortlets[iz].name);