Kouhei Sutou
null+****@clear*****
Sun Feb 2 23:10:25 JST 2014
Kouhei Sutou 2014-02-02 23:10:25 +0900 (Sun, 02 Feb 2014) New Revision: 3d2930005c2397fc64f0669b2e396e115bf2b23b https://github.com/droonga/droonga.org/commit/3d2930005c2397fc64f0669b2e396e115bf2b23b Message: Use gettext 3.0.5 for MsgCat Modified files: Gemfile _tasks/i18n.rb Modified: Gemfile (+1 -1) =================================================================== --- Gemfile 2014-01-30 18:35:55 +0900 (6680697) +++ Gemfile 2014-02-02 23:10:25 +0900 (7d17579) @@ -1,6 +1,6 @@ source "https://rubygems.org" -gem "gettext" +gem "gettext", ">= 3.0.5" gem "rake" gem "yard" gem "coderay" Modified: _tasks/i18n.rb (+10 -13) =================================================================== --- _tasks/i18n.rb 2014-01-30 18:35:55 +0900 (30fedb0) +++ _tasks/i18n.rb 2014-02-02 23:10:25 +0900 (4c9a5cd) @@ -1,4 +1,4 @@ -# Copyright (C) 2013 Droonga Project +# Copyright (C) 2013-2014 Droonga Project # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -138,22 +138,19 @@ class I18nTask po_file_paths << po_file_path file po_file_path.to_s => [edit_po_file_path.to_s] do - GetText::Tools::MsgMerge.run("--output", po_file_path.to_s, - "--sort-by-file", - "--no-location", - "--no-fuzzy-matching", - edit_po_file_path.to_s, - edit_po_file_path.to_s) + GetText::Tools::MsgCat.run("--output", po_file_path.to_s, + "--sort-by-file", + "--no-all-comments", + edit_po_file_path.to_s) end end file all_po_file_path.to_s => po_file_paths.collect(&:to_s) do - sh("msgcat", - "--output", all_po_file_path.to_s, - "--use-first", - "--no-location", - "--sort-output", - *po_file_paths.collect(&:to_s)) + GetText::Tools::MsgCat.run("--output", all_po_file_path.to_s, + "--no-fuzzy", + "--no-all-comments", + "--sort-by-msgid", + *po_file_paths.collect(&:to_s)) end desc "Update .po files for [#{locale}] locale" -------------- next part -------------- HTML����������������������������...Download