From 3487f20ade6b353a032c79953f7ddc03d8293a3a Mon Sep 17 00:00:00 2001 From: Hector Sanjuan Date: Thu, 30 Aug 2012 13:45:45 +0200 Subject: [PATCH] Several small i18n-related bugfixes in Sunstone and Selfservice. Pointed out by ViVOSS i OI (cherry picked from commit aab60b83204fe6afca28e4c9e62db77947a46d39) --- src/cloud/occi/lib/ui/public/js/plugins/compute.js | 2 +- src/sunstone/public/css/application.css | 3 ++- src/sunstone/public/js/plugins/vms-tab.js | 4 ++-- src/sunstone/public/js/plugins/vnets-tab.js | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/cloud/occi/lib/ui/public/js/plugins/compute.js b/src/cloud/occi/lib/ui/public/js/plugins/compute.js index ccaf3e8714..05441efcf9 100644 --- a/src/cloud/occi/lib/ui/public/js/plugins/compute.js +++ b/src/cloud/occi/lib/ui/public/js/plugins/compute.js @@ -96,7 +96,7 @@ var create_vm_tmpl ='
\
\ \ \ -
'+tr("You can use the wildcard %. When creating several VMs, % will be replaced with a different number starting from 0 in each of them")+'.
\ +
'+tr("You can use the wildcard %i. When creating several VMs, %i will be replaced with a different number starting from 0 in each of them")+'.
\
\ \
\ diff --git a/src/sunstone/public/css/application.css b/src/sunstone/public/css/application.css index 12d2eed4ac..2d5a886f83 100644 --- a/src/sunstone/public/css/application.css +++ b/src/sunstone/public/css/application.css @@ -336,7 +336,8 @@ textarea:focus{ .add_button { margin-left:148px; - width:58px !important; + /* In some languages the word add is longer */ + width:58px !important;*/ } .remove_button { diff --git a/src/sunstone/public/js/plugins/vms-tab.js b/src/sunstone/public/js/plugins/vms-tab.js index 7c3aa530df..f1ade8b8e0 100644 --- a/src/sunstone/public/js/plugins/vms-tab.js +++ b/src/sunstone/public/js/plugins/vms-tab.js @@ -112,7 +112,7 @@ var create_vm_tmpl ='\
\ \ \ -
'+tr("You can use the wildcard %. When creating several VMs, %i will be replaced with a different number starting from 0 in each of them")+'.
\ +
'+tr("You can use the wildcard %i. When creating several VMs, %i will be replaced with a different number starting from 0 in each of them")+'.
\
\
\ \ @@ -1202,7 +1202,7 @@ function printDisks(vm_info){ -->\ \ \ - \ + \ \ \ \ diff --git a/src/sunstone/public/js/plugins/vnets-tab.js b/src/sunstone/public/js/plugins/vnets-tab.js index 4786f81faa..9736607a99 100644 --- a/src/sunstone/public/js/plugins/vnets-tab.js +++ b/src/sunstone/public/js/plugins/vnets-tab.js @@ -633,7 +633,7 @@ function updateVNetworkInfo(request,vn){ }; var leases_tab = { - title: "Lease management", + title: tr("Lease management"), content: printLeases(vn_info) };