incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jessicaw...@apache.org
Subject git commit: cloudstack 3.0 UI - VPC widget - localize text (Reviewed-by: Brian)
Date Tue, 28 Aug 2012 23:00:07 GMT
Updated Branches:
  refs/heads/master 5b556e202 -> bbf8bed8e


cloudstack 3.0 UI - VPC widget - localize text (Reviewed-by: Brian)


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/bbf8bed8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/bbf8bed8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/bbf8bed8

Branch: refs/heads/master
Commit: bbf8bed8eedfd278c25a7d424f6a7c0357b41e05
Parents: 5b556e2
Author: Jessica Wang <jessica.wang@citrix.com>
Authored: Tue Aug 28 15:41:23 2012 -0700
Committer: Jessica Wang <jessica.wang@citrix.com>
Committed: Tue Aug 28 15:59:46 2012 -0700

----------------------------------------------------------------------
 ui/scripts/ui-custom/vpc.js |   26 +++++++++++++-------------
 1 files changed, 13 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/bbf8bed8/ui/scripts/ui-custom/vpc.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui-custom/vpc.js b/ui/scripts/ui-custom/vpc.js
index 03f2dbe..dce30c0 100644
--- a/ui/scripts/ui-custom/vpc.js
+++ b/ui/scripts/ui-custom/vpc.js
@@ -29,7 +29,7 @@
       // Show ACL dialog
       if (isDialog) {
         $acl.dialog({
-          title: 'Configure Network ACLs',
+          title: _l('label.configure.network.ACLs'),
           dialogClass: 'configure-acl',
           width: 900,
           height: 600,
@@ -53,10 +53,10 @@
       var gateways = args.gateways;
       var siteToSiteVPN = args.siteToSiteVPN;
       var links = {
-        'ip-addresses': 'IP Addresses',
-        'gateways': 'Private Gateway',
-        'site-to-site-vpn': 'Site-to-site VPN',
-        'network-acls':  'Network ACLs'
+        'ip-addresses': _l('label.menu.ipaddresses'),
+        'gateways': _l('label.private.Gateway'),
+        'site-to-site-vpn': _l('label.site.to.site.VPN'),
+        'network-acls':  _l('label.network.ACLs')
       };
       var $links = $('<ul>').addClass('links');
       var $tooltip = $('<div>').addClass('vpc-configure-tooltip').append(
@@ -77,7 +77,7 @@
           switch (id) {
           case 'network-acls':
               $browser.cloudBrowser('addPanel', {
-              title: 'Network ACLs',
+              title: _l('label.network.ACLs'),
               maximizeIfSelected: true,
               complete: function($panel) {
                 $panel.listView(
@@ -85,7 +85,7 @@
                     listView: {
                       actions: {
                         add: {
-                          label: 'Add network ACL',
+                          label: 'label.add.network.ACL',
                           action: {
                             custom: function() {
                               elems.aclDialog({
@@ -116,7 +116,7 @@
 
           case 'ip-addresses':
             $browser.cloudBrowser('addPanel', {
-              title: 'IP Addresses',
+              title: _l('label.menu.ipaddresses'),
               maximizeIfSelected: true,
               complete: function($panel) {
                 //ipAddresses.listView is a function
@@ -130,7 +130,7 @@
             var isGatewayPresent = addAction.preCheck({ context: gateways.context });
             var showGatewayListView = function() {
               $browser.cloudBrowser('addPanel', {
-                title: 'Private Gateway',
+                title: _l('label.private.Gateway'),
                 maximizeIfSelected: true,
                 complete: function($panel) {
                   $panel.listView(gateways.listView(), { context: gateways.context });
@@ -193,7 +193,7 @@
             var isVPNPresent = addAction.preCheck({ context: siteToSiteVPN.context });
             var showVPNListView = function() {
               $browser.cloudBrowser('addPanel', {
-                title: 'Site-to-site VPN',
+                title: _l('label.site.to.site.VPN'),
                 maximizeIfSelected: true,
                 complete: function($panel) {
                   $panel.listView(siteToSiteVPN, {context: siteToSiteVPN.context});
@@ -320,7 +320,7 @@
         if ($router.hasClass('disabled')) return false;
 
         $browser.cloudBrowser('addPanel', {
-          title: 'VPC router details',
+          title: _l('label.VPC.router.details'),
           complete: function($panel) {
             $panel.detailView(detailView);
           }
@@ -376,7 +376,7 @@
 
         $dialog.append($listView);
         $dialog.dialog({
-          title: 'VMs in tier: ' + name,
+          title: _l('label.VMs.in.tier') + ': ' + name,
           dialogClass: 'multi-edit-add-list panel configure-acl',
           width: 825,
           height: 600,
@@ -840,7 +840,7 @@
 
       $browser.cloudBrowser('addPanel', {
         maximizeIfSelected: true,
-        title: 'Configure VPC: ' + vpc.name,
+        title: _l('label.configure.vpc') + ': ' + vpc.name,
         complete: function($panel) {
           var $loading = $('<div>').addClass('loading-overlay').appendTo($panel);
 


Mime
View raw message