From 1c84b18d192766a26b4375d4f7a2cf152d991e74 Mon Sep 17 00:00:00 2001 From: Akihiro Motoki Date: Fri, 8 Aug 2014 03:18:25 +0900 Subject: [PATCH] Make some new strings translator friendly _usage_summary.html: blocktrans contains non-simple HTML tags and the range of blocktrans seems natural. This commit split blocktrans into the start and end part of the period. templates/images/properties/_edit.html: The sensence and the value are concatenated in the code and translators cannot control the word order. Change-Id: I3021d67dcb20968b785a8a98ed639a128e3412f2 Closes-Bug: #1354125 --- horizon/templates/horizon/common/_usage_summary.html | 5 +++-- .../admin/images/templates/images/properties/_edit.html | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/horizon/templates/horizon/common/_usage_summary.html b/horizon/templates/horizon/common/_usage_summary.html index 0dfe9e218f..ac0cb8ae5b 100644 --- a/horizon/templates/horizon/common/_usage_summary.html +++ b/horizon/templates/horizon/common/_usage_summary.html @@ -6,10 +6,11 @@

{% trans "Select a period of time to query its usage" %}:

- {% blocktrans with start=form.start end=form.end %} - {{ start }} + {% blocktrans with start=form.start %} + {{ start }}{% endblocktrans %}
+ {% blocktrans with end=form.end %} {{ end }}{% endblocktrans %}
diff --git a/openstack_dashboard/dashboards/admin/images/templates/images/properties/_edit.html b/openstack_dashboard/dashboards/admin/images/templates/images/properties/_edit.html index 38fad425f7..7f172c2b34 100644 --- a/openstack_dashboard/dashboards/admin/images/templates/images/properties/_edit.html +++ b/openstack_dashboard/dashboards/admin/images/templates/images/properties/_edit.html @@ -17,7 +17,7 @@

{% trans "Description" %}:

-

{% trans 'Update the custom property value for' %} "{{ key }}"

+

{% blocktrans with key=key %}Update the custom property value for "{{ key }}"{% endblocktrans %}

{% endblock %}