Commit bacd2c109e6ea184d542458ed6659cf57a2cff36
1 parent
8a66a88e
Exists in
master
and in
28 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,16 +2,17 @@ | ||
2 | # Added for Ruby-GetText-Package | 2 | # Added for Ruby-GetText-Package |
3 | # | 3 | # |
4 | 4 | ||
5 | -require 'gettext/utils' | ||
6 | require 'project_meta' | 5 | require 'project_meta' |
7 | 6 | ||
8 | desc "Create mo-files for L10n" | 7 | desc "Create mo-files for L10n" |
9 | task :makemo do | 8 | task :makemo do |
9 | + require 'gettext/utils' | ||
10 | GetText.create_mofiles(true, "po", "locale") | 10 | GetText.create_mofiles(true, "po", "locale") |
11 | end | 11 | end |
12 | 12 | ||
13 | desc "Update pot/po files to match new version." | 13 | desc "Update pot/po files to match new version." |
14 | task :updatepo do | 14 | task :updatepo do |
15 | + require 'gettext/utils' | ||
15 | GetText.update_pofiles(PROJECT, Dir.glob("{app,lib}/**/*.{rb,rhtml}"), | 16 | GetText.update_pofiles(PROJECT, Dir.glob("{app,lib}/**/*.{rb,rhtml}"), |
16 | "#{PROJECT} #{VERSION}") | 17 | "#{PROJECT} #{VERSION}") |
17 | end | 18 | end |