Commit ab04315e42cd7abe2dc5d068cb957099757a513e

Authored by AntonioTerceiro
1 parent 2d0f28ad

ActionItem8: getting project name and version from project_meta.rb



git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@118 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 2 changed files with 6 additions and 2 deletions   Show diff stats
lib/project_meta.rb 0 → 100644
@@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
  1 +
  2 +PROJECT = 'anhetegua'
  3 +VERSION = '0.1.0'
lib/tasks/gettext.rake
@@ -3,6 +3,7 @@ @@ -3,6 +3,7 @@
3 # 3 #
4 4
5 require 'gettext/utils' 5 require 'gettext/utils'
  6 +require 'project_meta'
6 7
7 desc "Create mo-files for L10n" 8 desc "Create mo-files for L10n"
8 task :makemo do 9 task :makemo do
@@ -11,8 +12,8 @@ end @@ -11,8 +12,8 @@ end
11 12
12 desc "Update pot/po files to match new version." 13 desc "Update pot/po files to match new version."
13 task :updatepo do 14 task :updatepo do
14 - GetText.update_pofiles('anhetegua', Dir.glob("{app,lib}/**/*.{rb,rhtml}"),  
15 - "anhetegua 0.1.0") 15 + GetText.update_pofiles(PROJECT, Dir.glob("{app,lib}/**/*.{rb,rhtml}"),
  16 + "#{PROJECT} #{VERSION}")
16 end 17 end
17 18
18 # vim: ft=ruby 19 # vim: ft=ruby