jekyll-task-i18n 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/jekyll/task/i18n.rb +13 -6
- data/lib/jekyll/task/i18n/version.rb +1 -1
- metadata +21 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7a231a56e7b500a095067a60b0430562923f389
|
4
|
+
data.tar.gz: 99ce5aa9738c6da9a2932340efe70f52aae2adb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 539f4733ca002ef346debaf3c8f93eff8032239da5e0a706303af6929b5eb87611a693d0c50797d3e03c4058a9755bdbcf4bed6677c746934be9d4e1ab2401c8
|
7
|
+
data.tar.gz: 7796b6c2a45de0771176e30a2bdda31d0a68df3a3d5d72c72338fb9fedd316f82761ec9fb9223af2f2b15c15c56a1bd8c1ef0a71289bc20cd6439101da622091
|
data/README.md
CHANGED
@@ -16,7 +16,7 @@ the following advantages:
|
|
16
16
|
You can't use Jekyll plugins on GitHub Pages. So you can't use Jekyll
|
17
17
|
plugin based approaches too.
|
18
18
|
|
19
|
-
jekyll-localization uses `{{ 'translate target content | t:
|
19
|
+
jekyll-localization uses `{{ 'translate target content' | t:
|
20
20
|
'translated content' }}` markup. jekyll-i18n uses `{%t Your translated
|
21
21
|
content %}` markup.
|
22
22
|
|
data/lib/jekyll/task/i18n.rb
CHANGED
@@ -188,12 +188,15 @@ module Jekyll
|
|
188
188
|
all_po_file = all_po_file_path.to_s
|
189
189
|
CLEAN << all_po_file if all_po_file_path.exist?
|
190
190
|
file all_po_file => po_files do
|
191
|
+
sorted_po_files = po_files.sort_by do |po_file|
|
192
|
+
-File.mtime(po_file).to_f
|
193
|
+
end
|
191
194
|
msgcat("--output", all_po_file,
|
192
195
|
"--no-fuzzy",
|
193
196
|
"--no-all-comments",
|
194
197
|
"--sort-by-msgid",
|
195
198
|
"--no-obsolete-entries",
|
196
|
-
*
|
199
|
+
*sorted_po_files)
|
197
200
|
end
|
198
201
|
|
199
202
|
desc "Update .po files for [#{locale}] locale"
|
@@ -270,11 +273,15 @@ module Jekyll
|
|
270
273
|
|
271
274
|
def msginit_options
|
272
275
|
options = []
|
273
|
-
if @translator_name
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
276
|
+
if @translator_name or @translator_email
|
277
|
+
if @translator_name
|
278
|
+
options.concat(["--translator-name", @translator_name])
|
279
|
+
end
|
280
|
+
if @translator_email
|
281
|
+
options.concat(["--translator-email", @translator_email])
|
282
|
+
end
|
283
|
+
else
|
284
|
+
options << "--no-translator"
|
278
285
|
end
|
279
286
|
options
|
280
287
|
end
|
metadata
CHANGED
@@ -1,97 +1,97 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-task-i18n
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kouhei Sutou
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gettext
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 3.1.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 3.1.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: yard
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: bundler
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: packnga
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: kramdown
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
description: jekyll-task-i18n is GitHub pages ready i18n approach for Jekyll.
|
@@ -101,14 +101,14 @@ executables: []
|
|
101
101
|
extensions: []
|
102
102
|
extra_rdoc_files: []
|
103
103
|
files:
|
104
|
-
-
|
105
|
-
- Rakefile
|
104
|
+
- ".yardopts"
|
106
105
|
- Gemfile
|
107
106
|
- LICENSE.txt
|
108
|
-
- .
|
107
|
+
- README.md
|
108
|
+
- Rakefile
|
109
109
|
- jekyll-task-i18n.gemspec
|
110
|
-
- lib/jekyll/task/i18n/version.rb
|
111
110
|
- lib/jekyll/task/i18n.rb
|
111
|
+
- lib/jekyll/task/i18n/version.rb
|
112
112
|
homepage: https://github.com/ruby-gettext/jekyll-task-i18n
|
113
113
|
licenses:
|
114
114
|
- LGPLv2
|
@@ -119,17 +119,17 @@ require_paths:
|
|
119
119
|
- lib
|
120
120
|
required_ruby_version: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- -
|
122
|
+
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
126
126
|
requirements:
|
127
|
-
- -
|
127
|
+
- - ">="
|
128
128
|
- !ruby/object:Gem::Version
|
129
129
|
version: '0'
|
130
130
|
requirements: []
|
131
131
|
rubyforge_project:
|
132
|
-
rubygems_version: 2.
|
132
|
+
rubygems_version: 2.2.2
|
133
133
|
signing_key:
|
134
134
|
specification_version: 4
|
135
135
|
summary: Preprocessor for Jekyll to support i18n
|