diff options
author | Olivier Lamy <olamy@apache.org> | 2012-01-31 14:41:32 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2012-01-31 14:41:32 +0000 |
commit | d7e65bb592f3fd9d29e88ede848a6ef398427998 (patch) | |
tree | db8a6580749adcf71506c3645d6246bd38332141 | |
parent | 5db02d0bfa245f521a1751a3b81701dd85900ae8 (diff) | |
download | archiva-d7e65bb592f3fd9d29e88ede848a6ef398427998.tar.gz archiva-d7e65bb592f3fd9d29e88ede848a6ef398427998.zip |
add missing i18n in network proxies screen
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1238625 13f79535-47bb-0310-9956-ffa450edef68
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) { |