From ea22dfede3c8d5d6fe4e1358bf9239f54f552569 Mon Sep 17 00:00:00 2001 From: Baptiste Gelez Date: Wed, 1 May 2019 11:54:37 +0100 Subject: [PATCH] Remove some other i18n code that will be useless soon --- Gemfile.lock | 6 -- config.rb | 15 ----- source/layouts/layout.erb | 8 +-- source/localizable/index.html.erb | 105 ------------------------------ 4 files changed, 4 insertions(+), 130 deletions(-) delete mode 100644 source/localizable/index.html.erb diff --git a/Gemfile.lock b/Gemfile.lock index 6402734..5f82cee 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -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 diff --git a/config.rb b/config.rb index f83b82c..7c2496d 100644 --- a/config.rb +++ b/config.rb @@ -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 diff --git a/source/layouts/layout.erb b/source/layouts/layout.erb index 6050970..de7c62c 100644 --- a/source/layouts/layout.erb +++ b/source/layouts/layout.erb @@ -4,11 +4,11 @@ - <%= _('Plume: a federated blogging application') %> + Plume: a federated blogging application <%= stylesheet_link_tag "site" %> <%= javascript_include_tag "icons" %> - + @@ -16,9 +16,9 @@ <%= yield %> <%= javascript_include_tag "site" %> diff --git a/source/localizable/index.html.erb b/source/localizable/index.html.erb deleted file mode 100644 index 79e95fe..0000000 --- a/source/localizable/index.html.erb +++ /dev/null @@ -1,105 +0,0 @@ -
-

<%= _('Plume') %>

-

<%= _('A federated blogging application') %>

- -
- -
- <%= partial "nav" %> - -
-
- -
-

<%= _('Write once, publish everywhere') %>

-

- <%= _('Plume is not just a single website, but an entire interconnected, yet independent network of what we call instances.') %> - <%= _('You write content from your own instance, but anyone else on any other Plume instance can enjoy your stories too.') %> -

-
-
- -
- -
-

<%= _('Social blogging') %>

-

- <%= _('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.') %> -

-
-
- -
- -
-

<%= _('Collaborative writing') %>

-

- <%= _('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.') %> -

-
-
-
- -
-

<%= _('Find an instance') %>

-
    -
-
- -
-

<%= _('Enter the Fediverse') %>

-
- -
-

<%= _('Not just Plume') %>

-

- <%= _('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.') %> -

-

- <%= _('This means that, for instance, Plume is able to communicate with microblogging apps like Mastodon, or Pleroma. Even other blogging apps which support federation, such as WriteFreely can also communicate with Plume! It means that you can comment on, share and like Plume articles from any of these other platforms too.') %> -

- <%= _('Learn more about the Fediverse') %> -
-
- -
- -
-

<%= _('Great diversity') %>

-

- <%= _('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.') %> -

-

- <%= _('And if no existing instance makes you feel at home, you can very well set up your own, if you are a bit adventureous.') %> -

- <%= _('Find your dream instance') %> -
-
- -
- -
-

<%= _('A solid network') %>

-

- <%= _('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.') %> -

-

<%= _('And even if one instance happens to go down, the rest of the network will continue to work uninterrupted.') %>

-
-
- -
- -
-

<%= _('Open to everyone') %>

-

- <%= _('Plume is a libre software, based on open standards, like ActivityPub and Microformats, which means you can help making it better.') %> -

-

- <%= _('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!') %> -

- <%= _('Discover how you can help') %> -
-
-
-