Adding translations support. Fixes #6

This commit is contained in:
Dessalines 2021-03-03 11:08:13 -05:00
parent 7958cc1b50
commit ebe95ec1d2
7 changed files with 263 additions and 177 deletions

View file

@ -13,16 +13,103 @@ build_search_index = false
default_language = 'en' default_language = 'en'
languages = [ # languages = [
{code = "fr"}, # {code = "fr"},
] # ]
[translations] [translations]
[translations.en] [translations.en]
hello = "A title"
[translations.fr] # base.html
hello = "Un titre" lemmy_link_agg = "A link aggregator for the fediverse"
docs = "docs"
code_of_conduct = "Code of Conduct"
coc = "CoC"
contact = "Contact"
made_using_1= "Made using"
# index.html
link_aggregator_fediverse = "A link aggregator for the fediverse."
join_a_server = "Join a Server"
run_a_server = "Run a Server"
follow_communities = "Follow communities anywhere in the world"
is_similar_to_sites = "is similar to sites like"
you_subscribe_to_create = "you subscribe to communities you're interested in, post links and discussions, then vote and comment on them. Lemmy isn't just a reddit alternative; its a network of interconnected communities ran by different people and organizations, all combining to create"
a_single_frontpage = "a single, personalized front page"
of_favorite_memes = "of your favorite news, articles, and memes."
open_source = "Open Source"
lemmy_remain_free = "Lemmy is and will always remain free,"
using_the_strong = "software, using the strong"
copyleft = "copyleft"
agpl_license = "AGPL License"
blazing_fast = "Blazing Fast"
made_using = "Made using some of the fastest frameworks and tools, including"
and = "and"
or = "or"
powerful_mod_tools = "Powerful Mod Tools"
each_server_can = "Each server can set its own moderation policy, to help foster a healthy environment where all can feel comfortable contributing."
create_platform = "Create your own discussion platform"
with_lemmy = "With Lemmy, you can"
easily_host = "easily host your own server"
and_all_these = "and all these servers are"
federated = "federated"
fediverse = "fediverse"
think_email = "(think email), and connected to the same universe, called the"
for_a_link_aggregator= "For a link aggregator, this means that someone registered on one server can subscribe to communities elsewhere, and can have discussions with people on a completely different server."
live_updates = "Live Updates"
new_comments = "New comments and posts stream in to your front page and inbox; No more page refreshes required."
more_features = "More Features"
self_hostable = "Self hostable, easy to deploy, via"
clean_interface = "Clean, mobile-friendly interface."
avatar_support = "User avatar support."
full_vote = "Full vote scores"
like_old_reddit = "like old Reddit"
themes_including = "Themes, including light, dark, and solarized."
emojis_with = "Emojis with autocomplete support. Start typing"
user_tagging = "User tagging using"
community_tagging = "Community tagging using"
image_uploading = "Integrated image uploading in both posts and comments."
notifications_including = "Notifications, including via email."
i18n_support = "i18n / internationalization support for > 30 languages."
rss_feeds = "RSS / Atom feeds for"
all = "All"
subscribed = "Subscribed"
inbox = "Inbox"
user = "User"
community = "Community"
can_fully_erase = "Can fully erase your data, replacing all posts and comments."
nsfw_support = "NSFW post / community support."
support_donate = "Support / Donate"
lemmy_is_free = "Lemmy is free, open-source software, meaning no advertising, monetizing, or venture capital, ever. Your donations directly support full-time development of the project."
support_liberapay = "Support on Liberapay"
support_patreon = "Support on Patreon"
support_opencollective = "Support on OpenCollective"
# join.html
servers = "servers"
choose_and_join = "Choose and join a server from the approved servers below."
users = "users"
join = "Join"
# apps.html
apps = "Apps"
choose_apps = "Choose from any of the apps below."
lemmur_desc = "A Lemmy client for Android, Linux, and Windows."
remmel_desc = "An iOS client for lemmy."
web_apps = "Web Apps"
lemmy_desc = "The official web app for lemmy."
lemmy_lite_desc = "A static, JSless, touch-friendly Lemmy frontend built for legacy web clients and maximum performance."
api_libraries = "API Libraries"
lemmy_js_client_desc = "a javascript / typescript client."
lemmy_dart_client_desc = "a dart / flutter client."
# sponsors.html
donate_to_lemmy = "Donate to Lemmy"
sponsors = "Sponsors"
silver_sponsors = "Silver Sponsors are those that pledged $40 to Lemmy."
general_sponsors = "General Sponsors are those that pledged $10 to $39 to Lemmy."
crypto = "Crypto"
[extra] [extra]
# Put all your custom variables here # Put all your custom variables here

View file

