Commit c1cd1797b22b45f90a4eac4292a8db5b481c0fd1

Authored by Braulio Bhavamitra
Committed by Rodrigo Souto
1 parent b1e0c583

Whitelisting plugins' folders that should be loaded by gettext

(ActionItem2721)
Showing 1 changed file with 1 additions and 2 deletions   Show diff stats
lib/tasks/gettext.rake
@@ -48,11 +48,10 @@ task :updatepo do @@ -48,11 +48,10 @@ task :updatepo do
48 puts 'Extracting strings from source. This may take a while ...' 48 puts 'Extracting strings from source. This may take a while ...'
49 sources = 49 sources =
50 Dir.glob("{app,lib}/**/*.{rb,rhtml,erb}") + 50 Dir.glob("{app,lib}/**/*.{rb,rhtml,erb}") +
51 - Dir.glob("plugins/**/*.{rb,rhtml,erb}") +  
52 Dir.glob('config/initializers/*.rb') + 51 Dir.glob('config/initializers/*.rb') +
53 Dir.glob('public/*.html.erb') + 52 Dir.glob('public/*.html.erb') +
54 Dir.glob('public/designs/themes/{base,noosfero,profile-base}/*.{rhtml,html.erb}') + 53 Dir.glob('public/designs/themes/{base,noosfero,profile-base}/*.{rhtml,html.erb}') +
55 - Dir.glob('plugins/**/{controllers,lib,views}/**/*.{rhtml,html.erb,rb}') 54 + Dir.glob('plugins/**/{controllers,models,lib,views}/**/*.{rhtml,html.erb,rb}')
56 GetText.update_pofiles(Noosfero::PROJECT, sources, "#{Noosfero::PROJECT} #{Noosfero::VERSION}") 55 GetText.update_pofiles(Noosfero::PROJECT, sources, "#{Noosfero::PROJECT} #{Noosfero::VERSION}")
57 end 56 end
58 57