Commit 3f3cf573111062680ef9742009cc8da724344dca

Authored by Daniela Feitosa
1 parent b84fbc8b

ActionItem720: fixing strings and adding title

app/views/blocks/profile_info_actions/community.rhtml
1 <ul> 1 <ul>
2 <% if logged_in? %> 2 <% if logged_in? %>
3 <% if profile.members.include?(user) %> 3 <% if profile.members.include?(user) %>
4 - <li><%= link_to content_tag('span', _('Leave this community')), { :profile => user.identifier, :controller => 'memberships', :action => 'leave', :id => profile.id }, :class => 'button with-text icon-delete' %></li> 4 + <li><%= link_to content_tag('span', _('Leave')), { :profile => user.identifier, :controller => 'memberships', :action => 'leave', :id => profile.id }, :class => 'button with-text icon-delete', :title => _('Leave this community') %></li>
5 <% else %> 5 <% else %>
6 - <li><%= link_to content_tag('span', _('Join this community')), { :profile => user.identifier, :controller => 'memberships', :action => 'join', :id => profile.id }, :class => 'button with-text icon-add' %></li> 6 + <li><%= link_to content_tag('span', _('Join')), { :profile => user.identifier, :controller => 'memberships', :action => 'join', :id => profile.id }, :class => 'button with-text icon-add', :title => _('Join this community') %></li>
7 <% end %> 7 <% end %>
8 <% end %> 8 <% end %>
9 </ul> 9 </ul>
app/views/blocks/profile_info_actions/enterprise.rhtml
1 <ul> 1 <ul>
2 <%if logged_in? %> 2 <%if logged_in? %>
3 <%if !user.favorite_enterprises.include?(profile) %> 3 <%if !user.favorite_enterprises.include?(profile) %>
4 - <li><%= link_to content_tag('span', __('Add favorite enterprise')), { :profile => user.identifier, :controller => 'favorite_enterprises', :action => 'add', :id => profile.id }, :class => 'button with-text icon-add' %></li> 4 + <li><%= link_to content_tag('span', _('Add as favorite')), { :profile => user.identifier, :controller => 'favorite_enterprises', :action => 'add', :id => profile.id }, :class => 'button with-text icon-add', :title => __('Add enterprise as favorite') %></li>
5 <% end %> 5 <% end %>
6 <% if profile.members.include?(user) %> 6 <% if profile.members.include?(user) %>
7 - <li><%= link_to content_tag('span', __('Leave this enterprise')), { :profile => user.identifier, :controller => 'memberships', :action => 'leave', :id => profile.id }, :class => 'button with-text icon-delete' %></li> 7 + <li><%= link_to content_tag('span', _('Leave')), { :profile => user.identifier, :controller => 'memberships', :action => 'leave', :id => profile.id }, :class => 'button with-text icon-delete', :title => __('Leave this enterprise') %></li>
8 <% else %> 8 <% else %>
9 - <li><%= link_to content_tag('span', __('Join this enterprise')), { :profile => user.identifier, :controller => 'memberships', :action => 'join', :id => profile.id }, :class => 'button with-text icon-add' %></li> 9 + <li><%= link_to content_tag('span', _('Join')), { :profile => user.identifier, :controller => 'memberships', :action => 'join', :id => profile.id }, :class => 'button with-text icon-add', :title => __('Join this enterprise') %></li>
10 <% end %> 10 <% end %>
11 <% end %> 11 <% end %>
12 </ul> 12 </ul>
lib/zen3_terminology.rb
@@ -30,7 +30,7 @@ class Zen3Terminology &lt; Noosfero::Terminology::Custom @@ -30,7 +30,7 @@ class Zen3Terminology &lt; Noosfero::Terminology::Custom
30 'All favorite enterprises' => N_('All favorite organizations'), 30 'All favorite enterprises' => N_('All favorite organizations'),
31 'A search for enterprises by products selled and local' => N_('A search for organizations by products selled and local'), 31 'A search for enterprises by products selled and local' => N_('A search for organizations by products selled and local'),
32 'Edit message for disabled enterprises' => N_('Edit message for disabled organizations'), 32 'Edit message for disabled enterprises' => N_('Edit message for disabled organizations'),
33 - 'Add favorite enterprise' => N_('Add favorite organization'), 33 + 'Add enterprise as favorite' => N_('Add organization as favorite'),
34 'Validation info is the information the enterprises will see about how your organization processes the enterprises validations it receives: validation methodology, restrictions to the types of enterprises the organization validates etc.' => N_('Validation info is the information the organizations will see about how your organization processes the organizations validations it receives: validation methodology, restrictions to the types of organizations the organization validates etc.'), 34 'Validation info is the information the enterprises will see about how your organization processes the enterprises validations it receives: validation methodology, restrictions to the types of enterprises the organization validates etc.' => N_('Validation info is the information the organizations will see about how your organization processes the organizations validations it receives: validation methodology, restrictions to the types of organizations the organization validates etc.'),
35 'Here are all <b>%s</b>\'s enterprises.' => N_('Here all all <b>%s</b>\'s organizations.'), 35 'Here are all <b>%s</b>\'s enterprises.' => N_('Here all all <b>%s</b>\'s organizations.'),
36 'Here are all <b>%s</b>\'s favorite enterprises.' => N_('Here are all <b>%s</b>\'s favorite organizations.'), 36 'Here are all <b>%s</b>\'s favorite enterprises.' => N_('Here are all <b>%s</b>\'s favorite organizations.'),