ruby-gettext/jekyll-task-i18n@4e14ad7 [master] Remove PO-Revision-Date from .po

0 views
Skip to first unread message

Kouhei Sutou

unread,
Mar 5, 2018, 1:36:28 AM3/5/18
to ruby-gett...@googlegroups.com
Author
Kouhei Sutou <k...@clear-code.com>
Date
2018-03-05 15:35:40 +0900 (Mon, 05 Mar 2018)
New Revision
4e14ad7b76aef9ef294169d144c6a83dc6662120
Message
Remove PO-Revision-Date from .po
Modified files
  Modified: jekyll-task-i18n.gemspec (+2 -2)
===================================================================
...
1
 
2
3
4
...
45
46
47
48
 
49
50
51
...
 
1
2
3
4
...
45
46
47
 
48
49
50
51
@@ -1,4 +1,4 @@
-# Copyright (C) 2014  The ruby-gettext project
+# Copyright (C) 2014-2018  The ruby-gettext project
 #
 # This library is free software; you can redistribute it and/or modify
 # it under the terms of the GNU Lesser General Public License as
@@ -45,7 +45,7 @@ Gem::Specification.new do |spec|
   spec.licenses = ["LGPLv2"]
   spec.require_paths = ["lib"]
 
-  spec.add_runtime_dependency("gettext", ">= 3.1.1")
+  spec.add_runtime_dependency("gettext", ">= 3.2.8")
   spec.add_runtime_dependency("yard")
 
   spec.add_development_dependency("rake")
  Modified: lib/jekyll/task/i18n.rb (+10 -2)
===================================================================
...
1
 
2
3
4
...
105
106
107
108
 
 
 
109
110
111
...
125
126
127
 
 
 
128
129
130
...
133
134
135
 
 
 
136
137
138
...
 
1
2
3
4
...
105
106
107
 
108
109
110
111
112
113
...
127
128
129
130
131
132
133
134
135
...
138
139
140
141
142
143
144
145
146
@@ -1,4 +1,4 @@
-# Copyright (C) 2014  The ruby-gettext project
+# Copyright (C) 2014-2018  The ruby-gettext project
 # Copyright (C) 2013-2014 Droonga Project
 #
 # This library is free software; you can redistribute it and/or
@@ -105,7 +105,9 @@ module Jekyll
             end
             unless path.edit_po_file.exist?
               if path.po_file.exist?
-                cp(path.po_file.to_s, path.edit_po_file.to_s)
+                msgcat("--output", path.edit_po_file.to_s,
+                       "--update-po-revision-date",
+                       path.po_file.to_s)
               else
                 msginit("--input", path.pot_file.to_s,
                         "--output", path.edit_po_file.to_s,
@@ -125,6 +127,9 @@ module Jekyll
                        "--no-obsolete-entries",
                        path.po_file.to_s,
                        path.edit_po_file.to_s)
+              msgcat("--output", path.edit_po_file.to_s,
+                     "--update-po-revision-date",
+                     path.edit_po_file.to_s)
             end
             if path.all_po_file.exist?
               msgmerge("--output", path.edit_po_file.to_s,
@@ -133,6 +138,9 @@ module Jekyll
                        "--no-obsolete-entries",
                        path.all_po_file.to_s,
                        path.edit_po_file.to_s)
+              msgcat("--output", path.edit_po_file.to_s,
+                     "--update-po-revision-date",
+                     path.edit_po_file.to_s)
             end
           end
         end
Reply all
Reply to author
Forward
0 new messages