Navigation Menu

Skip to content

Commit

Permalink
task: don't add obsolete entries into .po
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Feb 9, 2014
1 parent 059468f commit 6582570
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile
@@ -1,6 +1,6 @@
source "https://rubygems.org"

gem "gettext", ">= 3.0.9"
gem "gettext", ">= 3.1.0"
gem "rake"
gem "yard"
gem "coderay"
4 changes: 2 additions & 2 deletions Gemfile.lock
Expand Up @@ -2,7 +2,7 @@ GEM
remote: https://rubygems.org/
specs:
coderay (1.1.0)
gettext (3.0.6)
gettext (3.1.0)
locale (>= 2.0.5)
text
locale (2.1.0)
Expand All @@ -15,6 +15,6 @@ PLATFORMS

DEPENDENCIES
coderay
gettext (>= 3.0.6)
gettext (>= 3.1.0)
rake
yard
3 changes: 3 additions & 0 deletions _tasks/i18n.rb
Expand Up @@ -147,6 +147,8 @@ def define_po_locale_update_task(locale)
GetText::Tools::MsgCat.run("--output", po_file_path.to_s,
"--sort-by-file",
"--no-all-comments",
"--no-report-warning",
"--no-obsolete-entries",
edit_po_file_path.to_s)
end
end
Expand All @@ -156,6 +158,7 @@ def define_po_locale_update_task(locale)
"--no-fuzzy",
"--no-all-comments",
"--sort-by-msgid",
"--no-obsolete-entries",
*po_file_paths.collect(&:to_s))
end

Expand Down

0 comments on commit 6582570

Please sign in to comment.