From a04a6d700780eb44b38d08cdedbfc34ff12c9628 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 e57b094..5ddd0e4 100644 --- a/src/noosfero-spb/software_communities/lib/ext/category.rb +++ b/src/noosfero-spb/software_communities/lib/ext/category.rb @@ -31,4 +31,8 @@ class Category software_list = self.communities.collect{|community| community.software_info if community.software?} software_list end + + def name + _(self[:name].to_s) + end end -- libgit2 0.21.2