Bug 12020: Allow translating label-edit-batch hardcoded strings
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / labels / label-edit-batch.tt
index 22f21f4..8381dda 100644 (file)
                 <div class="yui-b">
                         [% INCLUDE 'labels-toolbar.inc' %]
                         [% IF ( err ) %]
+                            [% BLOCK xlate_errtype %]
+                            [%    SWITCH errtype %]
+                            [%       CASE 'ITEM_NOT_REMOVED' %]
+                            <span>Item(s) not removed from batch [% batch_id %].</span>
+                            [%       CASE 'BATCH_NOT_DELETED' %]
+                            <span>Batch [% batch_id %] was not deleted.</span>
+                            [%       CASE 'ITEM_NOT_ADDED' %]
+                            <span>Item(s) not added to batch [% batch_id %].</span>
+                            [%       CASE 'BRANCH_NOT_SET' %]
+                            <span>Library is not set, please set your library before adding items to a batch.</span>
+                            [%       CASE 'BATCH_NOT_DEDUP' %]
+                            <span>Batch [% batch_id %] not fully de-duplicated.</span>
+                            [%       CASE %]
+                            <span>Unknown error type [% errtype %].</span>
+                            [%    END %]
+                            [% END %]
                             <div class="dialog alert">
-                                <strong>WARNING:</strong> An error was encountered and [% errstr %] Please have your system administrator check the error log for details.
+                                <strong>WARNING:</strong> An error was encountered: [% PROCESS xlate_errtype %] Please have your system administrator check the error log for details.
                             </div>
                         [% ELSIF ( duplicate_message ) %]
                             <div class="dialog message">