From fc4436f09134e25c25302c9610cbeb174004e412 Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Sun, 23 Feb 2020 20:07:21 +0100 Subject: [PATCH] Update Translation --- cps/admin.py | 16 +- cps/kobo_auth.py | 4 +- cps/templates/email_edit.html | 2 +- cps/templates/generate_kobo_auth_url.html | 2 +- cps/templates/index.xml | 2 +- cps/templates/layout.html | 2 +- cps/templates/search.html | 2 +- cps/templates/shelf.html | 2 +- cps/translations/cs/LC_MESSAGES/messages.mo | Bin 49573 -> 48107 bytes cps/translations/cs/LC_MESSAGES/messages.po | 1887 +++------------- cps/translations/de/LC_MESSAGES/messages.mo | Bin 53019 -> 51108 bytes cps/translations/de/LC_MESSAGES/messages.po | 693 +++--- cps/translations/es/LC_MESSAGES/messages.mo | Bin 50840 -> 49612 bytes cps/translations/es/LC_MESSAGES/messages.po | 551 ++--- cps/translations/fi/LC_MESSAGES/messages.mo | Bin 45950 -> 44762 bytes cps/translations/fi/LC_MESSAGES/messages.po | 549 ++--- cps/translations/fr/LC_MESSAGES/messages.mo | Bin 50700 -> 49379 bytes cps/translations/fr/LC_MESSAGES/messages.po | 549 ++--- cps/translations/hu/LC_MESSAGES/messages.mo | Bin 42931 -> 41692 bytes cps/translations/hu/LC_MESSAGES/messages.po | 549 ++--- cps/translations/it/LC_MESSAGES/messages.mo | Bin 52862 -> 51637 bytes cps/translations/it/LC_MESSAGES/messages.po | 551 ++--- cps/translations/ja/LC_MESSAGES/messages.mo | Bin 46033 -> 38949 bytes cps/translations/ja/LC_MESSAGES/messages.po | 1033 ++++++--- cps/translations/km/LC_MESSAGES/messages.mo | Bin 30549 -> 28981 bytes cps/translations/km/LC_MESSAGES/messages.po | 750 +++---- cps/translations/nl/LC_MESSAGES/messages.mo | Bin 47975 -> 46805 bytes cps/translations/nl/LC_MESSAGES/messages.po | 549 ++--- cps/translations/pl/LC_MESSAGES/messages.mo | Bin 49213 -> 48005 bytes cps/translations/pl/LC_MESSAGES/messages.po | 549 ++--- cps/translations/ru/LC_MESSAGES/messages.mo | Bin 60430 -> 58948 bytes cps/translations/ru/LC_MESSAGES/messages.po | 549 ++--- cps/translations/sv/LC_MESSAGES/messages.mo | Bin 52236 -> 51090 bytes cps/translations/sv/LC_MESSAGES/messages.po | 549 ++--- cps/translations/uk/LC_MESSAGES/messages.mo | Bin 41198 -> 39854 bytes cps/translations/uk/LC_MESSAGES/messages.po | 549 ++--- .../zh_Hans_CN/LC_MESSAGES/messages.mo | Bin 46077 -> 44569 bytes .../zh_Hans_CN/LC_MESSAGES/messages.po | 1953 +++-------------- cps/ub.py | 4 +- messages.pot | 465 ++-- 40 files changed, 4949 insertions(+), 7362 deletions(-) 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/email_edit.html b/cps/templates/email_edit.html index f5180921..2ac9d463 100644 --- a/cps/templates/email_edit.html +++ b/cps/templates/email_edit.html @@ -57,7 +57,7 @@ -

{{_('Denied Domains (Blacklist))')}}

+

{{_('Denied Domains (Blacklist)')}}

diff --git a/cps/templates/generate_kobo_auth_url.html b/cps/templates/generate_kobo_auth_url.html index fea9aecb..bfb79a0d 100644 --- a/cps/templates/generate_kobo_auth_url.html +++ b/cps/templates/generate_kobo_auth_url.html @@ -5,7 +5,7 @@ {{_('Open the .kobo/Kobo eReader.conf file in a text editor and add (or edit):')}}

- {% if not warning %}{{_('api_endpoint=')}}{{kobo_auth_url}}{% else %}{{warning}}{% endif %} + {% if not warning %}'api_endpoint='{{kobo_auth_url}}{% else %}{{warning}}{% endif %}

{{_('Please note that every visit to this current page invalidates any previously generated Authentication url for this user.')}} diff --git a/cps/templates/index.xml b/cps/templates/index.xml index 08c8f4ec..c99388a3 100644 --- a/cps/templates/index.xml +++ b/cps/templates/index.xml @@ -21,7 +21,7 @@ {{_('Popular publications from this catalog based on Downloads.')}} - {{_('Best rated Books')}} + {{_('Top Rated Books')}} {{url_for('opds.feed_best_rated')}} {{ current_time }} diff --git a/cps/templates/layout.html b/cps/templates/layout.html index a1f9de8b..88e0a6eb 100644 --- a/cps/templates/layout.html +++ b/cps/templates/layout.html @@ -114,7 +114,7 @@

{%endif%} diff --git a/cps/templates/search.html b/cps/templates/search.html index c4c3d0e4..eb6e83d0 100644 --- a/cps/templates/search.html +++ b/cps/templates/search.html @@ -3,7 +3,7 @@
{% if entries|length < 1 %}

{{_('No Results Found')}} {{searchterm}}

-

{{_('Search Term::')}} {{searchterm}}

+

{{_('Search Term:')}} {{searchterm}}

{% else %}

{{entries|length}} {{_('Results for:')}} {{searchterm}}

{% if g.user.is_authenticated %} diff --git a/cps/templates/shelf.html b/cps/templates/shelf.html index 0bde5278..f37661ce 100644 --- a/cps/templates/shelf.html +++ b/cps/templates/shelf.html @@ -64,7 +64,7 @@