Sha256: 322804c285e3f15be19fe65c66e34fc9d74e79583c1201d24617c860f09c8ed6
Contents?: true
Size: 874 Bytes
Versions: 1
Compression:
Stored size: 874 Bytes
Contents
# 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' task :updatepo do $: << 'vendor/plugins/amrita2/lib' require 'gettext/utils' require 'amrita2/gettext' require 'amrita2/macro' GetText.update_pofiles("login_engine", #テキストドメイン名(init_gettextで使用した名前) Dir.glob("{app,config,components,lib}/**/*.{rb,rhtml,a2html}"), #ターゲットとなるファイル "logine_engine 1.0.0" #アプリケーションのバージョン ) end desc "Create mo-files" task :makemo do require 'gettext/utils' GetText.create_mofiles(true, "po", "locale") end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
amrita2-2.0.2 | sample/login_engine/Rakefile |