jekyll-multiple-languages-plugin 1.3.0 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-multiple-languages-plugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Kurtsson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-19 00:00:00.000000000 Z
11
+ date: 2016-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -38,54 +38,48 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- description: Plugin for Jekyll and Octopress that adds support for translated keys,
41
+ - !ruby/object:Gem::Dependency
42
+ name: jekyll
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '2.0'
48
+ - - "<"
49
+ - !ruby/object:Gem::Version
50
+ version: '4.0'
51
+ type: :runtime
52
+ prerelease: false
53
+ version_requirements: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: '2.0'
58
+ - - "<"
59
+ - !ruby/object:Gem::Version
60
+ version: '4.0'
61
+ description: Plugin for Jekyll 2.x and 3.x that adds support for translated keys,
42
62
  templates and posts.
43
63
  email:
44
64
  - martin.kurtsson@screeninteraction.com
65
+ - anthonygaudino45@gmail.com
45
66
  executables: []
46
67
  extensions: []
47
- extra_rdoc_files: []
68
+ extra_rdoc_files:
69
+ - README.md
70
+ - LICENSE.txt
48
71
  files:
49
- - ".gitignore"
50
- - Gemfile
51
72
  - LICENSE.txt
52
73
  - README.md
53
- - Rakefile
54
- - example/Gemfile
55
- - example/LICENSE
56
- - example/README.md
57
- - example/_config.yml
58
- - example/_i18n/en.yml
59
- - example/_i18n/en/_posts/2013-12-09-example-post.md
60
- - example/_i18n/en/footer.md
61
- - example/_i18n/es.yml
62
- - example/_i18n/es/_posts/2013-12-09-example-post.md
63
- - example/_i18n/es/footer.md
64
- - example/_i18n/it.yml
65
- - example/_i18n/it/_posts/2013-12-09-example-post.md
66
- - example/_i18n/it/footer.md
67
- - example/_includes/post.html
68
- - example/_layouts/default.html
69
- - example/_layouts/post.html
70
- - example/_plugins/jekyll-multiple-languages-plugin.rb
71
- - example/css/main.css
72
- - example/css/responsive.css
73
- - example/css/syntax.css
74
- - example/favicon.ico
75
- - example/images/cover.jpg
76
- - example/images/logo.png
77
- - example/images/sidebar-button.png
78
- - example/index.html
79
- - example/scripts/responsive.js
80
- - jekyll-multiple-languages-plugin.gemspec
81
- - lib/jekyll/multiple/languages/plugin.rb
82
- - lib/jekyll/multiple/languages/plugin/version.rb
74
+ - lib/jekyll-multiple-languages-plugin.rb
75
+ - lib/plugin/version.rb
83
76
  homepage: https://github.com/screeninteraction/jekyll-multiple-languages-plugin/
84
77
  licenses:
85
78
  - MPL2
86
79
  metadata: {}
87
80
  post_install_message:
88
- rdoc_options: []
81
+ rdoc_options:
82
+ - "--charset=UTF-8"
89
83
  require_paths:
90
84
  - lib
91
85
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -100,8 +94,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
94
  version: '0'
101
95
  requirements: []
102
96
  rubyforge_project:
103
- rubygems_version: 2.4.6
97
+ rubygems_version: 2.2.2
104
98
  signing_key:
105
99
  specification_version: 4
106
- summary: I18n plugin for Jekyll and Octopress
100
+ summary: I18n plugin for Jekyll
107
101
  test_files: []
