Bug 19522: Label creator: translate empty list message
authorVictor Grousset <victor.grousset@biblibre.com>
Thu, 26 Oct 2017 13:56:54 +0000 (15:56 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 26 Mar 2018 20:31:14 +0000 (17:31 -0300)
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>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt

index 71fe074..c298450 100644 (file)
                             </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 ) %]