# Add your own tasks in files placed in lib/tasks ending in .rake, # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. require(File.join(File.dirname(__FILE__), 'config', 'boot')) require 'rake' require 'rake/testtask' require 'rake/rdoctask' require 'tasks/rails' ###### GETTEXT TASKS ##### # Taken from "Using Gettext To Translate Your Rails Application" at # http://www.digitale-wertschoepfung.de/artikel/gettext/gettext.html require 'gettext/utils' desc "Create mo-files for L10n" task :makemo do GetText.create_mofiles(true, "po", "locale") end desc "Update pot/po files to match new version." task :updatepo do TEXT_DOMAIN = "norfello_cmms" VERSION = "NorfelloCMMS SVN trunk" GetText.update_pofiles(TEXT_DOMAIN, Dir.glob("{app,lib,config,commercial/app,commercial/lib,commercial/config}/**/*.{rb,rhtml}"), VERSION) end