Remove old localization code

Don't remove .po yet, they still need to be imported to Crowdin.
This commit is contained in:
Baptiste Gelez 2019-05-01 11:49:37 +01:00
parent 3bd309cb87
commit 920781ed46
5 changed files with 124 additions and 32 deletions

View file

@ -7,8 +7,5 @@ It is using middleman.
## Usefull commands
- `./i18n.sh` to update .pot, .po and .mo files
- `middleman` for live preview during development
- `middleman build` when deploying
TODO: automatic deployment https://github.com/hovancik/middleman-github-deploy

10
i18n.sh
View file

@ -1,10 +0,0 @@
#! /bin/bash
rxgettext source/localizable/* source/layouts/* -o po/joinplume.pot
for lang in `cat po/LINGUAS`; do
if [ -f "po/$lang.po" ]; then
msgmerge -U "po/$lang.po" "po/joinplume.pot"
else
msginit --input "po/joinplume.pot" --output-file "po/$lang.po" -l $lang --no-translator
fi
done;

19
source/_nav.erb Normal file
View file

@ -0,0 +1,19 @@
<nav>
<ul>
<li>
<a href="https://contribute.joinplu.me/">Contribute</a>
</li>
<li>
<a href="https://docs.joinplu.me/">Documentation</a>
</li>
<li>
<a href="https://github.com/Plume-org/Plume">Source code</a>
</li>
<li>
<a href="https://riot.im/app/#/room/#plume:disroot.org">Chat room</a>
</li>
<li>
<a href="https://framavox.org/g/WK40YHMA/plume">Loomio group</a>
</li>
</ul>
</nav>

105
source/index.html.erb Normal file
View file

@ -0,0 +1,105 @@
<header>
<h1>Plume</h1>
<h2>A federated blogging application</h2>
<img src="/images/logo.png"/>
</header>
<main>
<%= partial "nav" %>
<section class="features">
<div class="card">
<span class="icon"><i data-feather="globe"></i></span>
<main>
<h2>Write once, publish everywhere</h2>
<p>
Plume is not just a single website, but an entire interconnected, yet independent network of what we call <em>instances</em>.
You write content from your own instance, but anyone else on any other Plume instance can enjoy your stories too.
</p>
</main>
</div>
<div class="card">
<span class="icon"><i data-feather="message-circle"></i></span>
<main>
<h2>Social blogging</h2>
<p>
When we write, it is, most of the time, to share something with other people.
Plume has many features that allow the exchange between writers and readers to be bi-directional from the get-go.
</p>
</main>
</div>
<div class="card">
<span class="icon"><i data-feather="users"></i></span>
<main>
<h2>Collaborative writing</h2>
<p>
Plume also makes it easy to collaborate on an article. Since blogs are not limited to one author, many people can write on the same blog and improve each other\'s work, to get to the best final result.
</p>
</main>
</div>
</section>
<section>
<h2>Find an instance</h2>
<ul id="instances">
</ul>
</section>
<section class="grid">
<h2>Enter the Fediverse</h2>
<div class="card vertical">
<span class="icon"><i data-feather="share-2"></i></span>
<main>
<h3>Not just Plume</h3>
<p>
Plume instances form one part of a huge network, collectively called the Fediverse. It is made up of many instances - servers with different orientations, purposes and policies, each one running a specific application. It does not always have to be Plume.
</p>
<p>
This means that, for instance, Plume is able to communicate with microblogging apps like <a href="https://joinmastodon.org">Mastodon</a>, or <a href="https://pleroma.social/">Pleroma</a>. Even other blogging apps which support federation, such as <a href="https://writefreely.org">WriteFreely</a> can also communicate with Plume! It means that you can comment on, share and like Plume articles from any of these other platforms too.
</p>
<a href="">Learn more about the Fediverse</a>
</main>
</div>
<div class="card vertical">
<span class="icon"><i data-feather="user"></i></span>
<main>
<h3>Great diversity</h3>
<p>
Each instance is hosted and moderated by different peoples across varied locations of the world, resulting in diverse rules, thematics and ambiance that it focuses on. Thus one given instance can suit you better than another, depending on your opinions and interests.
</p>
<p>
And if no existing instance makes you feel at home, you can very well <a href="https://docs.joinplu.me/installation">set up your own</a>, if you are a bit adventureous.
</p>
<a href="#instances">Find your dream instance</a>
</main>
</div>
<div class="card vertical">
<span class="icon"><i data-feather="lock"></i></span>
<main>
<h3>A solid network</h3>
<p>
Because the Fediverse is mostly backed by volunteers, and not investors, it is resilient to economic problems. And because of its decentralized nature it is also harder to censor than traditional platforms.
</p>
<p>And even if one instance happens to go down, the rest of the network will continue to work uninterrupted.</p>
</main>
</div>
<div class="card vertical">
<span class="icon"><i data-feather="heart"></i></span>
<main>
<h3>Open to everyone</h3>
<p>
Plume is a libre software, based on open standards, like <a href="https://activitypub.rocks">ActivityPub</a> and <a href="http://microformats.org">Microformats</a>, which means you can help making it better.
</p>
<p>
We are not only welcoming coders, but really anyone who wants to help: translators, user experience designers, people with communication skills, or anybody else who feels like they can offer something to move the project ahead!
</p>
<a href="https://contribute.joinplu.me">Discover how you can help</a>
</main>
</div>
</section>
</main>

View file

@ -1,19 +0,0 @@
<nav>
<ul>
<li>
<a href="https://contribute.joinplu.me/"><%= _('Contribute') %></a>
</li>
<li>
<a href="https://docs.joinplu.me/"><%= _('Documentation') %></a>
</li>
<li>
<a href="https://github.com/Plume-org/Plume"><%= _('Source code') %></a>
</li>
<li>
<a href="https://riot.im/app/#/room/#plume:disroot.org"><%= _('Chat room') %></a>
</li>
<li>
<a href="https://framavox.org/g/WK40YHMA/plume"><%= _('Loomio group') %></a>
</li>
</ul>
</nav>