Browse Source

Fix reference to translation of "Subgroups"

Maarten van den Berg 6 years ago
parent
commit
ce0a9d6039
2 changed files with 6 additions and 2 deletions
  1. 2 2
      app/views/activities/show.html.haml
  2. 4 0
      config/locales/aardbei_en.yml

+ 2 - 2
app/views/activities/show.html.haml

70
         - if @assignable_subgroups.any?
70
         - if @assignable_subgroups.any?
71
           %tr
71
           %tr
72
             %td
72
             %td
73
-              = t 'activerecord.attributes.activity.subgroups'
73
+              = t 'activerecord.models.subgroup.other'
74
 
74
 
75
             %td
75
             %td
76
               = @assignable_subgroups.join(', ')
76
               = @assignable_subgroups.join(', ')
128
   - if @activity.subgroups.any?
128
   - if @activity.subgroups.any?
129
     .panel.panel-default
129
     .panel.panel-default
130
       .panel-heading
130
       .panel-heading
131
-        = t 'activerecord.attrs.activities.subgroups'
131
+        = t 'activerecord.models.subgroup.other'
132
       .panel-body
132
       .panel-body
133
         = select_tag(:subgroup_filter, options_for_select(@subgroup_ids), class: 'form-control subgroup-filter')
133
         = select_tag(:subgroup_filter, options_for_select(@subgroup_ids), class: 'form-control subgroup-filter')
134
 
134
 

+ 4 - 0
config/locales/aardbei_en.yml

71
         one: "Member"
71
         one: "Member"
72
         other: "Members"
72
         other: "Members"
73
 
73
 
74
+      subgroup:
75
+        one: "Subgroup"
76
+        other: "Subgroups"
77
+
74
     attributes:
78
     attributes:
75
       person:
79
       person:
76
         first_name: "First name"
80
         first_name: "First name"