Author: ldywicki Date: Sun Feb 19 20:24:13 2012 New Revision: 1291053 URL: http://svn.apache.org/viewvc?rev=1291053&view=rev Log: English translation for core and clean up of core markup. Use shorter method for getting translated string.
Added: karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/dashboard/package.properties karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/package.properties Modified: karaf/webconsole/trunk/core/src/main/java/org/apache/karaf/webconsole/core/dashboard/DashboardPage.java karaf/webconsole/trunk/core/src/main/java/org/apache/karaf/webconsole/core/navigation/markup/NavigationTopPanel.java karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/dashboard/DashboardPage.html karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/navigation/markup/LanguageTopPanel.html karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/navigation/markup/ModuleTabPanel.html karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/navigation/markup/NavigationTopPanel.html karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/page/LoginPage.html karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/page/SidebarPage.html karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/page/SinglePage.html karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/preferences/PreferencesPage.html karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/preferences/PreferencesPanel.html karaf/webconsole/trunk/osgi/core/src/main/java/org/apache/karaf/webconsole/osgi/core/bundle/list/link/RefreshLink.java karaf/webconsole/trunk/osgi/core/src/main/java/org/apache/karaf/webconsole/osgi/core/bundle/list/link/ResolveLink.java karaf/webconsole/trunk/osgi/core/src/main/java/org/apache/karaf/webconsole/osgi/core/bundle/list/link/StartLink.java karaf/webconsole/trunk/osgi/core/src/main/java/org/apache/karaf/webconsole/osgi/core/bundle/list/link/StopLink.java karaf/webconsole/trunk/osgi/core/src/main/java/org/apache/karaf/webconsole/osgi/core/bundle/list/link/UninstallLink.java karaf/webconsole/trunk/osgi/core/src/main/java/org/apache/karaf/webconsole/osgi/core/bundle/list/link/UpdateLink.java karaf/webconsole/trunk/osgi/core/src/main/resources/org/apache/karaf/webconsole/osgi/core/bundle/install/InstallBundlePage.html Modified: karaf/webconsole/trunk/core/src/main/java/org/apache/karaf/webconsole/core/dashboard/DashboardPage.java URL: http://svn.apache.org/viewvc/karaf/webconsole/trunk/core/src/main/java/org/apache/karaf/webconsole/core/dashboard/DashboardPage.java?rev=1291053&r1=1291052&r2=1291053&view=diff ============================================================================== --- karaf/webconsole/trunk/core/src/main/java/org/apache/karaf/webconsole/core/dashboard/DashboardPage.java (original) +++ karaf/webconsole/trunk/core/src/main/java/org/apache/karaf/webconsole/core/dashboard/DashboardPage.java Sun Feb 19 20:24:13 2012 @@ -41,7 +41,7 @@ public class DashboardPage extends Singl public DashboardPage(PageParameters parameters) { add(CSSPackageResource.getHeaderContribution(DashboardPage.class, "dashboard.css")); - add(new Label("noWidgets", "So far there is no widgets to display") { + add(new Label("noWidgets", getString("widgets.empty")) { private static final long serialVersionUID = 1L; @Override Modified: karaf/webconsole/trunk/core/src/main/java/org/apache/karaf/webconsole/core/navigation/markup/NavigationTopPanel.java URL: http://svn.apache.org/viewvc/karaf/webconsole/trunk/core/src/main/java/org/apache/karaf/webconsole/core/navigation/markup/NavigationTopPanel.java?rev=1291053&r1=1291052&r2=1291053&view=diff ============================================================================== --- karaf/webconsole/trunk/core/src/main/java/org/apache/karaf/webconsole/core/navigation/markup/NavigationTopPanel.java (original) +++ karaf/webconsole/trunk/core/src/main/java/org/apache/karaf/webconsole/core/navigation/markup/NavigationTopPanel.java Sun Feb 19 20:24:13 2012 @@ -36,7 +36,6 @@ import org.apache.wicket.markup.html.lis import org.apache.wicket.markup.repeater.RepeatingView; import org.apache.wicket.model.IModel; import org.apache.wicket.model.Model; -import org.apache.wicket.model.StringResourceModel; import org.ops4j.pax.wicket.api.PaxWicketBean; import org.osgi.service.prefs.PreferencesService; @@ -64,10 +63,7 @@ public class NavigationTopPanel extends add(new Label("username", username)); add(new SecuredPageLink<PreferencesPage>("preferencesLink", PreferencesPage.class)); - Link<Void> aLink = new LogoutLink("logoutLink"); - aLink.add(new Label("label", new StringResourceModel("logout.link", this.getDefaultModel()))); - add(aLink); - + add(new LogoutLink("logoutLink")); } protected Component createTabList() { Modified: karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/dashboard/DashboardPage.html URL: http://svn.apache.org/viewvc/karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/dashboard/DashboardPage.html?rev=1291053&r1=1291052&r2=1291053&view=diff ============================================================================== --- karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/dashboard/DashboardPage.html (original) +++ karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/dashboard/DashboardPage.html Sun Feb 19 20:24:13 2012 @@ -16,15 +16,11 @@ limitations under the License. --> <wicket:extend xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd"> - <wicket:enclosure> - <span wicket:id="noWidgets">Info goes here</span> - </wicket:enclosure> + <span wicket:id="noWidgets"></span> <ul id="widgets"> <li wicket:id="widgets"> - <div wicket:id="widget"> - Widget content. - </div> + <div wicket:id="widget"></div> </li> </ul> </wicket:extend> \ No newline at end of file Added: karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/dashboard/package.properties URL: http://svn.apache.org/viewvc/karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/dashboard/package.properties?rev=1291053&view=auto ============================================================================== --- karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/dashboard/package.properties (added) +++ karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/dashboard/package.properties Sun Feb 19 20:24:13 2012 @@ -0,0 +1,17 @@ + # 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. + +# Dashboard page translations +widgets.empty So far there is no widgets to display \ No newline at end of file Modified: karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/navigation/markup/LanguageTopPanel.html URL: http://svn.apache.org/viewvc/karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/navigation/markup/LanguageTopPanel.html?rev=1291053&r1=1291052&r2=1291053&view=diff ============================================================================== --- karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/navigation/markup/LanguageTopPanel.html (original) +++ karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/navigation/markup/LanguageTopPanel.html Sun Feb 19 20:24:13 2012 @@ -22,13 +22,13 @@ <ul class="nav pull-right"> <li class="dropdown"> <a class="dropdown-toggle" data-toggle="dropdown"> - Language <b class="caret"></b> + <wicket:message key="language" /> <b class="caret"></b> </a> <ul class="dropdown-menu"> <li wicket:id="languages"> <a wicket:id="languageLink"> <img wicket:id="flag" /> - <span wicket:id="label">English</span> + <span wicket:id="label"></span> </a> </li> </ul> Modified: karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/navigation/markup/ModuleTabPanel.html URL: http://svn.apache.org/viewvc/karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/navigation/markup/ModuleTabPanel.html?rev=1291053&r1=1291052&r2=1291053&view=diff ============================================================================== --- karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/navigation/markup/ModuleTabPanel.html (original) +++ karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/navigation/markup/ModuleTabPanel.html Sun Feb 19 20:24:13 2012 @@ -20,7 +20,7 @@ <ul class="nav nav-tabs"> <li wicket:id="moduleLinks"> <a wicket:id="link"> - <span wicket:id="label">Label</span> + <span wicket:id="label"></span> </a> </li> </ul> Modified: karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/navigation/markup/NavigationTopPanel.html URL: http://svn.apache.org/viewvc/karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/navigation/markup/NavigationTopPanel.html?rev=1291053&r1=1291052&r2=1291053&view=diff ============================================================================== --- karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/navigation/markup/NavigationTopPanel.html (original) +++ karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/navigation/markup/NavigationTopPanel.html Sun Feb 19 20:24:13 2012 @@ -20,7 +20,7 @@ <ul class="nav"> <li wicket:id="tabs"> <a wicket:id="moduleLink"> - <span wicket:id="moduleLabel">Category</span> + <span wicket:id="moduleLabel"></span> </a> </li> <li class="divider-vertical"></li> @@ -31,19 +31,21 @@ <ul class="nav pull-right"> <li class="dropdown active"> <a href="#" data-toggle="dropdown" class="dropdown-toggle"> - <span wicket:id="username">Admin</span> + <span wicket:id="username"></span> <b class="caret"></b> </a> <ul class="dropdown-menu"> <li> <img wicket:id="avatar" /> - <a wicket:id="preferencesLink">Preferences</a> + <a wicket:id="preferencesLink"> + <wicket:message key="preferences" /> + </a> </li> </ul> </li> <li> <a wicket:id="logoutLink"> - <span wicket:id="label">Logout</span> + <wicket:message key="logout" /> </a> </li> Added: karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/package.properties URL: http://svn.apache.org/viewvc/karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/package.properties?rev=1291053&view=auto ============================================================================== --- karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/package.properties (added) +++ karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/package.properties Sun Feb 19 20:24:13 2012 @@ -0,0 +1,26 @@ + # 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. + +# common messages used in forms +install Install +confirm Confirm +cancel Cancel +reset Reset +details Details + +# header translations +language Language +preferences Preferences +logout Logout \ No newline at end of file Modified: karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/page/LoginPage.html URL: http://svn.apache.org/viewvc/karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/page/LoginPage.html?rev=1291053&r1=1291052&r2=1291053&view=diff ============================================================================== --- karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/page/LoginPage.html (original) +++ karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/page/LoginPage.html Sun Feb 19 20:24:13 2012 @@ -19,9 +19,7 @@ <div class="row-fluid" style="margin-top: 150px; margin-bottom: 150px"> <span class="span4"> </span> <div class="span4"> - <div wicket:id="signIn"> - Here will be sign in form. - </div> + <div wicket:id="signIn"></div> </div> <span class="span4"> </span> </div> Modified: karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/page/SidebarPage.html URL: http://svn.apache.org/viewvc/karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/page/SidebarPage.html?rev=1291053&r1=1291052&r2=1291053&view=diff ============================================================================== --- karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/page/SidebarPage.html (original) +++ karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/page/SidebarPage.html Sun Feb 19 20:24:13 2012 @@ -19,10 +19,10 @@ <div class="row-fluid"> <div class="span4"> - <div class="sidebar" wicket:id="sidebar">Sidebar goes here</div> + <div class="sidebar" wicket:id="sidebar"></div> </div> <div class="span8"> - <div wicket:id="feedback">Feedback stuff</div> + <div wicket:id="feedback"></div> <wicket:child /> </div> </div> Modified: karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/page/SinglePage.html URL: http://svn.apache.org/viewvc/karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/page/SinglePage.html?rev=1291053&r1=1291052&r2=1291053&view=diff ============================================================================== --- karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/page/SinglePage.html (original) +++ karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/page/SinglePage.html Sun Feb 19 20:24:13 2012 @@ -22,7 +22,7 @@ </div> <div class="row-fluid"> - <div wicket:id="feedback">Feedback stuff</div> + <div wicket:id="feedback"></div> <wicket:child /> </div> Modified: karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/preferences/PreferencesPage.html URL: http://svn.apache.org/viewvc/karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/preferences/PreferencesPage.html?rev=1291053&r1=1291052&r2=1291053&view=diff ============================================================================== --- karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/preferences/PreferencesPage.html (original) +++ karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/preferences/PreferencesPage.html Sun Feb 19 20:24:13 2012 @@ -18,9 +18,7 @@ <wicket:extend xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd"> <ul> <li wicket:id="preferences"> - <div wicket:id="preferencesPanel"> - Preference Panel - </div> + <div wicket:id="preferencesPanel"></div> </li> </ul> </wicket:extend> \ No newline at end of file Modified: karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/preferences/PreferencesPanel.html URL: http://svn.apache.org/viewvc/karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/preferences/PreferencesPanel.html?rev=1291053&r1=1291052&r2=1291053&view=diff ============================================================================== --- karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/preferences/PreferencesPanel.html (original) +++ karaf/webconsole/trunk/core/src/main/resources/org/apache/karaf/webconsole/core/preferences/PreferencesPanel.html Sun Feb 19 20:24:13 2012 @@ -20,14 +20,14 @@ <ul> <li wicket:id="preferences"> - <span wicket:id="key">key</span> - <span wicket:id="value">value</span> + <span wicket:id="key"></span> + <span wicket:id="value"></span> </li> </ul> <ul> <li wicket:id="children"> - <div wicket:id="child">child details</div> + <div wicket:id="child"></div> </li> </ul> </wicket:panel> \ No newline at end of file Modified: karaf/webconsole/trunk/osgi/core/src/main/java/org/apache/karaf/webconsole/osgi/core/bundle/list/link/RefreshLink.java URL: http://svn.apache.org/viewvc/karaf/webconsole/trunk/osgi/core/src/main/java/org/apache/karaf/webconsole/osgi/core/bundle/list/link/RefreshLink.java?rev=1291053&r1=1291052&r2=1291053&view=diff ============================================================================== --- karaf/webconsole/trunk/osgi/core/src/main/java/org/apache/karaf/webconsole/osgi/core/bundle/list/link/RefreshLink.java (original) +++ karaf/webconsole/trunk/osgi/core/src/main/java/org/apache/karaf/webconsole/osgi/core/bundle/list/link/RefreshLink.java Sun Feb 19 20:24:13 2012 @@ -49,9 +49,9 @@ public class RefreshLink extends Link<Bu try { admin.refreshPackages(new Bundle[] { bundle }); - Session.get().info(getLocalizer().getString("bundle.refresh", this, getModel())); + Session.get().info(getString("bundle.refresh", getModel())); } catch (Exception e) { - Session.get().info(getLocalizer().getString("bundle.refresh.fail", this, Model.of(e))); + Session.get().info(getString("bundle.refresh.fail", Model.of(e))); } RequestCycle.get().setResponsePage(BundlePage.class); } Modified: karaf/webconsole/trunk/osgi/core/src/main/java/org/apache/karaf/webconsole/osgi/core/bundle/list/link/ResolveLink.java URL: http://svn.apache.org/viewvc/karaf/webconsole/trunk/osgi/core/src/main/java/org/apache/karaf/webconsole/osgi/core/bundle/list/link/ResolveLink.java?rev=1291053&r1=1291052&r2=1291053&view=diff ============================================================================== --- karaf/webconsole/trunk/osgi/core/src/main/java/org/apache/karaf/webconsole/osgi/core/bundle/list/link/ResolveLink.java (original) +++ karaf/webconsole/trunk/osgi/core/src/main/java/org/apache/karaf/webconsole/osgi/core/bundle/list/link/ResolveLink.java Sun Feb 19 20:24:13 2012 @@ -49,9 +49,9 @@ public class ResolveLink extends Link<Bu try { admin.resolveBundles(new Bundle[] { bundle }); - Session.get().info(getLocalizer().getString("bundle.resolve", this, getModel())); + Session.get().info(getString("bundle.resolve", getModel())); } catch (Exception e) { - Session.get().info(getLocalizer().getString("bundle.resolve.fail", this, Model.of(e))); + Session.get().info(getString("bundle.resolve.fail", Model.of(e))); } RequestCycle.get().setResponsePage(BundlePage.class); } Modified: karaf/webconsole/trunk/osgi/core/src/main/java/org/apache/karaf/webconsole/osgi/core/bundle/list/link/StartLink.java URL: http://svn.apache.org/viewvc/karaf/webconsole/trunk/osgi/core/src/main/java/org/apache/karaf/webconsole/osgi/core/bundle/list/link/StartLink.java?rev=1291053&r1=1291052&r2=1291053&view=diff ============================================================================== --- karaf/webconsole/trunk/osgi/core/src/main/java/org/apache/karaf/webconsole/osgi/core/bundle/list/link/StartLink.java (original) +++ karaf/webconsole/trunk/osgi/core/src/main/java/org/apache/karaf/webconsole/osgi/core/bundle/list/link/StartLink.java Sun Feb 19 20:24:13 2012 @@ -44,9 +44,9 @@ public class StartLink extends Link<Bund try { bundle.start(); - Session.get().info(getLocalizer().getString("bundle.start", this, getModel())); + Session.get().info(getString("bundle.start", getModel())); } catch (BundleException e) { - Session.get().error(getLocalizer().getString("bundle.start.fail", this, Model.of(e))); + Session.get().error(getString("bundle.start.fail", Model.of(e))); } RequestCycle.get().setResponsePage(BundlePage.class); } Modified: karaf/webconsole/trunk/osgi/core/src/main/java/org/apache/karaf/webconsole/osgi/core/bundle/list/link/StopLink.java URL: http://svn.apache.org/viewvc/karaf/webconsole/trunk/osgi/core/src/main/java/org/apache/karaf/webconsole/osgi/core/bundle/list/link/StopLink.java?rev=1291053&r1=1291052&r2=1291053&view=diff ============================================================================== --- karaf/webconsole/trunk/osgi/core/src/main/java/org/apache/karaf/webconsole/osgi/core/bundle/list/link/StopLink.java (original) +++ karaf/webconsole/trunk/osgi/core/src/main/java/org/apache/karaf/webconsole/osgi/core/bundle/list/link/StopLink.java Sun Feb 19 20:24:13 2012 @@ -44,9 +44,9 @@ public class StopLink extends Link<Bundl try { bundle.stop(); - Session.get().info(getLocalizer().getString("bundle.stop", this, getModel())); + Session.get().info(getString("bundle.stop", getModel())); } catch (BundleException e) { - Session.get().error(getLocalizer().getString("bundle.stop.fail", this, Model.of(e))); + Session.get().error(getString("bundle.stop.fail", Model.of(e))); } RequestCycle.get().setResponsePage(BundlePage.class); } Modified: karaf/webconsole/trunk/osgi/core/src/main/java/org/apache/karaf/webconsole/osgi/core/bundle/list/link/UninstallLink.java URL: http://svn.apache.org/viewvc/karaf/webconsole/trunk/osgi/core/src/main/java/org/apache/karaf/webconsole/osgi/core/bundle/list/link/UninstallLink.java?rev=1291053&r1=1291052&r2=1291053&view=diff ============================================================================== --- karaf/webconsole/trunk/osgi/core/src/main/java/org/apache/karaf/webconsole/osgi/core/bundle/list/link/UninstallLink.java (original) +++ karaf/webconsole/trunk/osgi/core/src/main/java/org/apache/karaf/webconsole/osgi/core/bundle/list/link/UninstallLink.java Sun Feb 19 20:24:13 2012 @@ -44,9 +44,9 @@ public class UninstallLink extends Link< try { bundle.uninstall(); - Session.get().info(getLocalizer().getString("bundle.uninstall", this, getModel())); + Session.get().info(getString("bundle.uninstall", getModel())); } catch (BundleException e) { - Session.get().error(getLocalizer().getString("bundle.uninstall.fail", this, Model.of(e))); + Session.get().error(getString("bundle.uninstall.fail", Model.of(e))); } RequestCycle.get().setResponsePage(BundlePage.class); } Modified: karaf/webconsole/trunk/osgi/core/src/main/java/org/apache/karaf/webconsole/osgi/core/bundle/list/link/UpdateLink.java URL: http://svn.apache.org/viewvc/karaf/webconsole/trunk/osgi/core/src/main/java/org/apache/karaf/webconsole/osgi/core/bundle/list/link/UpdateLink.java?rev=1291053&r1=1291052&r2=1291053&view=diff ============================================================================== --- karaf/webconsole/trunk/osgi/core/src/main/java/org/apache/karaf/webconsole/osgi/core/bundle/list/link/UpdateLink.java (original) +++ karaf/webconsole/trunk/osgi/core/src/main/java/org/apache/karaf/webconsole/osgi/core/bundle/list/link/UpdateLink.java Sun Feb 19 20:24:13 2012 @@ -45,9 +45,9 @@ public class UpdateLink extends Link<Bun try { bundle.update(); - Session.get().info(getLocalizer().getString("bundle.update", this, getModel())); + Session.get().info(getString("bundle.update", getModel())); } catch (BundleException e) { - Session.get().error(getLocalizer().getString("bundle.update.fail", this, Model.of(e))); + Session.get().error(getString("bundle.update.fail", Model.of(e))); } RequestCycle.get().setResponsePage(BundlePage.class); } Modified: karaf/webconsole/trunk/osgi/core/src/main/resources/org/apache/karaf/webconsole/osgi/core/bundle/install/InstallBundlePage.html URL: http://svn.apache.org/viewvc/karaf/webconsole/trunk/osgi/core/src/main/resources/org/apache/karaf/webconsole/osgi/core/bundle/install/InstallBundlePage.html?rev=1291053&r1=1291052&r2=1291053&view=diff ============================================================================== --- karaf/webconsole/trunk/osgi/core/src/main/resources/org/apache/karaf/webconsole/osgi/core/bundle/install/InstallBundlePage.html (original) +++ karaf/webconsole/trunk/osgi/core/src/main/resources/org/apache/karaf/webconsole/osgi/core/bundle/install/InstallBundlePage.html Sun Feb 19 20:24:13 2012 @@ -16,15 +16,19 @@ limitations under the License. --> <wicket:extend xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd"> - <h1>Install bundle</h1> + <h1><wicket:message key="bundle.install" /></h1> <form wicket:id="install"> <div wicket:id="bundle"> </div> <div class="form-actions"> - <button type="submit" class="btn btn-primary" wicket:id="confirm">Install</button> - <a class="btn" wicket:id="cancel">Cancel</a> + <a type="submit" class="btn btn-primary" wicket:id="confirm"> + <wicket:message key="confirm" /> + </a> + <a class="btn" wicket:id="cancel"> + <wicket:message key="cancel" /> + </a> </div> </form> </wicket:extend> \ No newline at end of file