|
@@ -16,7 +16,7 @@
|
|
|
{% else %}
|
|
|
<select {{ block('widget_attributes') }}{% if multiple %} multiple="multiple"{% endif %}>
|
|
|
{% if empty_value is not none %}
|
|
|
- <option value="">{{ empty_value|trans }}</option>
|
|
|
+ <option value="">{{ empty_value|trans({}, translation_domain) }}</option>
|
|
|
{% endif %}
|
|
|
{% if preferred_choices|length > 0 %}
|
|
|
{% set options = preferred_choices %}
|
|
@@ -53,11 +53,11 @@
|
|
|
<label{% for attrname,attrvalue in attr %} {{attrname}}="{{attrvalue}}"{% endfor %}>
|
|
|
{{ widget|raw }}
|
|
|
<span>
|
|
|
- {{ label|trans }}
|
|
|
+ {{ label|trans({}, translation_domain) }}
|
|
|
</span>
|
|
|
</label>
|
|
|
{% else %}
|
|
|
- <label{% for attrname,attrvalue in attr %} {{attrname}}="{{attrvalue}}"{% endfor %}>{{ label|trans }}</label>
|
|
|
+ <label{% for attrname,attrvalue in attr %} {{attrname}}="{{attrvalue}}"{% endfor %}>{{ label|trans({}, translation_domain) }}</label>
|
|
|
{% endif %}
|
|
|
{% endspaceless %}
|
|
|
{% endblock %}
|