Commit bacd2c109e6ea184d542458ed6659cf57a2cff36
1 parent
8a66a88e
Exists in
staging
and in
42 other branches
ActionItem8: loading gettext/utils outside of a target makes `rake doc:rails`
not work git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@155 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
2 changed files
with
6 additions
and
4 deletions
Show diff stats
lib/project_meta.rb
lib/tasks/gettext.rake
| ... | ... | @@ -2,16 +2,17 @@ |
| 2 | 2 | # Added for Ruby-GetText-Package |
| 3 | 3 | # |
| 4 | 4 | |
| 5 | -require 'gettext/utils' | |
| 6 | 5 | require 'project_meta' |
| 7 | 6 | |
| 8 | 7 | desc "Create mo-files for L10n" |
| 9 | 8 | task :makemo do |
| 9 | + require 'gettext/utils' | |
| 10 | 10 | GetText.create_mofiles(true, "po", "locale") |
| 11 | 11 | end |
| 12 | 12 | |
| 13 | 13 | desc "Update pot/po files to match new version." |
| 14 | 14 | task :updatepo do |
| 15 | + require 'gettext/utils' | |
| 15 | 16 | GetText.update_pofiles(PROJECT, Dir.glob("{app,lib}/**/*.{rb,rhtml}"), |
| 16 | 17 | "#{PROJECT} #{VERSION}") |
| 17 | 18 | end | ... | ... |