@ -1,88 +1,3 @@
+++ +++
template = "page.html" template = "sponsors.html"
+++ +++
<div class="text-center">
<h1>Donate to Lemmy</h1>
<p>Lemmy is free, open-source software, meaning no advertising, monetizing, or venture capital, ever. <a href="/sponsors">Your donations</a> directly support full-time development of the project.
</p>
<div class="row is-horizontal-align">
<div class="col-3">
<a class="button primary" href="https://liberapay.com/Lemmy">Support on Liberapay</a>
</div>
<div class="col-3">
<a class="button primary" href="https://www.patreon.com/dessalines">Support on Patreon</a>
</div>
<div class="col-3">
<a class="col button primary" href="https://opencollective.com/lemmy">Support on OpenCollective</a>
</div>
</div>
</p>
</div>
---
<div class="text-center">
<h2>Sponsors</h2>
<p>Silver Sponsors are those that pledged $40 to Lemmy.</p>
<div class="row is-horizontal-align">
<div class="col">
<a class="button outline primary" href="https://iww.org/">💎 RedJoker</a>
</div>
</div>
<br />
<p>General Sponsors are those that pledged $10 to $39 to Lemmy.</p>
<div class="row is-horizontal-align">
<div class="col">
<div class="button outline primary">DQW</div>
</div>
<div class="col">
<div class="button outline primary">Alex Benishek</div>
</div>
<div class="col">
<div class="button outline">seahorse</div>
</div>
<div class="col">
<div class="button outline">Tommaso</div>
</div>
<div class="col">
<div class="button outline">Jamie Gray</div>
</div>
<div class="col">
<div class="button outline">Brendan</div>
</div>
<div class="col">
<div class="button outline">mexicanhalloween</div>
</div>
<div class="col">
<div class="button outline">William Moore</div>
</div>
<div class="col">
<div class="button outline">Rachel Schmitz</div>
</div>
<div class="col">
<div class="button outline">comradeda</div>
</div>
<div class="col">
<div class="button outline">Jonathan Cremin</div>
</div>
<div class="col">
<div class="button outline">Arthur Nieuwland</div>
</div>
<div class="col">
<div class="button outline">Forrest Weghorst</div>
</div>
<div class="col">
<div class="button outline">Andre Vallestero</div>
</div>
</div>
</div>
<div class="text-center">
<h1>Crypto</h1>
<table>
<tr><td>bitcoin</td><td><code>1Hefs7miXS5ff5Ck5xvmjKjXf5242KzRtK</code></td></tr>
<tr><td>ethereum</td><td><code>0x400c96c96acbC6E7B3B43B1dc1BB446540a88A01</code></td></tr>
<tr><td>monero</td><td><code>41taVyY6e1xApqKyMVDRVxJ76sPkfZhALLTjRvVKpaAh2pBd4wv9RgYj1tSPrx8wc6iE1uWUfjtQdTmTy2FGMeChGVKPQuV</code></td></tr>
</table>
</div>

View file

@ -1,8 +1,8 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block content %} {% block content %}
<div class="container"> <div class="container">
<h1>Lemmy Apps</h1> <h1>Lemmy {{ trans(key="apps", lang=lang) }}</h1>
<p>Choose from any of the apps below.</p> <p>{{ trans(key="choose_apps", lang=lang) }}</p>
<div class="row"> <div class="row">
@ -19,7 +19,7 @@
<img class="app-banner" src="/images/lemmur_screen.webp" /> <img class="app-banner" src="/images/lemmur_screen.webp" />
</div> </div>
<br /> <br />
<p class="is-center">A Lemmy client for Android, Linux, and Windows.</p> <p class="is-center">{{ trans(key="lemmur_desc", lang=lang) }}</p>
<footer class="is-center"> <footer class="is-center">
<a class="button primary" href="https://f-droid.org/packages/com.krawieck.lemmur"><svg class="icon icon-f-droid"><use xlink:href="#icon-f-droid"></use></svg></a> <a class="button primary" href="https://f-droid.org/packages/com.krawieck.lemmur"><svg class="icon icon-f-droid"><use xlink:href="#icon-f-droid"></use></svg></a>
<a class="button primary" href="https://play.google.com/store/apps/details?id=com.krawieck.lemmur"><svg class="icon icon-googleplay"><use xlink:href="#icon-googleplay"></use></svg></a> <a class="button primary" href="https://play.google.com/store/apps/details?id=com.krawieck.lemmur"><svg class="icon icon-googleplay"><use xlink:href="#icon-googleplay"></use></svg></a>
@ -40,7 +40,7 @@
<img class="app-banner" src="/images/remmel_screen.webp" /> <img class="app-banner" src="/images/remmel_screen.webp" />
</div> </div>
<br /> <br />
<p class="is-center">An iOS client for lemmy.</p> <p class="is-center">{{ trans(key="remmel_desc", lang=lang) }}</p>
<footer class="is-center"> <footer class="is-center">
<a class="button primary" href="https://apps.apple.com/us/app/remmel-for-lemmy/id1547988171"><svg class="icon icon-appleinc"><use xlink:href="#icon-appleinc"></use></svg></a> <a class="button primary" href="https://apps.apple.com/us/app/remmel-for-lemmy/id1547988171"><svg class="icon icon-appleinc"><use xlink:href="#icon-appleinc"></use></svg></a>
<a class="button primary" href="https://github.com/uuttff8/Lemmy-iOS"><svg class="icon icon-github"><use xlink:href="#icon-github"></use></svg></a> <a class="button primary" href="https://github.com/uuttff8/Lemmy-iOS"><svg class="icon icon-github"><use xlink:href="#icon-github"></use></svg></a>
@ -49,7 +49,7 @@
</div> </div>
<h1>Web Apps</h1> <h1>{{ trans(key="web_apps", lang=lang) }}</h1>
<div class="row"> <div class="row">
@ -66,7 +66,7 @@
<img class="app-banner" src="/images/mobile_pic.webp" /> <img class="app-banner" src="/images/mobile_pic.webp" />
</div> </div>
<br /> <br />
<p class="is-center">The official web app for lemmy.</p> <p class="is-center">{{ trans(key="lemmy_desc", lang=lang) }}</p>
<footer class="is-center"> <footer class="is-center">
<a class="button primary" href="https://github.com/LemmyNet/lemmy-ui"><svg class="icon icon-github"><use xlink:href="#icon-github"></use></svg></a> <a class="button primary" href="https://github.com/LemmyNet/lemmy-ui"><svg class="icon icon-github"><use xlink:href="#icon-github"></use></svg></a>
</footer> </footer>
@ -85,7 +85,7 @@
<img class="app-banner" src="/images/lemmy_lite_screen.webp" /> <img class="app-banner" src="/images/lemmy_lite_screen.webp" />
</div> </div>
<br /> <br />
<p class="is-center">A static, JSless, touch-friendly Lemmy frontend built for legacy web clients and maximum performance</p> <p class="is-center">{{ trans(key="lemmy_lite_desc", lang=lang) }}</p>
<footer class="is-center"> <footer class="is-center">
<a class="button primary" href="https://github.com/IronOxidizer/lemmy-lite"><svg class="icon icon-github"><use xlink:href="#icon-github"></use></svg></a> <a class="button primary" href="https://github.com/IronOxidizer/lemmy-lite"><svg class="icon icon-github"><use xlink:href="#icon-github"></use></svg></a>
</footer> </footer>
@ -93,13 +93,13 @@
</div> </div>
<h1>Lemmy API Libraries</h1> <h1>{{ trans(key="api_libraries", lang=lang) }}</h1>
<ul> <ul>
<li> <li>
<a href="https://github.com/LemmyNet/lemmy-js-client">lemmy-js-client</a> - a javascript / typescript client. <a href="https://github.com/LemmyNet/lemmy-js-client">lemmy-js-client</a> - {{ trans(key="lemmy_js_client_desc", lang=lang) }}
</li> </li>
<li> <li>
<a href="https://github.com/krawieck/lemmy_api_client">lemmy-dart client</a> - a dart / flutter client. <a href="https://github.com/krawieck/lemmy_api_client">lemmy-dart client</a> - {{ trans(key="lemmy_dart_client_desc", lang=lang) }}
</li> </li>
</ul> </ul>

