From c1cd1797b22b45f90a4eac4292a8db5b481c0fd1 Mon Sep 17 00:00:00 2001 From: Braulio Bhavamitra Date: Wed, 17 Jul 2013 13:39:44 -0300 Subject: [PATCH] Whitelisting plugins' folders that should be loaded by gettext --- lib/tasks/gettext.rake | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/tasks/gettext.rake b/lib/tasks/gettext.rake index cf12e69..f53cd64 100644 --- a/lib/tasks/gettext.rake +++ b/lib/tasks/gettext.rake @@ -48,11 +48,10 @@ task :updatepo do puts 'Extracting strings from source. This may take a while ...' sources = Dir.glob("{app,lib}/**/*.{rb,rhtml,erb}") + - Dir.glob("plugins/**/*.{rb,rhtml,erb}") + Dir.glob('config/initializers/*.rb') + Dir.glob('public/*.html.erb') + Dir.glob('public/designs/themes/{base,noosfero,profile-base}/*.{rhtml,html.erb}') + - Dir.glob('plugins/**/{controllers,lib,views}/**/*.{rhtml,html.erb,rb}') + Dir.glob('plugins/**/{controllers,models,lib,views}/**/*.{rhtml,html.erb,rb}') GetText.update_pofiles(Noosfero::PROJECT, sources, "#{Noosfero::PROJECT} #{Noosfero::VERSION}") end -- libgit2 0.21.2