This repository was archived by the owner on Sep 4, 2020. It is now read-only.
File tree 5 files changed +64
-12
lines changed
5 files changed +64
-12
lines changed Original file line number Diff line number Diff line change
1
+ - id : " topic-create"
2
+ translation : " Create a new topic"
3
+ - id : " topic-title"
4
+ translation : " Title"
5
+ - id : " topic-content"
6
+ translation : " Content"
7
+ - id : " topic-publish"
8
+ translation : " Publish"
9
+
10
+ - id : " topic-subscribe"
11
+ translation : " Subscribe"
12
+ - id : " topic-unsubscribe"
13
+ translation : " Unsubscribe"
14
+ - id : " topic-delete-msg"
15
+ translation : " Delete topic {{.title}} ?"
16
+ - id : " topic-delete"
17
+ translation : " Delete"
18
+ - id : " topic-close"
19
+ translation : " Close"
20
+
21
+ - id : " topic-edit"
22
+ translation : " Edit Topic"
23
+ - id : " topic-update"
24
+ translation : " Update"
25
+ - id : " topic-cancel"
26
+ translation : " Cancel"
Original file line number Diff line number Diff line change
1
+ - id : " topic-create"
2
+ translation : " Créer une nouvelle discussion"
3
+ - id : " topic-title"
4
+ translation : " Titre"
5
+ - id : " topic-content"
6
+ translation : " Contenu"
7
+ - id : " topic-publish"
8
+ translation : " Publier"
9
+
10
+ - id : " topic-subscribe"
11
+ translation : " S'abonner"
12
+ - id : " topic-unsubscribe"
13
+ translation : " Se désabonner"
14
+ - id : " topic-delete-msg"
15
+ translation : " Supprimer {{.title}} ?"
16
+ - id : " topic-delete"
17
+ translation : " Supprimer"
18
+ - id : " topic-close"
19
+ translation : " Fermer"
20
+
21
+ - id : " topic-edit"
22
+ translation : " Modifer la discussion"
23
+ - id : " topic-update"
24
+ translation : " Mise à jour"
25
+ - id : " topic-cancel"
26
+ translation : " Annuler"
Original file line number Diff line number Diff line change 15
15
16
16
< div class ="row mt-3 justify-content-center ">
17
17
< div class ="col-md-8 col-sm-10 ">
18
- < h2 > Create a new topic</ h2 >
18
+ < h2 > < %= t(" topic-create") % > </ h2 >
19
19
< form action ="<%= topicsCreatePath({cid: category.ID}) %> " method ="POST ">
20
20
< %= csrf() %>
21
21
< div class ="form-group ">
22
- < label for ="title "> Title </ label >
22
+ < label for ="title "> < %= t("topic-title") % > </ label >
23
23
< input type ="text " name ="Title " class ="form-control " id ="title " value ="<%= topic.Title %> ">
24
24
</ div >
25
25
< div class ="form-group ">
26
- < label for ="content "> Content </ label >
26
+ < label for ="content "> < %= t("topic-content") % > </ label >
27
27
< textarea class ="form-control " name ="Content " id ="content " rows ="20 "> < %= topic.Content %> </ textarea >
28
28
</ div >
29
- < button type ="submit " class ="btn btn-primary "> Publish </ button >
29
+ < button type ="submit " class ="btn btn-primary "> < %= t("topic-publish") % > </ button >
30
30
</ form >
31
31
</ div >
32
32
</ div >
Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ <h4 class="col-md-2">
8
8
</ h4 >
9
9
< div class ="col-md-1 offset-md-7 ">
10
10
< %= if (topic.Subscribed(current_user.ID)) { %>
11
- < a href ="<%= topicsRmSubscriberPath({tid: topic.ID}) %> " class ="btn btn-secondary btn-sm m-0 fa fa-volume-off "> Unsubscribe </ a >
11
+ < a href ="<%= topicsRmSubscriberPath({tid: topic.ID}) %> " class ="btn btn-secondary btn-sm m-0 fa fa-volume-off "> < %= t("topic-unsubscribe") % > </ a >
12
12
< % } else { %>
13
- < a href ="<%= topicsAddSubscriberPath({tid: topic.ID}) %> " class ="btn btn-secondary btn-sm m-0 fa fa-volume-up "> Subscribe </ a >
13
+ < a href ="<%= topicsAddSubscriberPath({tid: topic.ID}) %> " class ="btn btn-secondary btn-sm m-0 fa fa-volume-up "> < %= t("topic-subscribe") % > </ a >
14
14
< % } %>
15
15
</ div >
16
16
</ div >
@@ -43,17 +43,17 @@ <h4 class="col-md-2">
43
43
< div class ="modal-content ">
44
44
<!-- Modal Header -->
45
45
< div class ="modal-header ">
46
- < h4 class ="modal-title "> Delete topic < %= topic.Title %> ? </ h4 >
46
+ < h4 class ="modal-title "> < %= t(" topic-delete-msg", {title: topic .Title}) %> </ h4 >
47
47
< button type ="button " class ="close " data-dismiss ="modal "> ×</ button >
48
48
</ div >
49
49
<!-- Modal -->
50
50
< div class ="modal-body ">
51
51
< div class ="row ">
52
52
< div class ="col text-left ">
53
- < a href ="<%= topicsDeletePath({tid: topic.ID}) %> " class ="btn btn-danger "> Delete </ a >
53
+ < a href ="<%= topicsDeletePath({tid: topic.ID}) %> " class ="btn btn-danger "> < %= t("topic-delete") % > </ a >
54
54
</ div >
55
55
< div class ="col text-right ">
56
- < button type ="button " class ="btn btn-secondary " data-dismiss ="modal "> Close </ button >
56
+ < button type ="button " class ="btn btn-secondary " data-dismiss ="modal "> < %= t("topic-close") % > </ button >
57
57
</ div >
58
58
</ div >
59
59
</ div >
Original file line number Diff line number Diff line change 15
15
16
16
< div class ="row mt-3 justify-content-center ">
17
17
< div class ="col-md-8 col-sm-10 ">
18
- < h2 > Edit Topic </ h2 >
18
+ < h2 > < %= t("topic-edit") % > </ h2 >
19
19
< %= csrf() %>
20
20
< div >
21
21
< %= form_for(topic, {action: editTopicsPath({ tid: topic.ID }), method: "POST"}) { %>
22
22
< %= f.InputTag("Title") %>
23
23
< %= f.TextArea("Content", {rows: 20, hide_label: true}) %>
24
- < button class ="btn btn-success " role ="submit "> Update </ button >
25
- < a href ="<%= topicsDetailPath({ tid: topic.ID }) %> " class ="btn btn-warning "> Cancel </ a >
24
+ < button class ="btn btn-success " role ="submit "> < %= t("topic-update") % > </ button >
25
+ < a href ="<%= topicsDetailPath({ tid: topic.ID }) %> " class ="btn btn-warning "> < %= t("topic-cancel") % > </ a >
26
26
< % } %>
27
27
</ div >
28
28
</ div >
You can’t perform that action at this time.
0 commit comments