From 4b1131aaed0bb66998e4ac6db2162289ede94f80 Mon Sep 17 00:00:00 2001 From: Akihiro Motoki Date: Tue, 30 Jan 2018 04:10:38 +0900 Subject: [PATCH] i18n: Do not include html directives in translation strings It is important not to include html directives in translation targets as much as possible to avoid unnecessary errors when selecting translated languages. Note that this commit does not necessarily exclude all html directives from translation strings. Some of them needs to be included to allow translators to control the word order properly. This commit mainly focuses on eliminate unrelated html directives. Change-Id: I66a24d4b01e695aab226b7c1cd4bc4f50ab33a7f --- .../theme-preview/theme-preview.html | 12 ++++++--- .../volume_types/qos_specs/_create.html | 27 ++++++++++--------- .../keypair/create-keypair.html | 4 +-- 3 files changed, 25 insertions(+), 18 deletions(-) diff --git a/openstack_dashboard/contrib/developer/static/dashboard/developer/theme-preview/theme-preview.html b/openstack_dashboard/contrib/developer/static/dashboard/developer/theme-preview/theme-preview.html index b98c332465..bf19efeee5 100644 --- a/openstack_dashboard/contrib/developer/static/dashboard/developer/theme-preview/theme-preview.html +++ b/openstack_dashboard/contrib/developer/static/dashboard/developer/theme-preview/theme-preview.html @@ -1012,32 +1012,38 @@
-
+
+ Oh snap! Change a few things up and try submitting again. +
-
+
+ Well done! You successfully read this important alert message. +
-
+
+ Heads up! This alert needs your attention, but it's not super important. +
diff --git a/openstack_dashboard/dashboards/admin/volume_types/templates/volume_types/qos_specs/_create.html b/openstack_dashboard/dashboards/admin/volume_types/templates/volume_types/qos_specs/_create.html index e1c7c7f10c..c229b50524 100644 --- a/openstack_dashboard/dashboards/admin/volume_types/templates/volume_types/qos_specs/_create.html +++ b/openstack_dashboard/dashboards/admin/volume_types/templates/volume_types/qos_specs/_create.html @@ -3,17 +3,18 @@ {% block modal-body-right %}

{% trans "Description:" %}

-

{% blocktrans with key=qos_spec_name %}Create a new "spec" key-value pair for QoS Spec "{{ qos_spec_name }}". - Valid key names are expected in the QoS specs. The acceptable values for key are - "minIOPS", "maxIOPS" and "burstIOPS". -
-
- Example: -
- Key: minIOPS and Value:20 (number value less than maxIOPS) -
- Key: maxIOPS and Value:5000 (number value bigger than minIOPS) -
- Key: burstIOPS and Value:5000 (number value bigger than minIOPS) - {% endblocktrans %}

+

{% blocktrans trimmed %} + Create a new "spec" key-value pair for QoS Spec "{{ qos_spec_name }}". + Valid key names are expected in the QoS specs. The acceptable values for key are + "minIOPS", "maxIOPS" and "burstIOPS". + {% endblocktrans %} +

+

+ {% trans "Example:" %} +

    +
  • {% trans "Key: minIOPS and Value:20 (number value less than maxIOPS)" %}
  • +
  • {% trans "Key: maxIOPS and Value:5000 (number value bigger than minIOPS)" %}
  • +
  • {% trans "Key: burstIOPS and Value:5000 (number value bigger than minIOPS)" %}
  • +
+

{% endblock %} diff --git a/openstack_dashboard/dashboards/project/static/dashboard/project/workflow/launch-instance/keypair/create-keypair.html b/openstack_dashboard/dashboards/project/static/dashboard/project/workflow/launch-instance/keypair/create-keypair.html index b40325f1a9..fd882b530d 100644 --- a/openstack_dashboard/dashboards/project/static/dashboard/project/workflow/launch-instance/keypair/create-keypair.html +++ b/openstack_dashboard/dashboards/project/static/dashboard/project/workflow/launch-instance/keypair/create-keypair.html @@ -15,8 +15,8 @@

-