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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 70be42a58d86e88d1f0a6b5fda69bac024984bfe43b1b2494419acefdc508cbe
4
- data.tar.gz: 40e16e1e6b3f99e156fece4b8c4feaaf6d8153d52f14dea2903e79014942ffa2
3
+ metadata.gz: 9ff116bf9cf461203311021442cf75cf0e28f87d18230976c57bceb6bff28ed7
4
+ data.tar.gz: 38beaef7b8f32d4e6d66ceded9363dd8d4a2e6d329c95f4a5d9165eea9fd29f9
5
5
  SHA512:
6
- metadata.gz: 3a9dd14631d1b0ad38574a4a5361440901870225618ad6b9bd6461697370af6bb37a8ec7e09e6166b097d4d4ba2a8cdf760f3468a05bc22eaf081359b03726dc
7
- data.tar.gz: e8dc1540410346550c6a28caf18667bd5c410e676aa26e2c3e229dea35a0cae8365a4ded44a3f2fef67e4904d44cae003f2baa4fcc47e6df944cfb2f5376ee56
6
+ metadata.gz: a7d66e47684af7905ecd70443917e63d350cf29d05b388475e7a1b9dcaf4412086bed762104df23384ad7df983e869cac5275f982c2eeab62cf6589ce6f1e0cc
7
+ data.tar.gz: 71cb0a8effe098a40940f0d72491515ab2dd8805d6d431f8ffcf57f46f9af37087fca5613cc8c1a4ded8c1fa84c82098bb2d26edf02928f4cbd58088adad45a7
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2014-2018 The ruby-gettext project
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.5"
20
+ VERSION = "1.0.6"
21
21
  end
22
22
  end
23
23
  end
@@ -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("--output", path.edit_po_file.to_s,
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
- "--output", path.edit_po_file.to_s,
122
- "--locale", locale)
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("--update",
130
+ msgmerge("--no-wrap",
128
131
  "--sort-by-file",
129
- "--no-wrap",
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("--output", path.edit_po_file.to_s,
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("--output", path.edit_po_file.to_s,
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("--output", path.edit_po_file.to_s,
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("--output", path.edit_po_file.to_s,
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("--output", po_file,
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("--output", all_po_file,
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-task-i18n
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou