diff --git a/Koha/ILL/Request.pm b/Koha/ILL/Request.pm index 8923db9e86..4bf239ce6a 100644 --- a/Koha/ILL/Request.pm +++ b/Koha/ILL/Request.pm @@ -34,6 +34,7 @@ use Koha::Cache::Memory::Lite; use Koha::Database; use Koha::DateUtils qw( dt_from_string ); use Koha::Exceptions::Ill; +use Koha::I18N qw(__); use Koha::ILL::Backend::Standard; use Koha::ILL::Batches; use Koha::ILL::Comments; @@ -580,8 +581,8 @@ sub _core_status_graph { prev_actions => [ ], # Actions containing buttons # leading to this status id => 'NEW', # ID of this status - name => 'New request', # UI name of this status - ui_method_name => 'New request', # UI name of method leading + name => __('New request'), # UI name of this status + ui_method_name => __('New request'), # UI name of method leading # to this status method => 'create', # method to this status next_actions => [ 'REQ', 'GENREQ', 'KILL' ], # buttons to add to all @@ -591,8 +592,8 @@ sub _core_status_graph { REQ => { prev_actions => [ 'NEW', 'REQREV', 'QUEUED', 'CANCREQ' ], id => 'REQ', - name => 'Requested', - ui_method_name => 'Confirm request', + name => __('Requested'), + ui_method_name => __('Confirm request'), method => 'confirm', next_actions => [ 'REQREV', 'COMP', 'CHK' ], ui_method_icon => 'fa-check', @@ -600,8 +601,8 @@ sub _core_status_graph { GENREQ => { prev_actions => [ 'NEW', 'REQREV' ], id => 'GENREQ', - name => 'Requested from partners', - ui_method_name => 'Place request with partners', + name => __('Requested from partners'), + ui_method_name => __('Place request with partners'), method => 'generic_confirm', next_actions => [ 'COMP', 'CHK', 'REQREV' ], ui_method_icon => 'fa-paper-plane', @@ -609,8 +610,8 @@ sub _core_status_graph { REQREV => { prev_actions => [ 'REQ', 'GENREQ' ], id => 'REQREV', - name => 'Request reverted', - ui_method_name => 'Revert request', + name => __('Request reverted'), + ui_method_name => __('Revert request'), method => 'cancel', next_actions => [ 'REQ', 'GENREQ', 'KILL' ], ui_method_icon => 'fa-times', @@ -618,7 +619,7 @@ sub _core_status_graph { QUEUED => { prev_actions => [ ], id => 'QUEUED', - name => 'Queued request', + name => __('Queued request'), ui_method_name => 0, method => 0, next_actions => [ 'REQ', 'KILL' ], @@ -627,7 +628,7 @@ sub _core_status_graph { CANCREQ => { prev_actions => [ 'NEW' ], id => 'CANCREQ', - name => 'Cancellation requested', + name => __('Cancellation requested'), ui_method_name => 0, method => 0, next_actions => [ 'KILL', 'REQ' ], @@ -636,8 +637,8 @@ sub _core_status_graph { COMP => { prev_actions => [ 'REQ' ], id => 'COMP', - name => 'Completed', - ui_method_name => 'Mark completed', + name => __('Completed'), + ui_method_name => __('Mark completed'), method => 'mark_completed', next_actions => [ 'CHK' ], ui_method_icon => 'fa-check', @@ -646,7 +647,7 @@ sub _core_status_graph { prev_actions => [ 'QUEUED', 'REQREV', 'NEW', 'CANCREQ' ], id => 'KILL', name => 0, - ui_method_name => 'Delete request', + ui_method_name => __('Delete request'), method => 'delete', next_actions => [ ], ui_method_icon => 'fa-trash', @@ -654,8 +655,8 @@ sub _core_status_graph { CHK => { prev_actions => [ 'REQ', 'GENREQ', 'COMP' ], id => 'CHK', - name => 'Checked out', - ui_method_name => 'Check out', + name => __('Checked out'), + ui_method_name => __('Check out'), needs_prefs => [ 'CirculateILL' ], needs_perms => [ 'user_circulate_circulate_remaining_permissions' ], # An array of functions that all must return true @@ -667,8 +668,8 @@ sub _core_status_graph { RET => { prev_actions => [ 'CHK' ], id => 'RET', - name => 'Returned to library', - ui_method_name => 'Check in', + name => __('Returned to library'), + ui_method_name => __('Check in'), method => 'check_in', next_actions => [ 'COMP' ], ui_method_icon => 'fa-download',