From 4e471a68a269d69300fdadce5b24eb7ec06931de Mon Sep 17 00:00:00 2001 From: Akihiro Motoki Date: Sat, 25 Mar 2017 14:54:56 +0000 Subject: [PATCH] Do not include HTML tags in blocktrans It is not a good idea to include HTML tags in blocktrans. This confused translators and potentially leads to translation error. In this case, there is no need to do so. This commit moves HTML tags outside of blocktrans. Change-Id: I6f45f1331de8fd5ca4b33f45b008f913dd325a13 --- .../instances/_flavors_and_quotas.html | 38 ++++++++++++------- 1 file changed, 25 insertions(+), 13 deletions(-) diff --git a/openstack_dashboard/dashboards/project/instances/templates/instances/_flavors_and_quotas.html b/openstack_dashboard/dashboards/project/instances/templates/instances/_flavors_and_quotas.html index 818163f35e..180ef08d53 100644 --- a/openstack_dashboard/dashboards/project/instances/templates/instances/_flavors_and_quotas.html +++ b/openstack_dashboard/dashboards/project/instances/templates/instances/_flavors_and_quotas.html @@ -19,9 +19,11 @@

{% trans "Project Limits" %}

{% trans "Number of Instances" %} - {% blocktrans trimmed with used=usages.totalInstancesUsed|intcomma quota=usages.maxTotalInstances|intcomma|quotainf %} - {{ used }} of {{ quota }} Used - {% endblocktrans %} + + {% blocktrans trimmed with used=usages.totalInstancesUsed|intcomma quota=usages.maxTotalInstances|intcomma|quotainf %} + {{ used }} of {{ quota }} Used + {% endblocktrans %} +
{{ minifyspace }} @@ -37,9 +39,11 @@
{% trans "Number of VCPUs" %} - {% blocktrans trimmed with used=usages.totalCoresUsed|intcomma quota=usages.maxTotalCores|intcomma|quotainf %} - {{ used }} of {{ quota }} Used - {% endblocktrans %} + + {% blocktrans trimmed with used=usages.totalCoresUsed|intcomma quota=usages.maxTotalCores|intcomma|quotainf %} + {{ used }} of {{ quota }} Used + {% endblocktrans %} +
{{ minifyspace }} @@ -55,9 +59,11 @@
{% trans "Total RAM" %} - {% blocktrans trimmed with used=usages.totalRAMUsed|intcomma quota=usages.maxTotalRAMSize|intcomma|quotainf %} - {{ used }} of {{ quota }} MB Used - {% endblocktrans %} + + {% blocktrans trimmed with used=usages.totalRAMUsed|intcomma quota=usages.maxTotalRAMSize|intcomma|quotainf %} + {{ used }} of {{ quota }} MB Used + {% endblocktrans %} +
{{ minifyspace }} @@ -74,8 +80,11 @@ {% if cinder_enabled %}
{% trans "Number of Volumes" %} - {% blocktrans with used=usages.totalVolumesUsed|intcomma quota=usages.maxTotalVolumes|intcomma|quotainf %} - {{ used }} of {{ quota }} Used{% endblocktrans %} + + {% blocktrans with used=usages.totalVolumesUsed|intcomma quota=usages.maxTotalVolumes|intcomma|quotainf %} + {{ used }} of {{ quota }} Used + {% endblocktrans %} +
{% trans "Total Volume Storage" %} - {% blocktrans with used=usages.gigabytesUsed|intcomma quota=usages.maxTotalVolumeGigabytes|intcomma|quotainf %} - {{ used }} of {{ quota }} GiB Used{% endblocktrans %} + + {% blocktrans with used=usages.gigabytesUsed|intcomma quota=usages.maxTotalVolumeGigabytes|intcomma|quotainf %} + {{ used }} of {{ quota }} GiB Used + {% endblocktrans %} +