View file

@ -3,7 +3,7 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Lemmy - A link aggregator for the fediverse</title> <title>Lemmy - {{ trans(key="lemmy_link_agg", lang=lang) }}</title>
<link rel="stylesheet" href="/scripts/chota.min.css"> <link rel="stylesheet" href="/scripts/chota.min.css">
<link rel="shortcut icon" type="image/svg+xml" href="/images/lemmy.svg" /> <link rel="shortcut icon" type="image/svg+xml" href="/images/lemmy.svg" />
<style> <style>
@ -99,12 +99,12 @@
<nav class="nav hide-xs"> <nav class="nav hide-xs">
<div class="nav-left"> <div class="nav-left">
<a class="brand" href="/"><img src="/images/lemmy.svg" height=32 width=32></a> <a class="brand" href="/"><img src="/images/lemmy.svg" height=32 width=32></a>
<a href="/join">Join</a> <a href="/join">{{ trans(key="join", lang=lang) }}</a>
<a href="/apps">Apps</a> <a href="/apps">{{ trans(key="apps", lang=lang) }}</a>
<a href="/sponsors">Sponsors</a> <a href="/sponsors">{{ trans(key="sponsors", lang=lang) }}</a>
<a href="/docs/en/index.html">Docs</a> <a href="/docs/en/index.html">{{ trans(key="docs", lang=lang) }}</a>
<a href="/docs/en/code_of_conduct.html" title="Code of Conduct">CoC</a> <a href="/docs/en/code_of_conduct.html" title="{{ trans(key="code_of_conduct", lang=lang) }}">{{ trans(key="coc", lang=lang) }}</a>
<a href="/contact">Contact</a> <a href="/contact">{{ trans(key="contact", lang=lang) }}</a>
</div> </div>
<div class="nav-right"> <div class="nav-right">
<a href="https://github.com/LemmyNet"><svg class="icon icon-github"><use xlink:href="#icon-github"></use></svg></a> <a href="https://github.com/LemmyNet"><svg class="icon icon-github"><use xlink:href="#icon-github"></use></svg></a>
@ -127,15 +127,15 @@
<footer> <footer>
<nav class="nav"> <nav class="nav">
<div class="nav-left"> <div class="nav-left">
<p style="padding-left:2rem">Made using <a style="display: inline-block" class="is-paddingless" href="https://www.getzola.org">Zola</a> and <a style="display: inline-block" class="is-paddingless" href="https://jenil.github.io/chota">Chota</a></p> <p style="padding-left:2rem">{{ trans(key="made_using_1", lang=lang) }} <a style="display: inline-block" class="is-paddingless" href="https://www.getzola.org">Zola</a> {{ trans(key="and", lang=lang) }} <a style="display: inline-block" class="is-paddingless" href="https://jenil.github.io/chota">Chota</a></p>
</div> </div>
<div class="nav-right hide-sm hide-md hide-lg"> <div class="nav-right hide-sm hide-md hide-lg">
<a href="/join">Join</a> <a href="/join">{{ trans(key="join", lang=lang) }}</a>
<a href="/apps">Apps</a> <a href="/apps">{{ trans(key="apps", lang=lang) }}</a>
<a href="/sponsors">Sponsors</a> <a href="/sponsors">{{ trans(key="sponsors", lang=lang) }}</a>
<a href="/docs/en/index.html">Docs</a> <a href="/docs/en/index.html">{{ trans(key="docs", lang=lang) }}</a>
<a href="/docs/en/code_of_conduct.html" title="Code of Conduct">CoC</a> <a href="/docs/en/code_of_conduct.html" title="{{ trans(key="code_of_conduct", lang=lang) }}">{{ trans(key="coc", lang=lang) }}</a>
<a href="/contact">Contact</a> <a href="/contact">{{ trans(key="contact", lang=lang) }}</a>
</div> </div>
</nav> </nav>
</footer> </footer>

