From 5e855ddba828179b9d424d173ce58927c6ecdbd1 Mon Sep 17 00:00:00 2001 From: hgangwx Date: Mon, 28 Dec 2015 15:08:25 +0800 Subject: [PATCH] Wrong usage of "an" Wrong usage of "an" in the mesages: "Width an height of the chart will be taken from chart wrapper" "an flavor. By default this will return the flavors" "allocate an floating IP" "Each item is an namespace" Should be: "Width and height of the chart will be taken from chart wrapper" "a flavor. By default this will return the flavors" "allocate a floating IP" "Each item is a namespace" Totally 5 occasions in Horizon base code. Change-Id: I154257da9c93b33fc7353e2e642e9e406978162b --- horizon/static/horizon/js/horizon.d3barchart.js | 2 +- horizon/static/horizon/js/horizon.d3linechart.js | 2 +- openstack_dashboard/api/network_base.py | 2 +- openstack_dashboard/api/rest/nova.py | 2 +- .../static/app/core/openstack-service-api/glance.service.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/horizon/static/horizon/js/horizon.d3barchart.js b/horizon/static/horizon/js/horizon.d3barchart.js index f2980eb049..f1e705099f 100644 --- a/horizon/static/horizon/js/horizon.d3barchart.js +++ b/horizon/static/horizon/js/horizon.d3barchart.js @@ -707,7 +707,7 @@ horizon.d3_bar_chart = { var svg = jquery_element.find('svg'); svg.hide(); - // Width an height of the chart will be taken from chart wrapper, + // Width and height of the chart will be taken from chart wrapper, // that can be styled by css. var width = jquery_element.width(); diff --git a/horizon/static/horizon/js/horizon.d3linechart.js b/horizon/static/horizon/js/horizon.d3linechart.js index e4f366f1a1..dcd080d1c0 100644 --- a/horizon/static/horizon/js/horizon.d3linechart.js +++ b/horizon/static/horizon/js/horizon.d3linechart.js @@ -337,7 +337,7 @@ horizon.d3_line_chart = { svg.hide(); /* - Width an height of the chart will be taken from chart wrapper, + Width and height of the chart will be taken from chart wrapper, that can be styled by css. */ self.width = jquery_element.width(); diff --git a/openstack_dashboard/api/network_base.py b/openstack_dashboard/api/network_base.py index 3acda5d42b..af4a28fd82 100644 --- a/openstack_dashboard/api/network_base.py +++ b/openstack_dashboard/api/network_base.py @@ -71,7 +71,7 @@ class FloatingIpManager(object): """Allocates a floating IP to the tenant. You must provide a pool name or id for which you would like to - allocate an floating IP. + allocate a floating IP. """ pass diff --git a/openstack_dashboard/api/rest/nova.py b/openstack_dashboard/api/rest/nova.py index ce2793fbda..9cfead0d43 100644 --- a/openstack_dashboard/api/rest/nova.py +++ b/openstack_dashboard/api/rest/nova.py @@ -241,7 +241,7 @@ class Flavors(generic.View): """Get a list of flavors. The listing result is an object with property "items". Each item is - an flavor. By default this will return the flavors for the user's + a flavor. By default this will return the flavors for the user's current project. If the user is admin, public flavors will also be returned. diff --git a/openstack_dashboard/static/app/core/openstack-service-api/glance.service.js b/openstack_dashboard/static/app/core/openstack-service-api/glance.service.js index 79aac59935..ac188c3d1c 100644 --- a/openstack_dashboard/static/app/core/openstack-service-api/glance.service.js +++ b/openstack_dashboard/static/app/core/openstack-service-api/glance.service.js @@ -290,7 +290,7 @@ * http://docs.openstack.org/developer/glance/metadefs-concepts.html * * The listing result is an object with property "items". Each item is - * an namespace. + * a namespace. * * @description * Get a list of namespaces.