aboutsummaryrefslogtreecommitdiff
path: root/src/hydrilla_website/templates/index.html.jinja
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-10-31 18:08:33 +0100
committerWojtek Kosior <koszko@koszko.org>2022-10-31 18:08:33 +0100
commite5d9ee98a548e2b863104e52eb2bc309b1336179 (patch)
tree729b649284823a45d95baeec27618223c21e83a3 /src/hydrilla_website/templates/index.html.jinja
parent5bd4d055f314eeba9187163b191ffa6ecce03f33 (diff)
downloadhydrilla-website-e5d9ee98a548e2b863104e52eb2bc309b1336179.tar.gz
hydrilla-website-e5d9ee98a548e2b863104e52eb2bc309b1336179.zip
add internationalization and polish translations
Diffstat (limited to 'src/hydrilla_website/templates/index.html.jinja')
-rw-r--r--src/hydrilla_website/templates/index.html.jinja142
1 files changed, 68 insertions, 74 deletions
diff --git a/src/hydrilla_website/templates/index.html.jinja b/src/hydrilla_website/templates/index.html.jinja
index 955c06f..642c833 100644
--- a/src/hydrilla_website/templates/index.html.jinja
+++ b/src/hydrilla_website/templates/index.html.jinja
@@ -32,6 +32,8 @@ code in a proprietary work, I am not going to enforce this in court.
max-width: 100%;
margin: auto;
}
+
+ .
{% endblock %}
{% set here_url = url_for('main') %}
@@ -39,12 +41,20 @@ code in a proprietary work, I am not going to enforce this in court.
{%
set nav_links_data = [
- ('', here_url ~ '#', 'Home'),
- ('about', here_url ~ '#about', 'About'),
- ('manual', here_url ~ '#manual', 'Manual'),
- (none, url_for('downloads') ~ '#', 'Downloads'),
- ('get-involved', here_url ~ '#get-involved', 'Get involved'),
- (none, site_git_url, 'Website sources')
+ ('', here_url ~ '#',
+ _('index.nav.home')),
+ ('about', here_url ~ '#about',
+ _('index.nav.about')),
+ ('manual', here_url ~ '#manual',
+ _('index.nav.manual')),
+ (none, url_for('downloads') ~ '#',
+ _('index.nav.downloads')),
+ ('get-involved', here_url ~ '#get-involved',
+ _('index.nav.get_involved')),
+ ('langs', here_url ~ '#langs',
+ _('index.nav.languages')),
+ (none, site_git_url,
+ _('index.nav.site_sources'))
]
%}
@@ -58,137 +68,121 @@ code in a proprietary work, I am not going to enforce this in court.
{% endcall %}
{% call subpage('about') %}
- <h3>About</h3>
+ <h3>
+ {{ _('index.h_big.about') }}
+ </h3>
<p>
- Haketilo is a tool that facilitates viewing websites with their original
- <a href="https://en.wikipedia.org/wiki/JavaScript">JavaScript</a> replaced
- by user-provided scripts.
- It combines the functionalities of content
- blocker and user script manager.
- It can be used with its script repository, Hydrilla.
+ {{ _('index.about.html.haketilo_is_a_tool')|safe }}
</p>
<p>
- One of Haketilo's aims is to address the issues raised in
- <a href="https://www.gnu.org/philosophy/javascript-trap.html">"The JavaScript trap"</a>.
- It is being developed with hope that it will make more user-controlled
- "Web" browsing possible.
+ {{ _('index.about.html.haketilo_javascript_trap')|safe }}
</p>
<p>
- Haketilo is a
- <a href="https://en.wikipedia.org/wiki/Free_software">free/libre software</a>,
- SSl-enabled HTTP proxy. As such, it can be used with multiple web
- browsers, regardless of their native support for some particular addon
- format.
+ {{ _('index.about.html.haketilo_is_libre_proxy')|safe }}
</p>
<p>
- A browser extension variant of Haketilo also exists and is compatible with
- <a href="https://en.wikipedia.org/wiki/Firefox">Firefox</a>- and
- <a href="https://en.wikipedia.org/wiki/Chromium_(web_browser)">Chromium</a>-based
- browsers that support the Manifest V2 WebExtension format. The browser
- extension is currently in maintenance mode and does not receive new
- features.
+ {{ _('index.about.html.haketilo_extension_variant')|safe }}
</p>
- <h4>Available packages</h4>
+ <h4>{{ _('index.about.h_medium.available_packages') }}</h4>
<p>
- Haketilo can be used both for simple script-blocking and for altering the
- ways websites are viewed. Its official Hydrilla repository provides a
- collection of
- <a href="https://en.wikipedia.org/wiki/Free-software_license">freely-licensed</a>
- packages that can make several websites viewable again after their
- original JavaScript is blocked from executing.
+ {{ _('index.about.available_packages.html')|safe }}
</p>
- <h4>Credits</h4>
+ <h4>{{ _('index.about.h_medium.credits') }}</h4>
- Those who knowingly or unknowingly helped the project in some way, receive
- special thanks.
+ <p>
+ {{ _('index.about.credits.special_thanks_to') }}
+ </p>
{% call unordered_list() %}
{% call list_entry() %}
- the <a href="https://nlnet.nl/">NLnet Foundation</a> with the
- <a href="https://ngi.eu/">NGI0 Programme</a> for funding the
- development of Haketilo in 2021 and 2022
+ {{ _('index.about.credits.list_entry.html.nlnet')|safe }}
{% endcall %}
{% call list_entry() %}
- <a href="https://tilde.team/~jahoti/">Jahoti</a> for contributions in
- the early stages of Haketilo browser extension
+ {{ _('index.about.credits.list_entry.html.jahoti')|safe }}
{% endcall %}
{% call list_entry() %}
- <a href="https://nicksphere.ch/">Nicholas Johnson</a> for preparing a
- <a href="https://media.libreplanet.org/u/libreplanet/m/taking-back-the-web-with-haketilo/">presentation about Haketilo</a>
- for LibrePlanet 2022
+ {{ _('index.about.credits.list_entry.html.nick')|safe }}
{% endcall %}
{% call list_entry() %}
- <a href="https://openclipart.org/artist/davidblyons">David Lyons</a> for
- his Hatchet graphic that is being used in Haketilo
+ {{ _('index.about.credits.list_entry.html.david_lyons')|safe }}
{% endcall %}
{% call list_entry() %}
- the creators of <a href="https://mitmproxy.org/">mitmproxy</a> which
- serves as a base for Haketilo proxy
+ {{ _('index.about.credits.list_entry.html.mitmproxy')|safe }}
{% endcall %}
{% call list_entry() %}
- the <a href="https://palletsprojects.com/">the Pallets Projects</a> for
- creating Flask and other tools that are used extensively in this very
- website as well as in Haketilo&Hydrilla
+ {{ _('index.about.credits.list_entry.html.pallets')|safe }}
{% endcall %}
{% endcall %}
{% endcall %}
{% call subpage('manual') %}
- <h3>User manual</h3>
+ <h3>{{ _('index.h_big.user_manual') }}</h3>
<p>
- Information about installation, running and some technical aspects of
- Haketilo operation can be found on
- <a href="https://hydrillabugs.koszko.org/projects/haketilo/wiki">project's Redmine-powered wiki</a>.
- Additional help is provided by Haketilo proxy's builtin documentation
- which can be viewed from the tool itself.
+ {{ _('index.user_manual.html.haketilo_wiki_and_inline_doc')|safe }}
</p>
<p>
- The documentation of Hydrilla repository server for use with Haketilo can
- be found on
- <a href="https://hydrillabugs.koszko.org/projects/hydrilla/wiki">on project's wiki</a>.
+ {{ _('index.user_manual.html.hydrilla_wiki')|safe }}
</p>
{% endcall %}
{% call subpage('get-involved') %}
- <h3>Get involved</h3>
+ <h3>{{ _('index.h_big.get_involved') }}</h3>
<p>
- Haketilo development currently occurs on
- <a href="https://hydrillabugs.koszko.org/">project's Redmine instance</a>.
- Individuals and groups are more than welcome to
+ {{ _('index.get_involved.html.project_redmine_instance')|safe }}
</p>
{% call unordered_list() %}
{% call list_entry() %}
- provide feedback and suggestions,
+ {{ _('index.get_involved.list_entry.provide_feedback') }}
{% endcall %}
{% call list_entry() %}
- make bug reports,
+ {{ _('index.get_involved.list_entry.report_bugs') }}
{% endcall %}
{% call list_entry() %}
- share custom scripts for websites,
+ {{ _('index.get_involved.list_entry.share_custom_scripts') }}
{% endcall %}
{% call list_entry() %}
- provide translations and
+ {{ _('index.get_involved.list_entry.provide_translations') }}
{% endcall %}
{% call list_entry() %}
- contribute code to Haketilo and Hydrilla.
+ {{ _('index.get_involved.list_entry.contribute_code') }}
{% endcall %}
{% endcall %}
<p>
- One can also email the maintainer of Haketilo,
- <a href="https://koszko.org/koszko.html">Wojtek Kosior</a>, directly
- at <a href="mailto:koszko@koszko.org">koszko@koszko.org</a>.
+ {{ _('index.get_involved.html.email_maintainer')|safe }}
</p>
{% endcall %}
+
+ {% call subpage('langs') %}
+ <h3>{{ _('index.h_big.choose_language') }}</h3>
+
+ {% call unordered_list() %}
+ {% set action_url = url_for('set_locale') %}
+ {%
+ for lang_name, lang_code in [
+ ('english', 'en_US'),
+ ('polski', 'pl_PL')
+ ]
+ %}
+ {% call list_entry() %}
+ <form method="POST" action="{{ action_url }}" class="inline">
+ {% set value = locale_serializer.dumps(lang_code) %}
+ <input type="hidden" name="lang_code" value="{{ value }}">
+ <button>{{ lang_name }}</button>
+ </form>
+ {% endcall %}
+ {% endfor %}
+ {% endcall %}
+ {% endcall %}
{% endblock %}