View file

@ -5,13 +5,13 @@
<div class="container"> <div class="container">
<div class="text-center"> <div class="text-center">
<h1 class="stylized">Lemmy</h1> <h1 class="stylized">Lemmy</h1>
<h4>A link aggregator for the fediverse.</h4> <h4>{{ trans(key="link_aggregator_fediverse", lang=lang) }}</h4>
<div class="row is-horizontal-align"> <div class="row is-horizontal-align">
<div class="col-2-lg"> <div class="col-2-lg">
<a class="button primary" href="/join">Join a Server</a> <a class="button primary" href="/join">{{ trans(key="join_a_server", lang=lang) }}</a>
</div> </div>
<div class="col-2-lg"> <div class="col-2-lg">
<a class="button primary" href="/docs/en/administration/administration.html">Run a Server</a> <a class="button primary" href="/docs/en/administration/administration.html">{{ trans(key="run_a_server", lang=lang) }}</a>
</div> </div>
</div> </div>
</div> </div>
@ -21,12 +21,9 @@
<div class="container"> <div class="container">
<div class="text-center"> <div class="text-center">
{{lang}} <h2>{{ trans(key="follow_communities", lang=lang) }}</h2>
{{ trans(key="hello", lang=lang) }} <p><a href="https://github.com/LemmyNet">Lemmy</a> {{ trans(key="is_similar_to_sites", lang=lang) }} <a href="https://reddit.com">Reddit</a>, <a href="https://lobste.rs">Lobste.rs</a>, or <a href="https://news.ycombinator.com/">Hacker News</a>: {{ trans(key="you_subscribe_to_create", lang=lang) }} <b>{{ trans(key="a_single_frontpage", lang=lang) }}</b> {{ trans(key="of_favorite_memes", lang=lang) }} </p>
<p><a class="button primary" href="/join">{{ trans(key="join_a_server", lang=lang) }}</a></p>
<h2>Follow communities anywhere in the world</h2>
<p><a href="https://github.com/LemmyNet">Lemmy</a> is similar to sites like <a href="https://reddit.com">Reddit</a>, <a href="https://lobste.rs">Lobste.rs</a>, or <a href="https://news.ycombinator.com/">Hacker News</a>: you subscribe to communities you're interested in, post links and discussions, then vote and comment on them. Lemmy isn't just a reddit alternative; its a network of interconnected communities ran by different people and organizations, all combining to create <b>a single, personalized front page</b> of your favorite news, articles, and memes. </p>
<p><a class="button primary" href="/join">Join a Server</a></p>
</div> </div>
</div> </div>
<br /> <br />
@ -42,8 +39,8 @@
<img height=180 src="images/review_pic.webp"> <img height=180 src="images/review_pic.webp">
</header> </header>
<br /> <br />
<h4 class="text-center">Open Source</h4> <h4 class="text-center">{{ trans(key="open_source", lang=lang) }}</h4>
<p>Lemmy is and will always remain free, <a href="https://github.com/LemmyNet">open source</a> software, using the strong <a href="https://en.wikipedia.org/wiki/Copyleft">copyleft</a> <a href="https://github.com/LemmyNet/lemmy/blob/master/LICENSE">AGPL License</a>.</p> <p> {{ trans(key="lemmy_remain_free", lang=lang) }} <a href="https://github.com/LemmyNet">{{ trans(key="open_source", lang=lang) }}</a> {{ trans(key="using_the_strong", lang=lang) }} <a href="https://en.wikipedia.org/wiki/Copyleft">{{ trans(key="copyleft", lang=lang) }}</a> <a href="https://github.com/LemmyNet/lemmy/blob/master/LICENSE">{{ trans(key="agpl_license", lang=lang) }}</a>.</p>
</div> </div>
</div> </div>
<div class="col-4"> <div class="col-4">
@ -52,8 +49,8 @@
<img height=180 src="/images/code_pic.webp"> <img height=180 src="/images/code_pic.webp">
</header> </header>
<br /> <br />
<h4 class="text-center">Blazing Fast</h4> <h4 class="text-center">{{ trans(key="blazing_fast", lang=lang) }}</h4>
<p>Made using some of the fastest frameworks and tools, including <a href="https://www.rust-lang.org">Rust</a>, <a href="https://actix.rs/">Actix</a>, <a href="http://diesel.rs/">Diesel</a>, <a href="https://infernojs.org">Inferno</a>, and <a href="https://www.typescriptlang.org/">Typescript</a>.</p> <p>{{ trans(key="made_using", lang=lang) }} <a href="https://www.rust-lang.org">Rust</a>, <a href="https://actix.rs/">Actix</a>, <a href="http://diesel.rs/">Diesel</a>, <a href="https://infernojs.org">Inferno</a>, {{ trans(key="and", lang=lang) }} <a href="https://www.typescriptlang.org/">Typescript</a>.</p>
</div> </div>
</div> </div>
<div class="col-4"> <div class="col-4">
@ -62,8 +59,8 @@
<img height=180 src="/images/mod_pic.webp"> <img height=180 src="/images/mod_pic.webp">
</header> </header>
<br /> <br />
<h4 class="text-center">Powerful Mod Tools</h4> <h4 class="text-center">{{ trans(key="powerful_mod_tools", lang=lang) }}</h4>
<p>Each server can set its own moderation policy, to help foster a healthy environment where all can feel comfortable contributing.</p> <p>{{ trans(key="each_server_can", lang=lang) }}</p>
</div> </div>
</div> </div>
</div> </div>
@ -74,10 +71,10 @@
<div class="container"> <div class="container">
<div class="text-center"> <div class="text-center">
<h2>Create your own discussion platform</h2> <h2>{{ trans(key="create_platform", lang=lang) }}</h2>
<p>With Lemmy, you can <a href="/docs/en/administration/administration.html">easily host your own server</a>, and all these servers are <i>federated</i> (think email), and connected to the same universe, called the <a href="https://en.wikipedia.org/wiki/Fediverse">Fediverse</a>. For a link aggregator, this means that someone registered on one server can subscribe to communities elsewhere, and can have discussions with people on a completely different server.</p> <p>{{ trans(key="with_lemmy", lang=lang) }} <a href="/docs/en/administration/administration.html">{{ trans(key="easily_host", lang=lang) }}</a>, {{ trans(key="and_all_these", lang=lang) }} <i>{{ trans(key="federated", lang=lang) }}</i> {{ trans(key="think_email", lang=lang) }} <a href="https://en.wikipedia.org/wiki/Fediverse">{{ trans(key="fediverse", lang=lang) }}</a>. {{ trans(key="for_a_link_aggregator", lang=lang) }}</p>
<p> <p>
<a class="button primary" href="/docs/en/administration/administration.html">Run a Server</a> <a class="button primary" href="/docs/en/administration/administration.html">{{ trans(key="run_a_server", lang=lang) }}</a>
</p> </p>
</div> </div>
</div> </div>
@ -89,8 +86,8 @@
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col-6"> <div class="col-6">
<h4>Live Updates</h4> <h4>{{ trans(key="live_updates", lang=lang) }}</h4>
<p>New comments and posts stream in to your front page and inbox; No more page refreshes required.</p> <p>{{ trans(key="new_comments", lang=lang) }}</p>
</div> </div>
<div class="col-6 is-center"> <div class="col-6 is-center">
<video height=325 autoplay loop> <video height=325 autoplay loop>
@ -109,22 +106,22 @@
<img height=325 src="/images/mobile_pic.webp"> <img height=325 src="/images/mobile_pic.webp">
</div> </div>
<div class="col-6"> <div class="col-6">
<h4 class="is-marginless">More Features</h4> <h4 class="is-marginless">{{ trans(key="more_features", lang=lang) }}</h4>
<ul class="is-marginless"> <ul class="is-marginless">
<li>Self hostable, easy to deploy, via <a href="/docs/en/administration/install_docker.html">Docker</a>, or <a href="/docs/en/administration/install_ansible.html">Ansible</a>. <li>{{ trans(key="self_hostable", lang=lang) }} <a href="/docs/en/administration/install_docker.html">Docker</a>, {{ trans(key="or", lang=lang) }} <a href="/docs/en/administration/install_ansible.html">Ansible</a>.
</li> </li>
<li>Clean, mobile-friendly interface.</li> <li>{{ trans(key="clean_interface", lang=lang) }}</li>
<li>User avatar support.</li> <li>{{ trans(key="avatar_support", lang=lang) }}</li>
<li>Full vote scores <code>(+/-)</code> like old Reddit.</li> <li>{{ trans(key="full_vote", lang=lang) }} <code>(+/-)</code> {{ trans(key="like_old_reddit", lang=lang) }}.</li>
<li>Themes, including light, dark, and solarized.</li> <li>{{ trans(key="themes_including", lang=lang) }}</li>
<li>Emojis with autocomplete support. Start typing <code>:</code></li> <li>{{ trans(key="emojis_with", lang=lang) }} <code>:</code></li>
<li>User tagging using <code>@</code>, Community tagging using <code>!</code>.</li> <li>{{ trans(key="user_tagging", lang=lang) }} <code>@</code>, {{ trans(key="community_tagging", lang=lang) }} <code>!</code>.</li>
<li>Integrated image uploading in both posts and comments.</li> <li>{{ trans(key="image_uploading", lang=lang) }}</li>
<li>Notifications, including via email.</li> <li>{{ trans(key="notifications_including", lang=lang) }}</li>
<li><a href="https://weblate.yerbamate.ml/projects/lemmy/lemmy/">i18n / internationalization support for > 30 languages.</a></li> <li><a href="https://weblate.yerbamate.ml/projects/lemmy/lemmy/">{{ trans(key="i18n_support", lang=lang) }}</a></li>
<li>RSS / Atom feeds for <code>All</code>, <code>Subscribed</code>, <code>Inbox</code>, <code>User</code>, and <code>Community</code>.</li> <li>{{ trans(key="rss_feeds", lang=lang) }} <code>{{ trans(key="all", lang=lang) }}</code>, <code>{{ trans(key="subscribed", lang=lang) }}</code>, <code>{{ trans(key="inbox", lang=lang) }}</code>, <code>{{ trans(key="user", lang=lang) }}</code>, {{ trans(key="and", lang=lang) }} <code>{{ trans(key="community", lang=lang) }}</code>.</li>
<li>Can fully erase your data, replacing all posts and comments.</li> <li>{{ trans(key="can_fully_erase", lang=lang) }}</li>
<li>NSFW post / community support.</li> <li>{{ trans(key="nsfw_support", lang=lang) }}</li>
</ul> </ul>
</p> </p>
</div> </div>
@ -136,17 +133,17 @@
<br /> <br />
<div class="container"> <div class="container">
<div class="text-center"> <div class="text-center">
<h2><a href="/sponsors">Support / Donate</a></h2> <h2><a href="/sponsors">{{ trans(key="support_donate", lang=lang) }}</a></h2>
<p>Lemmy is free, open-source software, meaning no advertising, monetizing, or venture capital, ever. <a href="/sponsors">Your donations</a> directly support full-time development of the project. <p>{{ trans(key="lemmy_is_free", lang=lang) }}</p>
<div class="row is-horizontal-align"> <div class="row is-horizontal-align">
<div class="col-3"> <div class="col-3">
<a class="button primary" href="https://liberapay.com/Lemmy">Support on Liberapay</a> <a class="button primary" href="https://liberapay.com/Lemmy">{{ trans(key="support_liberapay", lang=lang) }}</a>
</div> </div>
<div class="col-3"> <div class="col-3">
<a class="button primary" href="https://www.patreon.com/dessalines">Support on Patreon</a> <a class="button primary" href="https://www.patreon.com/dessalines">{{ trans(key="support_patreon", lang=lang) }}</a>
</div> </div>
<div class="col-3"> <div class="col-3">
<a class="col button primary" href="https://opencollective.com/lemmy">Support on OpenCollective</a> <a class="col button primary" href="https://opencollective.com/lemmy">{{ trans(key="support_opencollective", lang=lang) }}</a>
</div> </div>
</div> </div>
</div> </div>

