]> source.dussan.org Git - archiva.git/commitdiff
add missing i18n in network proxies screen
authorOlivier Lamy <olamy@apache.org>
Tue, 31 Jan 2012 14:41:32 +0000 (14:41 +0000)
committerOlivier Lamy <olamy@apache.org>
Tue, 31 Jan 2012 14:41:32 +0000 (14:41 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1238625 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-web-common/src/main/resources/org/apache/archiva/i18n/default.properties
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/network-proxies.js

index 53f74cb5296be8746c5a311ccc6e4fd00bb0e4d1..7618b750b06b979c5e35d7f6256ce52eea443587 100644 (file)
@@ -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
index 367d20eeefab02456e0833b890bcde4f51e341c9..02da1b7c7230ea664ac98d3d5cf656505e409034 100644 (file)
@@ -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) {