From f208912417ef6ee69d373c396aa8bfce78c2c5cd Mon Sep 17 00:00:00 2001 From: Luciano Prestes Cavalcanti Date: Wed, 6 Jan 2016 19:36:03 +0100 Subject: [PATCH] Fix translation of categories name --- src/noosfero-spb/software_communities/lib/ext/category.rb | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) diff --git a/src/noosfero-spb/software_communities/lib/ext/category.rb b/src/noosfero-spb/software_communities/lib/ext/category.rb index 0c3008c..f450df7 100644 --- a/src/noosfero-spb/software_communities/lib/ext/category.rb +++ b/src/noosfero-spb/software_communities/lib/ext/category.rb @@ -32,4 +32,8 @@ class Category software_list.collect { |x| software_list.delete(x) unless x.software? } software_list end + + def name + _(self[:name].to_s) + end end -- libgit2 0.21.2