Bug 20296: Untranslatable "All" in patrons table filter
authorPasi Kallinen <pasi.kallinen@joensuu.fi>
Mon, 26 Feb 2018 10:08:27 +0000 (12:08 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 27 Feb 2018 16:48:18 +0000 (13:48 -0300)
There's an untranslatable "All" in the "Show X entries" filter
when browsing the patrons.

Test plan:

1) Home --> Patrons --> Browse by last name.
2) In the table filtering toolbar, there's a dropdown with
   "Show [20] entries" and the last in the dropdown is "All".
3) Update and install a language, check that msgid "All" is
   translated and isn't fuzzy.
4) Check the "All" in the dropdown, it is not translated.
5) Install patch, repeat 1-3, and check the "All" in the dropdown,
   it should now be translated.

Signed-off-by: Pasi Kallinen <pasi.kallinen@joensuu.fi>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt

index dcb3723..b40bb03 100644 (file)
             $(aLengthMenu).each(function(){
                 if ( this == -1 ) {
                     // Label for -1 is "All"
-                    aLengthMenuLabel.push("All");
+                    aLengthMenuLabel.push(_("All"));
                 } else {
                     aLengthMenuLabel.push(this);
                 }