Skip to content

Commit 0600b97

Browse files
authored
feat: Change wording for shared drive invitation mails (#4570)
2 parents dfb1615 + 6e7a0b5 commit 0600b97

File tree

4 files changed

+353
-335
lines changed

4 files changed

+353
-335
lines changed

assets/locales/en.po

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,8 +1019,8 @@ msgstr "%s has shared %s with you"
10191019
msgid "Notification Sharing Description"
10201020
msgstr "%s invites you to %s the %s **%s**"
10211021

1022-
msgid "Notification Sharing Type Organization"
1023-
msgstr "folder of passwords"
1022+
msgid "Notification Sharing Title Shared Drive"
1023+
msgstr "a drive"
10241024

10251025
msgid "Notification Sharing Title Document"
10261026
msgstr "a document"
@@ -1034,6 +1034,12 @@ msgstr "a file"
10341034
msgid "Notification Sharing Title Note"
10351035
msgstr "a note"
10361036

1037+
msgid "Notification Sharing Type Shared Drive"
1038+
msgstr "the shared drive"
1039+
1040+
msgid "Notification Sharing Type Organization"
1041+
msgstr "the folder of passwords"
1042+
10371043
msgid "Notification Sharing Type Document"
10381044
msgstr "the document"
10391045

assets/locales/fr.po

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1118,8 +1118,8 @@ msgstr "%s a partagé %s avec vous"
11181118
msgid "Notification Sharing Description"
11191119
msgstr "%s vous invite à %s %s **%s**"
11201120

1121-
msgid "Notification Sharing Type Organization"
1122-
msgstr "dossier partagé de mots de passe"
1121+
msgid "Notification Sharing Title Shared Drive"
1122+
msgstr "un drive"
11231123

11241124
msgid "Notification Sharing Title Document"
11251125
msgstr "un document"
@@ -1133,6 +1133,12 @@ msgstr "un fichier"
11331133
msgid "Notification Sharing Title Note"
11341134
msgstr "une note"
11351135

1136+
msgid "Notification Sharing Type Shared Drive"
1137+
msgstr "le drive partagé"
1138+
1139+
msgid "Notification Sharing Type Organization"
1140+
msgstr "le dossier partagé de mots de passe"
1141+
11361142
msgid "Notification Sharing Type Document"
11371143
msgstr "le document"
11381144

model/sharing/invitation.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,9 @@ func (m *Member) SendMail(inst *instance.Instance, s *Sharing, sharer, descripti
222222
}
223223

224224
func getDocumentTitleType(inst *instance.Instance, s *Sharing) string {
225+
if s.Drive {
226+
return inst.Translate("Notification Sharing Title Shared Drive")
227+
}
225228
rule := s.FirstFilesRule()
226229
if rule == nil {
227230
if len(s.Rules) > 0 && s.Rules[0].DocType == consts.BitwardenOrganizations {
@@ -240,6 +243,9 @@ func getDocumentTitleType(inst *instance.Instance, s *Sharing) string {
240243
}
241244

242245
func getDocumentType(inst *instance.Instance, s *Sharing) string {
246+
if s.Drive {
247+
return inst.Translate("Notification Sharing Type Shared Drive")
248+
}
243249
rule := s.FirstFilesRule()
244250
if rule == nil {
245251
if len(s.Rules) > 0 && s.Rules[0].DocType == consts.BitwardenOrganizations {

0 commit comments

Comments
 (0)