Commit bacd2c109e6ea184d542458ed6659cf57a2cff36

Authored by AntonioTerceiro
1 parent 8a66a88e

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
1   -
2   -PROJECT = 'anhetegua'
3   -VERSION = '0.1.0'
  1 +module Anhetegua
  2 + PROJECT = 'anhetegua'
  3 + VERSION = '0.1.0'
  4 +end
... ...
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
... ...