Bug 7734: NO_LIBRARY_SET should be translatable
authorKatrin Fischer <Katrin.Fischer.83@web.de>
Mon, 19 Mar 2012 13:38:30 +0000 (14:38 +0100)
committerPaul Poulain <paul.poulain@biblibre.com>
Wed, 21 Mar 2012 13:40:59 +0000 (14:40 +0100)
To test:
- Make sure you are logged into Koha as 'root' user - not superlibrarian
- Before the patch the label will show 'NO_LIBRARY_SET', after applying
  the patch it will be 'NO LIBRARY SET' without underscores.
- Verify correct description is shown after selecting a library.

Signed-off-by: mveron <veron@veron.ch>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/includes/header.inc

index b2f532b..5da4991 100644 (file)
             [% LoginBranchname %]
             </strong>
         [% ELSE %]
-            <strong>[% LoginBranchname %]</strong>
+            <strong>
+            [% IF ( LoginBranchname == 'NO_LIBRARY_SET' ) %]
+                NO LIBRARY SET
+            [% ELSE %]
+                [% LoginBranchname %]
+            [% END %]
+            </strong>
             [% IF ( IndependantBranches ) %]
                 [% IF ( CAN_user_management || CAN_user_editcatalogue_edit_catalogue ) %]
                     (<a href="/cgi-bin/koha/circ/selectbranchprinter.pl">Set library</a>)