From 9b01180ec981d6d0ffd7b0e84a3ddbb0a2cf1ecc Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Mon, 31 Oct 2022 22:19:18 +0100 Subject: [builder][server][proxy] complete internationalization and add polish translation --- src/hydrilla/proxy/policies/misc.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/hydrilla/proxy/policies/misc.py') diff --git a/src/hydrilla/proxy/policies/misc.py b/src/hydrilla/proxy/policies/misc.py index 0ff4596..e789b29 100644 --- a/src/hydrilla/proxy/policies/misc.py +++ b/src/hydrilla/proxy/policies/misc.py @@ -47,7 +47,9 @@ class FallbackAllowPolicy(AllowPolicy): def make_info_page(self, http_info: http_messages.FullHTTPInfo) \ -> t.Optional[str]: - template = base.get_info_template('js_fallback_allowed_info.html.jinja') + template = self._get_info_template( + 'js_fallback_allowed_info.html.jinja' + ) return template.render(url=http_info.request_info.url.orig_url) @@ -56,7 +58,9 @@ class FallbackBlockPolicy(BlockPolicy): def make_info_page(self, http_info: http_messages.FullHTTPInfo) \ -> t.Optional[str]: - template = base.get_info_template('js_fallback_blocked_info.html.jinja') + template = self._get_info_template( + 'js_fallback_blocked_info.html.jinja' + ) return template.render(url=http_info.request_info.url.orig_url) @@ -71,7 +75,7 @@ class ErrorBlockPolicy(BlockPolicy): def make_info_page(self, http_info: http_messages.FullHTTPInfo) \ -> t.Optional[str]: - template = base.get_info_template('js_error_blocked_info.html.jinja') + template = self._get_info_template('js_error_blocked_info.html.jinja') return template.render( url = http_info.request_info.url.orig_url, settings = self.haketilo_settings, -- cgit v1.2.3