Bug 20142: Allow translating offline circ message
authorPasi Kallinen <pasi.kallinen@joensuu.fi>
Tue, 6 Feb 2018 11:01:36 +0000 (13:01 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 27 Feb 2018 14:37:51 +0000 (11:37 -0300)
Allow translating the notification saying you cannot change branch or
logout while offline.

Test plan:

1) Enable AllowOfflineCirculation
2) Go to Home -> Circulation -> Built-in offline circulation interface
3) Try to change your branch. Note the notification message
4) Apply patch, install language, translate the notification
5) Repeat 2 and 3 in that language. The message should 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/circ/offline.tt

index cf8c06e..4d4ec74 100644 (file)
             kohadb.initialize();
             $('#header_search #circ_search .tip').text(_("Enter patron card number:"));
 
-            $('ul[aria-labelledby="logged-in-menu"]').html('<li><a class="toplinks">You cannot change your branch or logout while using offline circulation</a></li>');
+            $('ul[aria-labelledby="logged-in-menu"]').html('<li><a class="toplinks">' + _("You cannot change your branch or logout while using offline circulation") + '</a></li>');
 
             // Returns code
             $('#checkin-form, #checkin_search form').submit(function (event) {