Kouhei Sutou
null+****@clear*****
Sun Feb 23 22:47:03 JST 2014
Kouhei Sutou 2014-02-23 22:47:03 +0900 (Sun, 23 Feb 2014) New Revision: 2b07aa6a7e868cbdc8642408b9d5b16458772989 https://github.com/droonga/droonga.org/commit/2b07aa6a7e868cbdc8642408b9d5b16458772989 Message: task: merge .po into .edit.po Modified files: _tasks/i18n.rb Modified: _tasks/i18n.rb (+9 -0) =================================================================== --- _tasks/i18n.rb 2014-02-23 22:46:29 +0900 (ab072bd) +++ _tasks/i18n.rb 2014-02-23 22:47:03 +0900 (492d975) @@ -100,11 +100,20 @@ class I18nTask *msginit_options) end end + + edit_po_file_mtime = edit_po_file_path.mtime GetText::Tools::MsgMerge.run("--update", "--sort-by-file", "--no-wrap", edit_po_file_path.to_s, pot_file_path.to_s) + if po_file_path.exist? and po_file_path.mtime > edit_po_file_mtime + GetText::Tools::MsgMerge.run("--output", edit_po_file_path.to_s, + "--sort-by-file", + "--no-obsolete-entries", + po_file_path.to_s, + edit_po_file_path.to_s) + end if all_po_file_path.exist? GetText::Tools::MsgMerge.run("--output", edit_po_file_path.to_s, "--sort-by-file", -------------- next part -------------- HTML����������������������������...Download