View file

@ -1,8 +1,8 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block content %} {% block content %}
<div class="container"> <div class="container">
<h1>Lemmy servers</h1> <h1>Lemmy {{ trans(key="servers", lang=lang) }}</h1>
<p>Choose and join a server from the approved servers below.</p> <p>{{ trans(key="choose_and_join", lang=lang) }}</p>
<div class="row"> <div class="row">
@ -10,7 +10,7 @@
<header> <header>
<div class="row"> <div class="row">
<h4 class="col">lemmy.ml</h4> <h4 class="col">lemmy.ml</h4>
<h4 class="col text-right"><i>5.9k users</i></h4> <h4 class="col text-right"><i>5.9k {{ trans(key="users", lang=lang) }}</i></h4>
</div> </div>
</header> </header>
<div class="is-center"> <div class="is-center">
@ -19,7 +19,7 @@
<br /> <br />
<p class="join-desc">The flagship instance of lemmy.</p> <p class="join-desc">The flagship instance of lemmy.</p>
<footer> <footer>
<a class="button primary" href="https://lemmy.ml">Join</a> <a class="button primary" href="https://lemmy.ml">{{ trans(key="join", lang=lang) }}</a>
</footer> </footer>
</div> </div>
@ -27,7 +27,7 @@
<header> <header>
<div class="row"> <div class="row">
<h4 class="col">lemmygrad.ml</h4> <h4 class="col">lemmygrad.ml</h4>
<h4 class="col text-right"><i>2.3k users</i></h4> <h4 class="col text-right"><i>2.3k {{ trans(key="users", lang=lang) }}</i></h4>
</div> </div>
</header> </header>
<div class="is-center"> <div class="is-center">
@ -36,7 +36,7 @@
<br /> <br />
<p class="join-desc">A collection of leftist communities, for memes, learning, news, discussion, media, or anything you like.</p> <p class="join-desc">A collection of leftist communities, for memes, learning, news, discussion, media, or anything you like.</p>
<footer> <footer>
<a class="button primary" href="https://lemmygrad.ml">Join</a> <a class="button primary" href="https://lemmygrad.ml">{{ trans(key="join", lang=lang) }}</a>
</footer> </footer>
</div> </div>
@ -44,7 +44,7 @@
<header> <header>
<div class="row"> <div class="row">
<h4 class="col">lemmy.161.social</h4> <h4 class="col">lemmy.161.social</h4>
<h4 class="col text-right"><i>50 users</i></h4> <h4 class="col text-right"><i>50 {{ trans(key="users", lang=lang) }}</i></h4>
</div> </div>
</header> </header>
<div class="is-center"> <div class="is-center">
@ -53,7 +53,7 @@
<br /> <br />
<p class="join-desc">An anti-authoritarian and emancipatory space for german speaking anti-fascists.</p> <p class="join-desc">An anti-authoritarian and emancipatory space for german speaking anti-fascists.</p>
<footer> <footer>
<a class="button primary" href="https://lemmy.161.social">Join</a> <a class="button primary" href="https://lemmy.161.social">{{ trans(key="join", lang=lang) }}</a>
</footer> </footer>
</div> </div>
@ -61,7 +61,7 @@
<header> <header>
<div class="row"> <div class="row">
<h4 class="col">baraza.africa</h4> <h4 class="col">baraza.africa</h4>
<h4 class="col text-right"><i>20 users</i></h4> <h4 class="col text-right"><i>20 {{ trans(key="users", lang=lang) }}</i></h4>
</div> </div>
</header> </header>
<div class="is-center"> <div class="is-center">
@ -70,7 +70,7 @@
<br /> <br />
<p class="join-desc">baraza is a digital public square as imagined in Bantu philosophy, one premised on the assumption that deliberative dialogue is a path to better societies.</p> <p class="join-desc">baraza is a digital public square as imagined in Bantu philosophy, one premised on the assumption that deliberative dialogue is a path to better societies.</p>
<footer> <footer>
<a class="button primary" href="https://baraza.africa">Join</a> <a class="button primary" href="https://baraza.africa">{{ trans(key="join", lang=lang) }}</a>
</footer> </footer>
</div> </div>
@ -78,7 +78,7 @@
<header> <header>
<div class="row"> <div class="row">
<h4 class="col">lemmy.glasgow.social</h4> <h4 class="col">lemmy.glasgow.social</h4>
<h4 class="col text-right"><i>60 users</i></h4> <h4 class="col text-right"><i>60 {{ trans(key="users", lang=lang) }}</i></h4>
</div> </div>
</header> </header>
<div class="is-center"> <div class="is-center">
@ -87,7 +87,7 @@
<br /> <br />
<p class="join-desc">A place for communities in and around Glasgow, Scotland.</p> <p class="join-desc">A place for communities in and around Glasgow, Scotland.</p>
<footer> <footer>
<a class="button primary" href="https://lemmy.glasgow.social">Join</a> <a class="button primary" href="https://lemmy.glasgow.social">{{ trans(key="join", lang=lang) }}</a>
</footer> </footer>
</div> </div>
@ -95,7 +95,7 @@
<header> <header>
<div class="row"> <div class="row">
<h4 class="col">lemmy.cat</h4> <h4 class="col">lemmy.cat</h4>
<h4 class="col text-right"><i>30 users</i></h4> <h4 class="col text-right"><i>30 {{ trans(key="users", lang=lang) }}</i></h4>
</div> </div>
</header> </header>
<div class="is-center"> <div class="is-center">
@ -104,7 +104,7 @@
<br /> <br />
<p class="join-desc">A Lemmy instance for people of Catalan culture.</p> <p class="join-desc">A Lemmy instance for people of Catalan culture.</p>
<footer> <footer>
<a class="button primary" href="https://lemmy.cat">Join</a> <a class="button primary" href="https://lemmy.cat">{{ trans(key="join", lang=lang) }}</a>
</footer> </footer>
</div> </div>
@ -112,7 +112,7 @@
<header> <header>
<div class="row"> <div class="row">
<h4 class="col">lemmy.ca</h4> <h4 class="col">lemmy.ca</h4>
<h4 class="col text-right"><i>11 users</i></h4> <h4 class="col text-right"><i>11 {{ trans(key="users", lang=lang) }}</i></h4>
</div> </div>
</header> </header>
<div class="is-center"> <div class="is-center">
@ -121,7 +121,7 @@
<br /> <br />
<p class="join-desc">A Lemmy geared toward Canucks, hosted in Canuckistan, and run by a Canuck.</p> <p class="join-desc">A Lemmy geared toward Canucks, hosted in Canuckistan, and run by a Canuck.</p>
<footer> <footer>
<a class="button primary" href="https://lemmy.ca">Join</a> <a class="button primary" href="https://lemmy.ca">{{ trans(key="join", lang=lang) }}</a>
</footer> </footer>
</div> </div>
@ -129,7 +129,7 @@
<header> <header>
<div class="row"> <div class="row">
<h4 class="col">lemmy.eus</h4> <h4 class="col">lemmy.eus</h4>
<h4 class="col text-right"><i>100 users</i></h4> <h4 class="col text-right"><i>100 {{ trans(key="users", lang=lang) }}</i></h4>
</div> </div>
</header> </header>
<div class="is-center"> <div class="is-center">
@ -138,7 +138,7 @@
<br /> <br />
<p class="join-desc">A Basque Lemmy instance.</p> <p class="join-desc">A Basque Lemmy instance.</p>
<footer> <footer>
<a class="button primary" href="https://lemmy.eus">Join</a> <a class="button primary" href="https://lemmy.eus">{{ trans(key="join", lang=lang) }}</a>
</footer> </footer>
</div> </div>
@ -146,7 +146,7 @@
<header> <header>
<div class="row"> <div class="row">
<h4 class="col">sopuli.xyz</h4> <h4 class="col">sopuli.xyz</h4>
<h4 class="col text-right"><i>10 users</i></h4> <h4 class="col text-right"><i>10 {{ trans(key="users", lang=lang) }}</i></h4>
</div> </div>
</header> </header>
<div class="is-center"> <div class="is-center">
@ -155,7 +155,7 @@
<br /> <br />
<p class="join-desc">A general-purpose Finnish instance.</p> <p class="join-desc">A general-purpose Finnish instance.</p>
<footer> <footer>
<a class="button primary" href="https://sopuli.xyz">Join</a> <a class="button primary" href="https://sopuli.xyz">{{ trans(key="join", lang=lang) }}</a>
</footer> </footer>
</div> </div>
@ -163,7 +163,7 @@
<header> <header>
<div class="row"> <div class="row">
<h4 class="col">stammtisch.hallertau.social</h4> <h4 class="col">stammtisch.hallertau.social</h4>
<h4 class="col text-right"><i>~10 users</i></h4> <h4 class="col text-right"><i>~10 {{ trans(key="users", lang=lang) }}</i></h4>
</div> </div>
</header> </header>
<div class="is-center"> <div class="is-center">
@ -172,7 +172,7 @@
<br /> <br />
<p class="join-desc">Sitz de hera, samma mehra.</p> <p class="join-desc">Sitz de hera, samma mehra.</p>
<footer> <footer>
<a class="button primary" href="https://stammtisch.hallertau.social">Join</a> <a class="button primary" href="https://stammtisch.hallertau.social">{{ trans(key="join", lang=lang) }}</a>
</footer> </footer>
</div> </div>

