diff --git a/cps/admin.py b/cps/admin.py index 54742345..8e4f7df2 100644 --- a/cps/admin.py +++ b/cps/admin.py @@ -431,15 +431,15 @@ def delete_restriction(type): @admin_required def list_restriction(type): if type == 0: # Tags as template - restrict = [{'Element': x, 'type':_('deny'), 'id': 'd'+str(i) } + restrict = [{'Element': x, 'type':_('Deny'), 'id': 'd'+str(i) } for i,x in enumerate(config.list_denied_tags()) if x != '' ] - allow = [{'Element': x, 'type':_('allow'), 'id': 'a'+str(i) } + allow = [{'Element': x, 'type':_('Allow'), 'id': 'a'+str(i) } for i,x in enumerate(config.list_allowed_tags()) if x != ''] json_dumps = restrict + allow elif type == 1: # CustomC as template - restrict = [{'Element': x, 'type':_('deny'), 'id': 'd'+str(i) } + restrict = [{'Element': x, 'type':_('Deny'), 'id': 'd'+str(i) } for i,x in enumerate(config.list_denied_column_values()) if x != '' ] - allow = [{'Element': x, 'type':_('allow'), 'id': 'a'+str(i) } + allow = [{'Element': x, 'type':_('Allow'), 'id': 'a'+str(i) } for i,x in enumerate(config.list_allowed_column_values()) if x != ''] json_dumps = restrict + allow elif type == 2: # Tags per user @@ -448,9 +448,9 @@ def list_restriction(type): usr = ub.session.query(ub.User).filter(ub.User.id == usr_id).first() else: usr = current_user - restrict = [{'Element': x, 'type':_('deny'), 'id': 'd'+str(i) } + restrict = [{'Element': x, 'type':_('Deny'), 'id': 'd'+str(i) } for i,x in enumerate(usr.list_denied_tags()) if x != '' ] - allow = [{'Element': x, 'type':_('allow'), 'id': 'a'+str(i) } + allow = [{'Element': x, 'type':_('Allow'), 'id': 'a'+str(i) } for i,x in enumerate(usr.list_allowed_tags()) if x != ''] json_dumps = restrict + allow elif type == 3: # CustomC per user @@ -459,9 +459,9 @@ def list_restriction(type): usr = ub.session.query(ub.User).filter(ub.User.id==usr_id).first() else: usr = current_user - restrict = [{'Element': x, 'type':_('deny'), 'id': 'd'+str(i) } + restrict = [{'Element': x, 'type':_('Deny'), 'id': 'd'+str(i) } for i,x in enumerate(usr.list_denied_column_values()) if x != '' ] - allow = [{'Element': x, 'type':_('allow'), 'id': 'a'+str(i) } + allow = [{'Element': x, 'type':_('Allow'), 'id': 'a'+str(i) } for i,x in enumerate(usr.list_allowed_column_values()) if x != ''] json_dumps = restrict + allow else: diff --git a/cps/kobo_auth.py b/cps/kobo_auth.py index e37090a1..ed712980 100644 --- a/cps/kobo_auth.py +++ b/cps/kobo_auth.py @@ -127,7 +127,7 @@ def generate_auth_token(user_id): warning = _('PLease access calibre-web from non localhost to get valid api_endpoint for kobo device') return render_title_template( "generate_kobo_auth_url.html", - title=_(u"Kobo Set-up"), + title=_(u"Kobo Setup"), warning = warning ) else: @@ -147,7 +147,7 @@ def generate_auth_token(user_id): ub.session.commit() return render_title_template( "generate_kobo_auth_url.html", - title=_(u"Kobo Set-up"), + title=_(u"Kobo Setup"), kobo_auth_url=url_for( "kobo.TopLevelEndpoint", auth_token=auth_token.auth_token, _external=True ), diff --git a/cps/templates/admin.html b/cps/templates/admin.html index a7770c59..5b2ad78c 100644 --- a/cps/templates/admin.html +++ b/cps/templates/admin.html @@ -6,16 +6,16 @@
-

{{_('User list')}}

+

{{_('Users')}}

- - - - + + + + - + @@ -35,20 +35,20 @@ {% endif %} {% endfor %}
{{_('Nickname')}}{{_('E-mail')}}{{_('Kindle')}}{{_('DLS')}}{{_('Username')}}{{_('E-mail Address')}}{{_('Send to Kindle E-mail Address')}}{{_('Downloads')}}
- +
-

{{_('SMTP e-mail server settings')}}

+

{{_('E-mail Server Settings')}}

- - - - - + + + + + @@ -67,11 +67,11 @@

{{_('Configuration')}}

-
{{_('Calibre DB dir')}}
+
{{_('Calibre Database Directory')}}
{{config.config_calibre_dir}}
-
{{_('Log level')}}
+
{{_('Log Level')}}
{{config.get_log_level()}}
@@ -81,27 +81,27 @@
-
{{_('Books per page')}}
+
{{_('Books per Page')}}
{{config.config_books_per_page}}
-
{{_('Uploading')}}
+
{{_('Uploads')}}
{{ display_bool_setting(config.config_uploading) }}
-
{{_('Anonymous browsing')}}
+
{{_('Anonymous Browsing')}}
{{ display_bool_setting(config.config_anonbrowse) }}
-
{{_('Public registration')}}
+
{{_('Public Registration')}}
{{ display_bool_setting(config.config_public_reg) }}
-
{{_('Remote login')}}
+
{{_('Magic Link Remote Login')}}
{{ display_bool_setting(config.config_remote_login) }}
-
{{_('Reverse proxy login')}}
+
{{_('Reverse Proxy Login')}}
{{ display_bool_setting(config.config_allow_reverse_proxy_header_login) }}
{% if config.config_allow_reverse_proxy_header_login %} @@ -111,18 +111,18 @@
{% endif %}
- - + +

{{_('Administration')}}

- -
{{_('Reconnect to Calibre DB')}}
-
{{_('Restart Calibre-Web')}}
-
{{_('Stop Calibre-Web')}}
+ +
{{_('Reconnect Calibre Database')}}
+
{{_('Restart')}}
+
{{_('Shutdown')}}
@@ -145,7 +145,7 @@
{{_('SMTP hostname')}}{{_('SMTP port')}}{{_('SSL')}}{{_('SMTP login')}}{{_('SMTP Hostname')}}{{_('SMTP Port')}}{{_('Encryption')}}{{_('SMTP Login')}}
{{email.mail_server}}
-
{{_('Check for update')}}
+
{{_('Check for Update')}}
@@ -158,13 +158,13 @@
@@ -176,9 +176,9 @@ @@ -188,7 +188,7 @@ diff --git a/cps/templates/book_edit.html b/cps/templates/book_edit.html index 78b427eb..d3619060 100644 --- a/cps/templates/book_edit.html +++ b/cps/templates/book_edit.html @@ -70,7 +70,7 @@
- +
@@ -78,16 +78,16 @@
- +
- +
- +
@@ -155,7 +155,7 @@ {% if g.user.role_upload() or g.user.role_admin()%} {% if g.allow_upload %}
- +
@@ -164,12 +164,12 @@
- {{_('Get metadata')}} - - {{_('Back')}} + {{_('Fetch Metadata')}} + + {{_('Cancel')}}
@@ -185,13 +185,13 @@ {{_('Are you really sure?')}}
@@ -203,13 +203,13 @@