29
29
admin_permission_factory as default_admin_permission_factory
30
30
31
31
from ..permissions import can_edit
32
+ from flask_babelex import gettext as _
32
33
33
34
34
35
class ILSManager (BaseView ):
@@ -65,8 +66,8 @@ def is_accessible(self):
65
66
66
67
circulation = {
67
68
'view_class' : ILSManager ,
68
- 'kwargs' : dict (name = 'Circulation' ,
69
- category = 'User Services' ,
69
+ 'kwargs' : dict (name = _ ( 'Circulation' ) ,
70
+ category = _ ( 'User Services' ) ,
70
71
endpoint = 'circulation' ,
71
72
menu_icon_type = 'fa' ,
72
73
menu_icon_value = 'fa-exchange' )
@@ -75,8 +76,8 @@ def is_accessible(self):
75
76
my_library = {
76
77
'view_class' : ILSManager ,
77
78
'kwargs' : dict (
78
- name = 'My Library' ,
79
- category = 'Admin & Monitoring' ,
79
+ name = _ ( 'My Library' ) ,
80
+ category = _ ( 'Admin & Monitoring' ) ,
80
81
endpoint = 'mylibrary' ,
81
82
menu_icon_type = 'fa' ,
82
83
menu_icon_value = 'fa-university'
@@ -86,8 +87,8 @@ def is_accessible(self):
86
87
library = {
87
88
'view_class' : LibraryManager ,
88
89
'kwargs' : dict (
89
- name = 'Libraries' ,
90
- category = 'Admin & Monitoring' ,
90
+ name = _ ( 'Libraries' ) ,
91
+ category = _ ( 'Admin & Monitoring' ) ,
91
92
endpoint = 'libraries' ,
92
93
menu_icon_type = 'fa' ,
93
94
menu_icon_value = 'fa-university'
@@ -97,8 +98,8 @@ def is_accessible(self):
97
98
item_types = {
98
99
'view_class' : ILSManager ,
99
100
'kwargs' : dict (
100
- name = 'Item Types' ,
101
- category = 'Admin & Monitoring' ,
101
+ name = _ ( 'Item Types' ) ,
102
+ category = _ ( 'Admin & Monitoring' ) ,
102
103
endpoint = 'records/item_types' ,
103
104
menu_icon_type = 'fa' ,
104
105
menu_icon_value = 'fa-file-o'
@@ -108,8 +109,8 @@ def is_accessible(self):
108
109
patron_types = {
109
110
'view_class' : ILSManager ,
110
111
'kwargs' : dict (
111
- name = 'Patron Types' ,
112
- category = 'Admin & Monitoring' ,
112
+ name = _ ( 'Patron Types' ) ,
113
+ category = _ ( 'Admin & Monitoring' ) ,
113
114
endpoint = 'records/patron_types' ,
114
115
menu_icon_type = 'fa' ,
115
116
menu_icon_value = 'fa-users'
@@ -119,8 +120,8 @@ def is_accessible(self):
119
120
circ_policies = {
120
121
'view_class' : ILSManager ,
121
122
'kwargs' : dict (
122
- name = 'Circulation Policies' ,
123
- category = 'Admin & Monitoring' ,
123
+ name = _ ( 'Circulation Policies' ) ,
124
+ category = _ ( 'Admin & Monitoring' ) ,
124
125
endpoint = 'records/circ_policies' ,
125
126
menu_icon_type = 'fa' ,
126
127
menu_icon_value = 'fa-exchange'
@@ -130,8 +131,8 @@ def is_accessible(self):
130
131
patrons = {
131
132
'view_class' : ILSManager ,
132
133
'kwargs' : dict (
133
- name = 'Patrons' ,
134
- category = 'User Services' ,
134
+ name = _ ( 'Patrons' ) ,
135
+ category = _ ( 'User Services' ) ,
135
136
endpoint = 'records/patrons' ,
136
137
menu_icon_type = 'fa' ,
137
138
menu_icon_value = 'fa-users'
@@ -141,8 +142,8 @@ def is_accessible(self):
141
142
persons = {
142
143
'view_class' : ILSManager ,
143
144
'kwargs' : dict (
144
- name = 'Persons' ,
145
- category = 'Catalogue' ,
145
+ name = _ ( 'Persons' ) ,
146
+ category = _ ( 'Catalogue' ) ,
146
147
endpoint = 'records/persons' ,
147
148
menu_icon_type = 'fa' ,
148
149
menu_icon_value = 'fa-user'
@@ -163,8 +164,8 @@ def is_accessible(self):
163
164
libraries = {
164
165
'view_class' : ILSManager ,
165
166
'kwargs' : dict (
166
- name = 'Libraries' ,
167
- category = 'Admin & Monitoring' ,
167
+ name = _ ( 'Libraries' ) ,
168
+ category = _ ( 'Admin & Monitoring' ) ,
168
169
endpoint = 'records/libraries' ,
169
170
menu_icon_type = 'fa' ,
170
171
menu_icon_value = 'fa-university'
@@ -174,8 +175,8 @@ def is_accessible(self):
174
175
documents = {
175
176
'view_class' : ILSManager ,
176
177
'kwargs' : dict (
177
- name = 'Documents' ,
178
- category = 'Catalogue' ,
178
+ name = _ ( 'Documents' ) ,
179
+ category = _ ( 'Catalogue' ) ,
179
180
endpoint = 'records/documents' ,
180
181
menu_icon_type = 'fa' ,
181
182
menu_icon_value = 'fa-file-o'
0 commit comments