jekyll-task-i18n 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll/task/i18n/version.rb +2 -2
- data/lib/jekyll/task/i18n.rb +28 -19
- 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: 9ff116bf9cf461203311021442cf75cf0e28f87d18230976c57bceb6bff28ed7
|
4
|
+
data.tar.gz: 38beaef7b8f32d4e6d66ceded9363dd8d4a2e6d329c95f4a5d9165eea9fd29f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7d66e47684af7905ecd70443917e63d350cf29d05b388475e7a1b9dcaf4412086bed762104df23384ad7df983e869cac5275f982c2eeab62cf6589ce6f1e0cc
|
7
|
+
data.tar.gz: 71cb0a8effe098a40940f0d72491515ab2dd8805d6d431f8ffcf57f46f9af37087fca5613cc8c1a4ded8c1fa84c82098bb2d26edf02928f4cbd58088adad45a7
|
@@ -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.6"
|
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,40 +114,46 @@ module Jekyll
|
|
113
114
|
end
|
114
115
|
unless path.edit_po_file.exist?
|
115
116
|
if path.po_file.exist?
|
116
|
-
msgcat("--
|
117
|
+
msgcat("--no-wrap",
|
118
|
+
"--output", path.edit_po_file.to_s,
|
117
119
|
"--update-po-revision-date",
|
118
120
|
path.po_file.to_s)
|
119
121
|
else
|
120
122
|
msginit("--input", path.source_pot_file.to_s,
|
121
|
-
"--
|
122
|
-
"--
|
123
|
+
"--locale", locale,
|
124
|
+
"--no-wrap",
|
125
|
+
"--output", path.edit_po_file.to_s)
|
123
126
|
end
|
124
127
|
end
|
125
128
|
|
126
129
|
edit_po_file_mtime = path.edit_po_file.mtime
|
127
|
-
msgmerge("--
|
130
|
+
msgmerge("--no-wrap",
|
128
131
|
"--sort-by-file",
|
129
|
-
"--
|
132
|
+
"--update",
|
130
133
|
path.edit_po_file.to_s,
|
131
134
|
path.source_pot_file.to_s)
|
132
135
|
if path.po_file.exist? and path.po_file.mtime > edit_po_file_mtime
|
133
|
-
msgmerge("--
|
136
|
+
msgmerge("--no-obsolete-entries",
|
137
|
+
"--no-wrap",
|
138
|
+
"--output", path.edit_po_file.to_s,
|
134
139
|
"--sort-by-file",
|
135
|
-
"--no-obsolete-entries",
|
136
140
|
path.po_file.to_s,
|
137
141
|
path.edit_po_file.to_s)
|
138
|
-
msgcat("--
|
142
|
+
msgcat("--no-wrap",
|
143
|
+
"--output", path.edit_po_file.to_s,
|
139
144
|
"--update-po-revision-date",
|
140
145
|
path.edit_po_file.to_s)
|
141
146
|
end
|
142
147
|
if path.all_po_file.exist?
|
143
|
-
msgmerge("--
|
144
|
-
"--sort-by-file",
|
145
|
-
"--no-fuzzy-matching",
|
148
|
+
msgmerge("--no-fuzzy-matching",
|
146
149
|
"--no-obsolete-entries",
|
150
|
+
"--no-wrap",
|
151
|
+
"--output", path.edit_po_file.to_s,
|
152
|
+
"--sort-by-file",
|
147
153
|
path.all_po_file.to_s,
|
148
154
|
path.edit_po_file.to_s)
|
149
|
-
msgcat("--
|
155
|
+
msgcat("--no-wrap",
|
156
|
+
"--output", path.edit_po_file.to_s,
|
150
157
|
"--update-po-revision-date",
|
151
158
|
path.edit_po_file.to_s)
|
152
159
|
end
|
@@ -186,13 +193,14 @@ module Jekyll
|
|
186
193
|
|
187
194
|
CLEAN << path.time_stamp_file.to_s if path.time_stamp_file.exist?
|
188
195
|
file po_file => [path.edit_po_file.to_s] do
|
189
|
-
msgcat("--
|
196
|
+
msgcat("--no-all-comments",
|
190
197
|
"--no-fuzzy",
|
191
|
-
"--sort-by-file",
|
192
|
-
"--no-all-comments",
|
193
|
-
"--no-report-warning",
|
194
198
|
"--no-obsolete-entries",
|
199
|
+
"--no-report-warning",
|
200
|
+
"--no-wrap",
|
201
|
+
"--output", po_file,
|
195
202
|
"--remove-header-field=POT-Creation-Date",
|
203
|
+
"--sort-by-file",
|
196
204
|
path.edit_po_file.to_s)
|
197
205
|
touch(path.time_stamp_file.to_s)
|
198
206
|
end
|
@@ -205,11 +213,12 @@ module Jekyll
|
|
205
213
|
sorted_po_files = po_files.sort_by do |po_file|
|
206
214
|
-File.mtime(po_file).to_f
|
207
215
|
end
|
208
|
-
msgcat("--
|
216
|
+
msgcat("--no-all-comments",
|
209
217
|
"--no-fuzzy",
|
210
|
-
"--no-all-comments",
|
211
|
-
"--sort-by-msgid",
|
212
218
|
"--no-obsolete-entries",
|
219
|
+
"--no-wrap",
|
220
|
+
"--output", all_po_file,
|
221
|
+
"--sort-by-msgid",
|
213
222
|
*sorted_po_files)
|
214
223
|
end
|
215
224
|
|