lib/tasks/faalis_tasks.rake in faalis-1.0.0.alpha0 vs lib/tasks/faalis_tasks.rake in faalis-1.0.0.alpha1
- old
+ new
@@ -1,40 +1,38 @@
-namespace :faalis do
+namespace :js do
+ namespace :i18n do
+ desc "Collect all the strings which marked for translation from javascript files"
+ task :collect do
+ base = "--base #{Rails.root}/"
+ puts "grunt --gruntfile #{Rails.root}/lib/tasks/grunt/Gruntfile.js #{base} nggettext_extract -d -v"
+ puts `grunt --gruntfile #{Rails.root}/lib/tasks/grunt/Gruntfile.js #{base} nggettext_extract -d -v`
+ end
+
+ desc "Compile all the strings which marked for translation in javascript files"
+ task :compile do
+ base = "--base #{Rails.root}/"
+ puts `grunt --gruntfile #{Rails.root}/lib/tasks/grunt/Gruntfile.js #{base} nggettext_compile -d -v`
+ end
+ end
+
+end
+
+
+namespace :faalis do
namespace :js do
namespace :i18n do
-
desc "Collect all the strings which marked for translation from javascript files"
task :collect do
- base = "--base #{Rails.root}/"
- puts "grunt --gruntfile #{Rails.root}/lib/tasks/grunt/Gruntfile.js #{base} nggettext_extract -d -v"
- puts `grunt --gruntfile #{Rails.root}/lib/tasks/grunt/Gruntfile.js #{base} nggettext_extract -d -v`
+ base = "--base #{Faalis::Engine.root}/"
+ puts "grunt --gruntfile #{Faalis::Engine.root}/lib/tasks/grunt/Gruntfile.js #{base} nggettext_extract -d -v"
+ puts `grunt --gruntfile #{Faalis::Engine.root}/lib/tasks/grunt/Gruntfile.js #{base} nggettext_extract -d -v`
end
desc "Compile all the strings which marked for translation in javascript files"
task :compile do
- base = "--base #{Rails.root}/"
- puts `grunt --gruntfile #{Rails.root}/lib/tasks/grunt/Gruntfile.js #{base} nggettext_compile -d -v`
+ base = "--base #{Faalis::Engine.root}/"
+ puts `grunt --gruntfile #{Faalis::Engine.root}/lib/tasks/grunt/Gruntfile.js #{base} nggettext_compile -d -v`
end
end
-
- end
-end
-
-
-namespace :js do
- namespace :i18n do
- desc "Collect all the strings which marked for translation from javascript files"
- task :collect do
- base = "--base #{Faalis::Engine.root}/"
- puts "grunt --gruntfile #{Faalis::Engine.root}/lib/tasks/grunt/Gruntfile.js #{base} nggettext_extract -d -v"
- puts `grunt --gruntfile #{Faalis::Engine.root}/lib/tasks/grunt/Gruntfile.js #{base} nggettext_extract -d -v`
- end
-
- desc "Compile all the strings which marked for translation in javascript files"
- task :compile do
- base = "--base #{Faalis::Engine.root}/"
- puts `grunt --gruntfile #{Faalis::Engine.root}/lib/tasks/grunt/Gruntfile.js #{base} nggettext_compile -d -v`
- end
-
end
end