Commit 5c3c255b54dd7cda0475fa59ea09b96fe2cc9465

Authored by Antonio Terceiro
1 parent cc96e5cc

Load required libraries in updatepo task

Showing 1 changed file with 4 additions and 0 deletions   Show diff stats
lib/tasks/gettext.rake
... ... @@ -6,12 +6,16 @@ require 'noosfero'
6 6  
7 7 desc "Create mo-files for L10n"
8 8 task :makemo do
  9 + require 'gettext'
  10 + require 'gettext/rails'
9 11 require 'gettext/utils'
10 12 GetText.create_mofiles(true, "po", "locale")
11 13 end
12 14  
13 15 desc "Update pot/po files to match new version."
14 16 task :updatepo do
  17 + require 'gettext'
  18 + require 'gettext/rails'
15 19 require 'gettext/utils'
16 20 GetText::RubyParser::ID << '__'
17 21 GetText::RubyParser::PLURAL_ID << 'n__'
... ...