jekyll-task-i18n 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/jekyll/task/i18n/version.rb +2 -2
- data/lib/jekyll/task/i18n.rb +28 -22
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: de80e6b3ffdb015d02f3cc9d5181ba7d3999c0a8fa71d984cccbecddebb1c940
|
|
4
|
+
data.tar.gz: 846fa2a8c2e93583797e352380388f92ebc412c106d7e72088a03f381a86f96c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 916b255b12f5746a0ae237da0755ee8007643b2738fa354cdf4c6d086cd777b245b23982a182672f452c15d06349195f569a166d48aa99e6e3bbe525e396901f
|
|
7
|
+
data.tar.gz: 71c8534505fcf2ff0e083cfb80d6b5aa1e623c16b6c3535dec592ef9dcda315a213f8e5598aab67127c21034cc749a2d25d4bde97a8d16c423bd38b26094edb5
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (C) 2014-
|
|
1
|
+
# Copyright (C) 2014-2023 The ruby-gettext project
|
|
2
2
|
#
|
|
3
3
|
# This library is free software; you can redistribute it and/or modify
|
|
4
4
|
# it under the terms of the GNU Lesser General Public License as
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
module Jekyll
|
|
18
18
|
module Task
|
|
19
19
|
class I18n
|
|
20
|
-
VERSION = "1.0.
|
|
20
|
+
VERSION = "1.0.7"
|
|
21
21
|
end
|
|
22
22
|
end
|
|
23
23
|
end
|
data/lib/jekyll/task/i18n.rb
CHANGED
|
@@ -101,6 +101,7 @@ module Jekyll
|
|
|
101
101
|
end
|
|
102
102
|
msgcat("--output", path.pot_file.to_s,
|
|
103
103
|
"--no-all-comments",
|
|
104
|
+
"--no-wrap",
|
|
104
105
|
"--remove-header-field=Language-Team",
|
|
105
106
|
"--remove-header-field=Last-Translator",
|
|
106
107
|
"--remove-header-field=POT-Creation-Date",
|
|
@@ -113,41 +114,44 @@ module Jekyll
|
|
|
113
114
|
end
|
|
114
115
|
unless path.edit_po_file.exist?
|
|
115
116
|
if path.po_file.exist?
|
|
116
|
-
msgcat("--
|
|
117
|
-
"--
|
|
117
|
+
msgcat("--no-wrap",
|
|
118
|
+
"--output", path.edit_po_file.to_s,
|
|
118
119
|
path.po_file.to_s)
|
|
119
120
|
else
|
|
120
121
|
msginit("--input", path.source_pot_file.to_s,
|
|
121
|
-
"--
|
|
122
|
-
"--
|
|
122
|
+
"--locale", locale,
|
|
123
|
+
"--no-wrap",
|
|
124
|
+
"--output", path.edit_po_file.to_s)
|
|
123
125
|
end
|
|
124
126
|
end
|
|
125
127
|
|
|
126
128
|
edit_po_file_mtime = path.edit_po_file.mtime
|
|
127
|
-
msgmerge("--
|
|
129
|
+
msgmerge("--no-wrap",
|
|
128
130
|
"--sort-by-file",
|
|
129
|
-
"--
|
|
131
|
+
"--update",
|
|
130
132
|
path.edit_po_file.to_s,
|
|
131
133
|
path.source_pot_file.to_s)
|
|
132
134
|
if path.po_file.exist? and path.po_file.mtime > edit_po_file_mtime
|
|
133
|
-
msgmerge("--
|
|
135
|
+
msgmerge("--no-obsolete-entries",
|
|
136
|
+
"--no-wrap",
|
|
137
|
+
"--output", path.edit_po_file.to_s,
|
|
134
138
|
"--sort-by-file",
|
|
135
|
-
"--no-obsolete-entries",
|
|
136
139
|
path.po_file.to_s,
|
|
137
140
|
path.edit_po_file.to_s)
|
|
138
|
-
msgcat("--
|
|
139
|
-
"--
|
|
141
|
+
msgcat("--no-wrap",
|
|
142
|
+
"--output", path.edit_po_file.to_s,
|
|
140
143
|
path.edit_po_file.to_s)
|
|
141
144
|
end
|
|
142
145
|
if path.all_po_file.exist?
|
|
143
|
-
msgmerge("--
|
|
144
|
-
"--sort-by-file",
|
|
145
|
-
"--no-fuzzy-matching",
|
|
146
|
+
msgmerge("--no-fuzzy-matching",
|
|
146
147
|
"--no-obsolete-entries",
|
|
148
|
+
"--no-wrap",
|
|
149
|
+
"--output", path.edit_po_file.to_s,
|
|
150
|
+
"--sort-by-file",
|
|
147
151
|
path.all_po_file.to_s,
|
|
148
152
|
path.edit_po_file.to_s)
|
|
149
|
-
msgcat("--
|
|
150
|
-
"--
|
|
153
|
+
msgcat("--no-wrap",
|
|
154
|
+
"--output", path.edit_po_file.to_s,
|
|
151
155
|
path.edit_po_file.to_s)
|
|
152
156
|
end
|
|
153
157
|
end
|
|
@@ -186,13 +190,14 @@ module Jekyll
|
|
|
186
190
|
|
|
187
191
|
CLEAN << path.time_stamp_file.to_s if path.time_stamp_file.exist?
|
|
188
192
|
file po_file => [path.edit_po_file.to_s] do
|
|
189
|
-
msgcat("--
|
|
193
|
+
msgcat("--no-all-comments",
|
|
190
194
|
"--no-fuzzy",
|
|
191
|
-
"--sort-by-file",
|
|
192
|
-
"--no-all-comments",
|
|
193
|
-
"--no-report-warning",
|
|
194
195
|
"--no-obsolete-entries",
|
|
196
|
+
"--no-report-warning",
|
|
197
|
+
"--no-wrap",
|
|
198
|
+
"--output", po_file,
|
|
195
199
|
"--remove-header-field=POT-Creation-Date",
|
|
200
|
+
"--sort-by-file",
|
|
196
201
|
path.edit_po_file.to_s)
|
|
197
202
|
touch(path.time_stamp_file.to_s)
|
|
198
203
|
end
|
|
@@ -205,11 +210,12 @@ module Jekyll
|
|
|
205
210
|
sorted_po_files = po_files.sort_by do |po_file|
|
|
206
211
|
-File.mtime(po_file).to_f
|
|
207
212
|
end
|
|
208
|
-
msgcat("--
|
|
213
|
+
msgcat("--no-all-comments",
|
|
209
214
|
"--no-fuzzy",
|
|
210
|
-
"--no-all-comments",
|
|
211
|
-
"--sort-by-msgid",
|
|
212
215
|
"--no-obsolete-entries",
|
|
216
|
+
"--no-wrap",
|
|
217
|
+
"--output", all_po_file,
|
|
218
|
+
"--sort-by-msgid",
|
|
213
219
|
*sorted_po_files)
|
|
214
220
|
end
|
|
215
221
|
|