Public feed #893171

Mine

public text v1 · immutable
Raw Edit
·published 2008-02-05 22:46 UTC
rendered paste body
$ rake updatepo                                                                
(in /home/fofo/prog/ruby/rails/ncsite/trunk/ncsite)
po/ncsite.pot
po/fr_FR/ncsite.po
. done.
Failed to merge with po/fr_FR/ncsite.po
New .pot was copied to tmp.pot~
rake aborted!
`/usr/local/bin/msgmerge' may not be found. 
Install GNU Gettext then set PATH or MSGMERGE_PATH correctly.

(See full trace by running task with --trace)


$ msgmerge
msgmerge: no input files given
Try `msgmerge --help' for more information.


$ which msgmerge
/usr/local/bin/msgmerge


$ cat lib/tasks/localization.rake                                              
require 'gettext/utils'
desc "Create mo-files"
task :makemo do
 GetText.create_mofiles(true, "po", "locale")
end
 
desc "Update pot/po files to match new version."
task :updatepo do
 TEXT_DOMAIN = "ncsite"
 APP_VERSION     = "ncsite 0.1"
 GetText.update_pofiles(TEXT_DOMAIN,
                        Dir.glob("{app,lib}/**/*.{rb,rhtml}"),
                        APP_VERSION)
end

$