data/.gitignore DELETED
@@ -1,21 +0,0 @@
1
- *.gem
2
- *.rbc
3
- .bundle
4
- .config
5
- .yardoc
6
- Gemfile.lock
7
- InstalledFiles
8
- _yardoc
9
- coverage
10
- doc/
11
- lib/bundler/man
12
- pkg
13
- rdoc
14
- spec/reports
15
- test/tmp
16
- test/version_tmp
17
- tmp
18
-
19
- example/Gemfile.lock
20
- example/_site
21
- .DS_Store
data/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in jekyll-multiple-languages-plugin.gemspec
4
- gemspec
data/Rakefile DELETED
@@ -1 +0,0 @@
1
- require "bundler/gem_tasks"
@@ -1,4 +0,0 @@
1
- source 'https://rubygems.org'
2
- gem "jekyll"
3
- gem 'jekyll-multiple-languages-plugin'
4
-
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2013 Jeff Martin
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -1,11 +0,0 @@
1
- Minimal website using multiple languages plugin
2
- ====
3
-
4
- Features:
5
- - internationalization of the website
6
- - per-post translation link
7
-
8
- Notes:
9
- - The website is based on Flex theme.
10
- - It does not work with github pages because the I18N plugin is not in the main jekyll repo and is not considered "safe".
11
-
@@ -1,8 +0,0 @@
1
- name: Flex
2
- markdown: redcarpet
3
- pygments: true
4
-
5
- baseurl: ""
6
- permalink: /:title/
7
-
8
- languages: ["it", "en", "es"]
@@ -1,10 +0,0 @@
1
- global:
2
- italian: Italiano
3
- english: English
4
- spanish: Español
5
- tagline: English
6
- about: About
7
- twitter: Twitter
8
- github: GitHub
9
- pages:
10
- example: example
@@ -1,15 +0,0 @@
1
- ---
2
- layout: post
3
- title: Example post
4
- cover: cover.jpg
5
- date: 2013-12-09 12:00:00
6
- categories: en posts
7
- ---
8
-
9
- ## Introducing Flex, a Jekyll theme
10
-
11
- Flex is a minimalist, responsive theme based on the website, [The Development](http://thedevelopment.co).
12
-
13
- ## Open Sourced on GitHub
14
-
15
- Flex is open sourced on GitHub and is licensed under the [MIT License](http://opensource.org/licenses/MIT). Feel free to contribute to it anytime!
@@ -1,2 +0,0 @@
1
- ### Footer
2
- This is a translated footer!
@@ -1,10 +0,0 @@
1
- global:
2
- italian: Italiano
3
- english: English
4
- spanish: Español
5
- tagline: Español
6
- about: Sobre
7
- twitter: Twitter
8
- github: GitHub
9
- pages:
10
- example: Ejemplo
@@ -1,15 +0,0 @@
1
- ---
2
- layout: post
3
- title: Ejemplo de post
4
- cover: cover.jpg
5
- date: 2013-12-09 12:00:00
6
- categories: es posts
7
- ---
8
-
9
- ## Presentación de Flex, un tema Jekyll
10
-
11
- Flex es un tema minimalista y rápido basado en el sitio web [The Development](http://thedevelopment.co).
12
-
13
- ## Codigo abierto en GitHub
14
-
15
- Flex es código abierto y puedes encontrarlo en GitHub. Está disponible bajo la licencia [MIT License](http://opensource.org/licenses/MIT). Puedes contribuir a Flex en cualquier momento!
@@ -1,2 +0,0 @@
1
- ### Footer
2
- Se trata de un pie de página traducida!
@@ -1,10 +0,0 @@
1
- global:
2
- italian: Italiano
3
- english: English
4
- spanish: Español
5
- tagline: Italiano
6
- about: Riquardo
7
- twitter: Twitter
8
- github: GitHub
9
- pages:
10
- example: Esempio
@@ -1,16 +0,0 @@
1
- ---
2
- layout: post
3
- title: Esempio
4
- cover: cover.jpg
5
- date: 2013-12-09 12:00:00
6
- categories: posts
7
- ---
8
-
9
- ## Introduzione a Flex, un tema per Jekyll
10
-
11
- Flex è un tema minimalista e veloce, basato sul sito web [The Development](http://thedevelopment.co).
12
-
13
- ## Disponibile come Open Source su GitHub
14
-
15
- Flex è disponibile come Open Source ed è rilasciato sotto la licenza [MIT License](http://opensource.org/licenses/MIT). Puoi contribuire al suo sviluppo!
16
-
@@ -1,2 +0,0 @@
1
- ### Footer
2
- Questo è un footer tradotto!
@@ -1,40 +0,0 @@
1
- <div class="content" id="home">
2
- <div id="sidebar-button">
3
- <img src="/images/sidebar-button.png">
4
- </div>
5
- <div id="post-info">
6
- <div id="cover-photo-container">
7
- <img id="cover-photo" src="/images/{{ page.cover }}">
8
- </div>
9
- <div id="info-container">
10
- <h1 id="title">{{ page.title }}</h1>
11
- </div>
12
- </div>
13
-
14
- <div class="post">
15
- {% if site.lang == "it" %}
16
- {% capture link1 %}{{ site.baseurl_root }}/en{{ page.url}}{% endcapture %}
17
- {% capture link3 %}{{ site.baseurl_root }}/es{{ page.url}}{% endcapture %}
18
- <div align="right">
19
- <a href="{{ link1 }}" >{% t global.english %}</a><span class="separator"> &bull; </span><a href="{{ link3 }}" >{% t global.spanish %}</a>
20
- </div>
21
- {% else if site.lang == "en" %}
22
- {% capture link2 %}{{ site.baseurl_root }}{{ page.url }}{% endcapture %}
23
- {% capture link3 %}{{ site.baseurl_root }}/es{{ page.url}}{% endcapture %}
24
- <div align="right">
25
- <a href="{{ link3 }}" >{% t global.spanish %}</a><span class="separator"> &bull; </span><a href="{{ link2 }}" >{% t global.italian %}</a>
26
- </div>
27
- {% else if site.lang == "es" %}
28
- {% capture link2 %}{{ site.baseurl_root }}{{ page.url }}{% endcapture %}
29
- {% capture link1 %}{{ site.baseurl_root }}/en{{ page.url}}{% endcapture %}
30
- <div align="right">
31
- <a href="{{ link1 }}" >{% t global.english %}</a><span class="separator"> &bull; </span><a href="{{ link2 }}" >{% t global.italian %}</a>
32
- </div>
33
-
34
- {% endif %}
35
-
36
-
37
-
38
- {{ content }}
39
- </div>
40
- </div>
@@ -1,60 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
6
- <title>/dav/random - {{ page.title }}</title>
7
- <meta name="viewport" content="width=device-width">
8
-
9
- <!-- syntax highlighting CSS -->
10
- <link rel="stylesheet" href="/css/syntax.css">
11
-
12
- <!-- Custom CSS -->
13
- <link rel="stylesheet" href="/css/main.css">
14
-
15
- <!-- Responsive CSS -->
16
- <link rel="stylesheet" href="/css/responsive.css">
17
-
18
- <!-- Google Fonts -->
19
- <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700' rel='stylesheet' type='text/css'>
20
- <link href='http://fonts.googleapis.com/css?family=Raleway:300,400,700' rel='stylesheet' type='text/css'>
21
- </head>
22
- <body>
23
- <div class="site">
24
- <div class="sidebar" id="sidebar">
25
- <div class="header">
26
-
27
- <h1 class="title"><a href="/"><img id="logo" src="/images/logo.png"></a></h1>
28
- <span class="tagline">{% t global.tagline %}</span>
29
- </div>
30
- <div class="posts">
31
- <ul class="posts-list">
32
- {% for post in site.posts %}
33
- <li class="post-link">
34
- <a class="post-title" href="{{ site.baseurl }}{{ post.url }}">
35
- {{ post.title }}
36
- </a>
37
- </li>
38
- {% endfor %}
39
- </ul>
40
- </div>
41
- <div class="footer">
42
- <span id="footer-links">
43
- <a href="" class="footer-link">{% t global.about %}</a> <span class="separator">&bull;</span>
44
- <a href="" class="footer-link">{% t global.twitter %}</a> <span class="separator">&bull;</span>
45
- <a href="" class="footer-link">{% t global.github %}</a>
46
- </span>
47
- </div>
48
- {% tf footer.md %}
49
- <br />
50
- <a class="link-it" href="{{ site.baseurl_root }}/">it</a>
51
- <a class="link-en" href="{{ site.baseurl_root }}/en">en</a>
52
- <a class="link-es" href="{{ site.baseurl_root }}/es">es</a>
53
- </div>
54
-
55
- {{ content }}
56
-
57
- </div>
58
- <script src="/scripts/responsive.js" type="text/javascript"></script>
59
- </body>
60
- </html>
@@ -1,5 +0,0 @@
1
- ---
2
- layout: default
3
- ---
4
- {% include post.html %}
5
- {% tf footer.md %}
@@ -1 +0,0 @@
1
- require 'jekyll/multiple/languages/plugin'
@@ -1,285 +0,0 @@
1
- /*****************************************************************************/
2
- /*
3
- /* Common
4
- /*
5
- /*****************************************************************************/
6
-
7
- * {
8
- margin: 0;
9
- padding: 0;
10
- }
11
-
12
- html, body {
13
- height: 100%;
14
- width: 100%;
15
- -webkit-font-smoothing: antialiased;
16
- }
17
-
18
- body {
19
- color: #333;
20
- background-color: #fafbfc;
21
- font-family: 'Raleway', Arial, sans-serif;
22
- font-weight: 400;
23
- font-size: 0.85em;
24
- overflow: hidden;
25
- }
26
-
27
- a {
28
- color: #8085C1;
29
- text-decoration: none;
30
- border: none;
31
- }
32
-
33
- a img {
34
- outline: none;
35
- }
36
-
37
- a:hover {
38
- color: #555;
39
- border: none;
40
- }
41
-
42
- .separator {
43
- color: #555;
44
- }
45
-
46
- /*****************************************************************************/
47
- /*
48
- /* Home
49
- /*
50
- /*****************************************************************************/
51
- #logo {
52
- max-width: 128px;
53
- }
54
-
55
- .posts a {
56
- color: #444;
57
- }
58
-
59
- .posts a:hover {
60
- color: #777;
61
- }
62
-
63
- .posts-list {
64
- list-style-type: none;
65
- }
66
-
67
- .posts-list li {
68
- text-align: center;
69
- line-height: 1.75em;
70
- }
71
-
72
- /*****************************************************************************/
73
- /*
74
- /* Site
75
- /*
76
- /*****************************************************************************/
77
-
78
- .site {
79
- height: 100%;
80
- width: 100%;
81
- line-height: 1.25em;
82
- }
83
-
84
- .title {
85
- display: inline-block;
86
- text-align: center;
87
- }
88
-
89
- .tagline {
90
- width: 100%;
91
- color: #777;
92
- text-align: center;
93
- margin-top: 0.5em;
94
- display: block;
95
-
96
- }
97
-
98
- .posts {
99
- border-top: 1px solid #e7e7e7;
100
- margin-top: 1em;
101
- padding-top: 1.5em;
102
- padding-bottom: 1.25em;
103
- }
104
-
105
- .footer {
106
- font-size: 0.95em;
107
- border-top: 1px solid #e7e7e7;
108
- padding-top: 1.25em;
109
- padding-bottom: 1.5em;
110
- overflow: hidden;
111
- float: center;
112
- text-align: center;
113
- }
114
-
115
- /*****************************************************************************/
116
- /*
117
- /* Posts
118
- /*
119
- /*****************************************************************************/
120
-
121
- #date {
122
- padding-top: 0.5em;
123
- margin-bottom: 2em;
124
- }
125
-
126
- #cover-photo-container,
127
- #info-container {
128
- display: block;
129
- }
130
-
131
- #info-container {
132
- margin-top: 3em;
133
- }
134
-
135
- #title {
136
- color: #494949;
137
- margin-bottom: 0.35em;
138
- font-size: 3.5em;
139
- text-transform: uppercase;
140
- }
141
-
142
- .post {
143
- line-height: 24px;
144
- max-width: 725px;
145
- clear: both;
146
- }
147
-
148
- .post h2 {
149
- margin-top: 1.25em;
150
- margin-left: -0.5em;
151
- margin-bottom: 1.25em;
152
- }
153
-
154
- .post a,
155
- #about a {
156
- border-bottom: 1px dashed #8085C1;
157
- }
158
-
159
- .post a:hover {
160
- border: none;
161
- }
162
-
163
- /* standard */
164
- .post pre {
165
- border: 1px solid #ddd;
166
- background-color: #eef;
167
- padding: 0 .4em;
168
- }
169
-
170
- .post p {
171
- font-family: 'Source Sans Pro', Arial, sans-serif;
172
- font-size: 1.1em;
173
- margin-bottom: 1.45em;
174
- text-align: justify;
175
- }
176
-
177
- .post ul, .post ol {
178
- margin-left: 2.35em;
179
- margin-bottom: 1.25em;
180
- }
181
-
182
- .post code {
183
- border: 1px solid #ddd;
184
- background-color: #eef;
185
- padding: 0 .2em;
186
- }
187
-
188
- .post pre code {
189
- border: none;
190
- }
191
-
192
- /* terminal */
193
- .post pre.terminal {
194
- border: 1px solid #000;
195
- background-color: #333;
196
- color: #FFF;
197
- }
198
-
199
- .post pre.terminal code {
200
- background-color: #333;
201
- }
202
-
203
- /*****************************************************************************/
204
- /*
205
- /* Sidebar and Content
206
- /*
207
- /*****************************************************************************/
208
-
209
- .sidebar,
210
- .content {
211
- vertical-align: top;
212
- height: 100%;
213
- -webkit-overflow-scrolling: touch;
214
- overflow-y: auto;
215
- overflow-x: hidden;
216
- }
217
-
218
- .sidebar {
219
- float: left;
220
- width: 14%;
221
- padding-left: 11em;
222
- padding-right: 2.125em;
223
- border-right: 1px solid #e7e7e7;
224
- }
225
-
226
- .content {
227
- padding-left: 2.125em;
228
- }
229
-
230
- .header {
231
- text-align: center;
232
- padding-top: 2.5em;
233
- font-size: 1.1em;
234
- }
235
-
236
- .post-link {
237
- margin-bottom: 0.75em;
238
- }
239
-
240
- .post-title {
241
- font-weight: 600;
242
- font-size: 1.4em;
243
- text-transform: uppercase;
244
- }
245
-
246
- .post-date {
247
- color: #8a8a8a;
248
- font-family: Monaco, "Courier New", monospace;
249
- font-weight: 600;
250
- font-size: 0.65em;
251
- display: block;
252
- text-transform: lowercase;
253
- }
254
-
255
- #sidebar-button {
256
- height: intrinsic;
257
- cursor: pointer;
258
- display: none;
259
- padding: 15px 5px 0px 0px;
260
- margin-bottom: 10px;
261
- border-bottom: 1px solid #e7e7e7;
262
- }
263
-
264
- #sidebar-button:active,
265
- #sidebar-button:hover {
266
- opacity: 0.7;
267
- }
268
-
269
- /*****************************************************************************/
270
- /*
271
- /* Colophon
272
- /*
273
- /*****************************************************************************/
274
-
275
- .colophon {
276
- margin-top: 1.5em;
277
- margin-bottom: 1.45em;
278
- border-top: 1px dotted #e7e7e7;
279
- }
280
-
281
- .colophon p {
282
- margin-top: 1.25em;
283
- font-size: 0.95em;
284
- color: #777;
285
- }