Skip to content

Instantly share code, notes, and snippets.

@mezis
Created May 24, 2012 10:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mezis/2780719 to your computer and use it in GitHub Desktop.
Save mezis/2780719 to your computer and use it in GitHub Desktop.
diff --git a/lib/tasks/gettext_rails.rake b/lib/tasks/gettext_rails.rake
index 28da8a4..ce63757 100644
--- a/lib/tasks/gettext_rails.rake
+++ b/lib/tasks/gettext_rails.rake
@@ -3,7 +3,10 @@ namespace :gettext do
task :updatepo do
require 'gettext_rails/tools'
require 'preprocessing_erb_parser'
- GetText.update_pofiles("housetrip", Dir.glob("{app,lib,assets}/**/*.{rb,erb,rjs}").sort, "housetrip 1.0.0")
+ paths = Dir.glob("{app,lib,assets}/**/*.{rb,erb,rjs}").reject { |path|
+ path =~ %r(^lib/scripts)
+ }
+ GetText.update_pofiles("housetrip", paths, "housetrip 1.0.0")
end
desc "Merge an updated PO file in the current one"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment