Browse Source

Misc fixes in i18n

Maarten van den Berg 7 years ago
parent
commit
6b64553922

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

@@ -22,7 +22,7 @@
22 22
 
23 23
         %tr
24 24
           %td
25
-            = t 'activities.attrs.location'
25
+            = t 'activities.attrs.where'
26 26
           %td
27 27
             = @activity.location
28 28
 

+ 5 - 3
app/views/dashboard/home.html.haml

@@ -26,7 +26,8 @@
26 26
                   - e = p.activity
27 27
                   %tr{class: p.row_class, data: {activity_id: e.id, person_id: current_person.id}}
28 28
                     %td
29
-                      = e.name
29
+                      = link_to group_activity_path(e.group, e) do
30
+                        = e.name
30 31
                     %td
31 32
                       = e.group.name
32 33
                     %td
@@ -39,7 +40,7 @@
39 40
     .col-md-6
40 41
       .panel.panel-default
41 42
         .panel-heading
42
-          = t 'groups.singular'
43
+          = t 'groups.plural'
43 44
 
44 45
         .panel-body
45 46
           %table.table.table-bordered
@@ -79,7 +80,8 @@
79 80
                 - e = p.activity
80 81
                 %tr{class: p.row_class, data: {activity_id: e.id, person_id: current_person.id}}
81 82
                   %td
82
-                    = e.name
83
+                    = link_to group_activity_path(e.group, e) do
84
+                      = e.name
83 85
                   %td
84 86
                     = render partial: "activities/presence_buttons", locals: {activity: e, person: current_person, state: p.attending}
85 87
                   %td

+ 56 - 0
config/locales/actionview_nl.yml

@@ -0,0 +1,56 @@
1
+nl:
2
+  # Used in distance_of_time_in_words(), distance_of_time_in_words_to_now(), time_ago_in_words()
3
+  datetime:
4
+    distance_in_words:
5
+      half_a_minute: "een halve minuut"
6
+      less_than_x_seconds:
7
+        one:   "minder dan 1 seconde"
8
+        other: "minder dan %{count} seconden"
9
+      x_seconds:
10
+        one:   "1 seconde"
11
+        other: "%{count} seconden"
12
+      less_than_x_minutes:
13
+        one:   "minder dan 1 minuut"
14
+        other: "minder dan %{count} minuten"
15
+      x_minutes:
16
+        one:   "1 minuut"
17
+        other: "%{count} minuten"
18
+      about_x_hours:
19
+        one:   "ongeveer 1 uur"
20
+        other: "ongeveer %{count} uren"
21
+      x_days:
22
+        one:   "1 dag"
23
+        other: "%{count} dagen"
24
+      about_x_months:
25
+        one:   "ongeveer 1 maand"
26
+        other: "ongeveer %{count} maanden"
27
+      x_months:
28
+        one:   "1 maand"
29
+        other: "%{count} maanden"
30
+      about_x_years:
31
+        one:   "ongeveer 1 jaar"
32
+        other: "ongeveer %{count} jaren"
33
+      over_x_years:
34
+        one:   "meer dan 1 jaar"
35
+        other: "meer dan %{count} jaren"
36
+      almost_x_years:
37
+        one:   "bijna 1 jaar"
38
+        other: "bijna %{count} jaren"
39
+    prompts:
40
+      year:   "Jaar"
41
+      month:  "Maand"
42
+      day:    "Dag"
43
+      hour:   "Uur"
44
+      minute: "Minuut"
45
+      second: "Seconden"
46
+
47
+  helpers:
48
+    select:
49
+      # Default value for :prompt => true in FormOptionsHelper
50
+      prompt: "Kies een waarde"
51
+
52
+    # Default translation keys for submit and button FormHelper
53
+    submit:
54
+      create: '%{model} aanmaken'
55
+      update: '%{model} bijwerken'
56
+      submit: '%{model} opslaan'

+ 1 - 1
config/locales/activities/nl.yml

@@ -13,7 +13,7 @@ nl:
13 13
       yourresponse: Jouw antwoord
14 14
 
15 15
     state:
16
-      need_response: Niet gereageerd
16
+      need_response: Nog geen reactie
17 17
       present: Aanwezig
18 18
       absent: Afwezig
19 19
       unknown: Onbekend