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
This commit is contained in:
parent
439c3e578d
commit
4b1131aaed
|
@ -1012,32 +1012,38 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-4">
|
<div class="col-lg-4">
|
||||||
<div class="bs-component">
|
<div class="bs-component">
|
||||||
<div translate class="alert alert-dismissable alert-danger">
|
<div class="alert alert-dismissable alert-danger">
|
||||||
<button type="button" class="close" data-dismiss="alert">×</button>
|
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||||
|
<translate>
|
||||||
<strong>Oh snap!</strong>
|
<strong>Oh snap!</strong>
|
||||||
<a href="#" class="alert-link">Change a few things up</a>
|
<a href="#" class="alert-link">Change a few things up</a>
|
||||||
and try submitting again.
|
and try submitting again.
|
||||||
|
</translate>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-4">
|
<div class="col-lg-4">
|
||||||
<div class="bs-component">
|
<div class="bs-component">
|
||||||
<div translate class="alert alert-dismissable alert-success">
|
<div class="alert alert-dismissable alert-success">
|
||||||
<button type="button" class="close" data-dismiss="alert">×</button>
|
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||||
|
<translate>
|
||||||
<strong>Well done!</strong>
|
<strong>Well done!</strong>
|
||||||
You successfully read
|
You successfully read
|
||||||
<a href="#" class="alert-link">this important alert message</a>.
|
<a href="#" class="alert-link">this important alert message</a>.
|
||||||
|
</translate>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-4">
|
<div class="col-lg-4">
|
||||||
<div class="bs-component">
|
<div class="bs-component">
|
||||||
<div translate class="alert alert-dismissable alert-info">
|
<div class="alert alert-dismissable alert-info">
|
||||||
<button type="button" class="close" data-dismiss="alert">×</button>
|
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||||
|
<translate>
|
||||||
<strong>Heads up!</strong>
|
<strong>Heads up!</strong>
|
||||||
This
|
This
|
||||||
<a href="#" class="alert-link">alert needs your attention</a>,
|
<a href="#" class="alert-link">alert needs your attention</a>,
|
||||||
but it's not super important.
|
but it's not super important.
|
||||||
|
</translate>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -3,17 +3,18 @@
|
||||||
|
|
||||||
{% block modal-body-right %}
|
{% block modal-body-right %}
|
||||||
<h3>{% trans "Description:" %}</h3>
|
<h3>{% trans "Description:" %}</h3>
|
||||||
<p>{% blocktrans with key=qos_spec_name %}Create a new "spec" key-value pair for QoS Spec "{{ qos_spec_name }}".
|
<p>{% 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
|
Valid key names are expected in the QoS specs. The acceptable values for key are
|
||||||
<tt>"minIOPS", "maxIOPS" and "burstIOPS"</tt>.
|
<tt>"minIOPS", "maxIOPS" and "burstIOPS"</tt>.
|
||||||
<br>
|
{% endblocktrans %}
|
||||||
<br>
|
</p>
|
||||||
Example:
|
<p>
|
||||||
<br>
|
{% trans "Example:" %}
|
||||||
Key: minIOPS and Value:20 (number value less than maxIOPS)
|
<ul>
|
||||||
<br>
|
<li>{% trans "Key: minIOPS and Value:20 (number value less than maxIOPS)" %}</li>
|
||||||
Key: maxIOPS and Value:5000 (number value bigger than minIOPS)
|
<li>{% trans "Key: maxIOPS and Value:5000 (number value bigger than minIOPS)" %}</li>
|
||||||
<br>
|
<li>{% trans "Key: burstIOPS and Value:5000 (number value bigger than minIOPS)" %}</li>
|
||||||
Key: burstIOPS and Value:5000 (number value bigger than minIOPS)
|
</ul>
|
||||||
{% endblocktrans %}</p>
|
</p>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -15,8 +15,8 @@
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="form-group" ng-class="{'has-error': (ctrl.doesKeypairExist() || wizardForm.$invalid) && wizardForm.$dirty }">
|
<div class="form-group" ng-class="{'has-error': (ctrl.doesKeypairExist() || wizardForm.$invalid) && wizardForm.$dirty }">
|
||||||
<label class="control-label" for="keypair-name" translate>
|
<label class="control-label" for="keypair-name">
|
||||||
Key Pair Name
|
<translate>Key Pair Name</translate>
|
||||||
<span class="hz-icon-required fa fa-asterisk"></span>
|
<span class="hz-icon-required fa fa-asterisk"></span>
|
||||||
</label>
|
</label>
|
||||||
<input class="form-control" name="name"
|
<input class="form-control" name="name"
|
||||||
|
|
Loading…
Reference in New Issue