diff --git a/core/modules/image/templates/image-crop-summary.html.twig b/core/modules/image/templates/image-crop-summary.html.twig index fc991b6..3311937 100644 --- a/core/modules/image/templates/image-crop-summary.html.twig +++ b/core/modules/image/templates/image-crop-summary.html.twig @@ -21,12 +21,14 @@ {{ data.width|e }}×{{ data.height|e }} {%- else -%} {% if data.width %} + {% set width = data.width|e %} {% trans %} - width {{ data.width|e }} + width {{ width }} {% endtrans %} {% elseif data.height %} + {% set height = data.height|e %} {% trans %} - height {{ data.height|e }} + height {{ height }} {% endtrans %} {% endif %} {%- endif %} diff --git a/core/modules/image/templates/image-resize-summary.html.twig b/core/modules/image/templates/image-resize-summary.html.twig index f4084ef..39f37f6 100644 --- a/core/modules/image/templates/image-resize-summary.html.twig +++ b/core/modules/image/templates/image-resize-summary.html.twig @@ -19,12 +19,14 @@ {{ data.width|e }}×{{ data.height|e }} {%- else -%} {% if data.width %} + {% set width = data.width|e %} {% trans %} - width {{ data.width|e }} + width {{ width }} {% endtrans %} {% elseif data.height %} + {% set height = data.height|e %} {% trans %} - height {{ data.height|e }} + height {{ height }} {% endtrans %} {% endif %} {%- endif %} diff --git a/core/modules/image/templates/image-rotate-summary.html.twig b/core/modules/image/templates/image-rotate-summary.html.twig index 705a0eb..f837efa 100644 --- a/core/modules/image/templates/image-rotate-summary.html.twig +++ b/core/modules/image/templates/image-rotate-summary.html.twig @@ -19,8 +19,9 @@ */ #} {% if data.random %} + {% set degrees = data.degrees|abs %} {% trans %} - random between -{{ data.degrees|abs }}° and {{ data.degrees|abs }}° + random between -{{ degrees }}° and {{ degrees }}° {% endtrans %} {% else %} {{ data.degrees }}° diff --git a/core/modules/image/templates/image-scale-summary.html.twig b/core/modules/image/templates/image-scale-summary.html.twig index 32d75cc..debe864 100644 --- a/core/modules/image/templates/image-scale-summary.html.twig +++ b/core/modules/image/templates/image-scale-summary.html.twig @@ -20,12 +20,14 @@ {{ data.width|e }}×{{ data.height|e }} {%- else -%} {% if data.width %} + {% set width = data.width|e %} {% trans %} - width {{ data.width|e }} + width {{ width }} {% endtrans %} {% elseif data.height %} + {% set height = data.height|e %} {% trans %} - height {{ data.height|e }} + height {{ height }} {% endtrans %} {% endif %} {%- endif %}