From d7e65bb592f3fd9d29e88ede848a6ef398427998 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Tue, 31 Jan 2012 14:41:32 +0000 Subject: [PATCH] add missing i18n in network proxies screen git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1238625 13f79535-47bb-0310-9956-ffa450edef68 --- .../resources/org/apache/archiva/i18n/default.properties | 3 +++ .../src/main/webapp/js/archiva/network-proxies.js | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/archiva-modules/archiva-web/archiva-web-common/src/main/resources/org/apache/archiva/i18n/default.properties b/archiva-modules/archiva-web/archiva-web-common/src/main/resources/org/apache/archiva/i18n/default.properties index 53f74cb52..7618b750b 100644 --- a/archiva-modules/archiva-web/archiva-web-common/src/main/resources/org/apache/archiva/i18n/default.properties +++ b/archiva-modules/archiva-web/archiva-web-common/src/main/resources/org/apache/archiva/i18n/default.properties @@ -95,8 +95,11 @@ proxy-connectors.remoterepo.settings.networkproxy=Network Proxy #network proxy networkproxy.updated=Network Proxy " {0} " updated. +networkproxy.added=Network Proxy " {0} " added. network-proxies.grid.tab.title=Network Proxies network-proxies.list=Network Proxies +networkproxy.delete.confirm=Are you sure to delete Network Proxy {0} +networkproxy.deleted=Network Proxy {0} deleted #menu menu.users=User Management diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/network-proxies.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/network-proxies.js index 367d20eee..02da1b7c7 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/network-proxies.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/network-proxies.js @@ -93,8 +93,9 @@ $(function() { data: "{\"networkProxy\": " + ko.toJSON(networkProxy)+"}", dataType: 'json', success: function(data) { + self.networkProxy.modified(false); self.networkProxiesViewModel.networkProxies.push(self.networkProxy); - displaySuccessMessage($.i18n.prop('networkproxy.added')); + displaySuccessMessage($.i18n.prop('networkproxy.added',self.networkProxy.id())); activateNetworkProxiesGridTab(); }, error: function(data) { @@ -163,7 +164,7 @@ $(function() { success: function(data) { self.networkProxies.remove(networkProxy); clearUserMessages(); - displaySuccessMessage($.i18n.prop('networkproxy.deleted')); + displaySuccessMessage($.i18n.prop('networkproxy.deleted',networkProxy.id())); activateNetworkProxiesGridTab(); }, error: function(data) { -- 2.39.5