87
templates/sponsors.html Normal file
View file

@ -0,0 +1,87 @@
{% extends "base.html" %}
{% block content %}
<div class="container">
<div class="text-center">
<h2>{{ trans(key="support_donate", lang=lang) }}</h2>
<p>{{ trans(key="lemmy_is_free", lang=lang) }}</p>
<div class="row is-horizontal-align">
<div class="col-3">
<a class="button primary" href="https://liberapay.com/Lemmy">{{ trans(key="support_liberapay", lang=lang) }}</a>
</div>
<div class="col-3">
<a class="button primary" href="https://www.patreon.com/dessalines">{{ trans(key="support_patreon", lang=lang) }}</a>
</div>
<div class="col-3">
<a class="col button primary" href="https://opencollective.com/lemmy">{{ trans(key="support_opencollective", lang=lang) }}</a>
</div>
</div>
</div>
<hr />
<div class="text-center">
<h2>{{ trans(key="sponsors", lang=lang) }}</h2>
<p>{{ trans(key="silver_sponsors", lang=lang) }}</p>
<div class="row is-horizontal-align">
<div class="col">
<a class="button outline primary" href="https://iww.org/">💎 RedJoker</a>
</div>
</div>
<br />
<p>{{ trans(key="general_sponsors", lang=lang) }}</p>
<div class="row is-horizontal-align">
<div class="col">
<div class="button outline primary">DQW</div>
</div>
<div class="col">
<div class="button outline primary">Alex Benishek</div>
</div>
<div class="col">
<div class="button outline">seahorse</div>
</div>
<div class="col">
<div class="button outline">Tommaso</div>
</div>
<div class="col">
<div class="button outline">Jamie Gray</div>
</div>
<div class="col">
<div class="button outline">Brendan</div>
</div>
<div class="col">
<div class="button outline">mexicanhalloween</div>
</div>
<div class="col">
<div class="button outline">William Moore</div>
</div>
<div class="col">
<div class="button outline">Rachel Schmitz</div>
</div>
<div class="col">
<div class="button outline">comradeda</div>
</div>
<div class="col">
<div class="button outline">Jonathan Cremin</div>
</div>
<div class="col">
<div class="button outline">Arthur Nieuwland</div>
</div>
<div class="col">
<div class="button outline">Forrest Weghorst</div>
</div>
<div class="col">
<div class="button outline">Andre Vallestero</div>
</div>
</div>
</div>
<div class="text-center">
<h1>{{ trans(key="crypto", lang=lang) }}</h1>
<table>
<tr><td>bitcoin</td><td><code>1Hefs7miXS5ff5Ck5xvmjKjXf5242KzRtK</code></td></tr>
<tr><td>ethereum</td><td><code>0x400c96c96acbC6E7B3B43B1dc1BB446540a88A01</code></td></tr>
<tr><td>monero</td><td><code>41taVyY6e1xApqKyMVDRVxJ76sPkfZhALLTjRvVKpaAh2pBd4wv9RgYj1tSPrx8wc6iE1uWUfjtQdTmTy2FGMeChGVKPQuV</code></td></tr>
</table>
</div>
</div>
{% endblock content %}