Browse Source

integrated action_label as placeholder, adapted fr, en and de strings

Benoit Pointet 13 năm trước cách đây
mục cha
commit
4cc760961e

+ 1 - 1
Resources/translations/SonataAdminBundle.de.xliff

@@ -188,7 +188,7 @@
             </trans-unit>
             <trans-unit id="title_batch_confirmation">
                 <source>title_batch_confirmation</source>
-                <target>Stapel-Aktion bestätigen</target>
+                <target>Stapel-Aktion '%action%' bestätigen</target>
             </trans-unit>
             <trans-unit id="message_batch_confirmation">
                 <source>message_batch_confirmation</source>

+ 1 - 1
Resources/translations/SonataAdminBundle.en.xliff

@@ -188,7 +188,7 @@
             </trans-unit>
             <trans-unit id="title_batch_confirmation">
                 <source>title_batch_confirmation</source>
-                <target>Confirm batch action</target>
+                <target>Confirm batch action '%action%'</target>
             </trans-unit>
             <trans-unit id="message_batch_confirmation">
                 <source>message_batch_confirmation</source>

+ 1 - 1
Resources/translations/SonataAdminBundle.fr.xliff

@@ -188,7 +188,7 @@
             </trans-unit>
             <trans-unit id="title_batch_confirmation">
                 <source>title_batch_confirmation</source>
-                <target>Confirmation d'un traitement par lots</target>
+                <target>Confirmation d'un traitement par lots: '%action%'</target>
             </trans-unit>
             <trans-unit id="message_batch_confirmation">
                 <source>message_batch_confirmation</source>

+ 1 - 1
Resources/views/CRUD/batch_confirmation.html.twig

@@ -22,7 +22,7 @@ file that was distributed with this source code.
 
 {% block content %}
     <div class="sonata-ba-delete">
-        <h1>{% trans from 'SonataAdminBundle' %}title_batch_confirmation{% endtrans %} '{{ action_label | lower }}'</h1>
+        <h1>{% trans with {'%action%': action_label} from 'SonataAdminBundle' %}title_batch_confirmation{% endtrans %}</h1>
 
         {% if data.all_elements %}
             {{ 'message_batch_all_confirmation'|trans({}, 'SonataAdminBundle') }}