Commit ab04315e42cd7abe2dc5d068cb957099757a513e
1 parent
2d0f28ad
Exists in
master
and in
29 other branches
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/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 |