Created
May 24, 2012 10:22
-
-
Save mezis/2780719 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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