Skip to content

Instantly share code, notes, and snippets.

@mezis mezis/gist:2780719
Created May 24, 2012

What would you like to do?
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")
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
You can’t perform that action at this time.