Remove some other i18n code that will be useless soon

dependabot/bundler/rake-13.0.1
Baptiste Gelez 5 年前
父节点 920781ed46
当前提交 ea22dfede3

@ -23,9 +23,6 @@ GEM
fast_blank (1.0.0)
fastimage (2.1.5)
ffi (1.9.25)
gettext (3.2.9)
locale (>= 2.0.5)
text (>= 1.3.0)
haml (5.0.4)
temple (>= 0.8.0)
tilt
@ -38,7 +35,6 @@ GEM
listen (3.0.8)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
locale (2.1.2)
memoist (0.16.0)
middleman (4.3.2)
coffee-script (~> 2.2)
@ -93,7 +89,6 @@ GEM
rake
servolux (0.13.0)
temple (0.8.0)
text (1.3.1)
thor (0.20.3)
thread_safe (0.3.6)
tilt (2.0.9)
@ -106,7 +101,6 @@ PLATFORMS
ruby
DEPENDENCIES
gettext (~> 3.2)
middleman (~> 4.2)
middleman-autoprefixer (~> 2.7)
tzinfo-data

@ -1,22 +1,7 @@
require "i18n"
I18n::Backend::Simple.include(I18n::Backend::Gettext)
I18n.load_path << Dir["po/*.po"] # Load all PO file in current directory
activate :i18n,
:langs => [:en, :es, :fr],
:path => "/:locale/",
:no_fallbacks => true,
:data => "po"
activate :autoprefixer do |prefix|
prefix.browsers = "last 2 versions"
end
helpers do
include I18n::Gettext::Helpers
end
# configure :build do
# activate :minify_css
# activate :minify_javascript

@ -4,11 +4,11 @@
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title><%= _('Plume: a federated blogging application') %></title>
<title>Plume: a federated blogging application</title>
<%= stylesheet_link_tag "site" %>
<%= javascript_include_tag "icons" %>
<link rel="icon" type="image/png" href="/images/favicon.png">
<meta property="og:title" content="<%= _('Plume') %>" />
<meta property="og:title" content="Plume" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://joinplu.me/" />
<meta property="og:image" content="https://joinplu.me/images/og-logo.png" />
@ -16,9 +16,9 @@
<body>
<%= yield %>
<footer>
<%= _('Website under the GPL 3.0 license.') %>
Website under the GPL 3.0 license.
&mdash;
<a href="https://github.com/Plume-org/joinplu.me"><%= _('Source code of this website') %></a>
<a href="https://github.com/Plume-org/joinplu.me">Source code of this website</a>
</footer>
<script>feather.replace()</script>
<%= javascript_include_tag "site" %>

@ -1,105 +0,0 @@
<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>
正在加载...
取消
保存