From 22204cd5ac2a81ea5f4dff373da5ee1d8af74eb2 Mon Sep 17 00:00:00 2001
From: Victor Grousset <victor.grousset@biblibre.com>
Date: Thu, 26 Oct 2017 15:56:54 +0200
Subject: [PATCH] Bug 19522: Label creator: translate empty list message
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

The name of the element wasn't translated in the message.

Test plan:
1. install the fr_FR locale
2. go to /cgi-bin/koha/labels/label-manage.pl?label_element=batch
3. ensure that the list is empty
4. then you should see "pas de Batches actuellement"
5. then you should see "créer un nouveau batch."
6. apply this patch
7. install the language
8. refresh the page
9. then you should see "pas de Lots actuellement"
10. then you should see "créer un nouveau lot ."

Signed-off-by: Simon Pouchol <simon.pouchol@biblibre.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
---
 koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt
index 7bd00e5..c247b6e 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt
@@ -168,8 +168,11 @@
                             </form>
                             [% ELSE %]
 							<div class="dialog message">
-                            <h4>There are no [% label_element_title %] currently available.</h4>
-                            <p>Use the toolbar above to create a new [% label_element %].</p></div>
+                            <h4>There are no
+                            [% PROCESS translate_label_element element=label_element_title %]
+                            currently available.</h4>
+                            <p>Use the toolbar above to create a new
+                            [% PROCESS translate_label_element element=label_element %].</p></div>
                             [% END %]
                         </div>
                         [% IF ( error ) %]
-- 
2.10.2