fix(i18n): remove duplicate api strings

This commit is contained in:
kolaente 2025-03-18 18:23:15 +01:00
parent 02f9f92232
commit 732431773d
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B
3 changed files with 8 additions and 16 deletions

View File

@ -100,10 +100,7 @@
}
},
"project": {
"created": {
"subject": "%[1]s created the project \"%[2]s\"",
"message": "%[1]s created the project \"%[2]s\""
}
"created": "%[1]s created the project \"%[2]s\"",
},
"team": {
"member_added": {
@ -129,12 +126,7 @@
"message": "Looks like the move from %[1]s didn't go as planned this time.",
"retry": "No worries, though! Just give it another shot by starting over the same way you did before. Sometimes, these hiccups happen because of glitches on %[1]s's end, but trying again often does the trick.",
"error": "We bumped into a little error along the way: `%[2]s`.",
"report": "Please drop us a note about this [in the forum](https://community.vikunja.io/) or any of the usual places so that we can take a look at why it failed."
},
"failed_reported": {
"subject": "The migration from %[1]s to Vikunja has failed",
"message": "Looks like the move from %[1]s didn't go as planned this time.",
"retry": "No worries, though! Just give it another shot by starting over the same way you did before. Sometimes, these hiccups happen because of glitches on %[1]s's end, but trying again often does the trick.",
"report": "Please drop us a note about this [in the forum](https://community.vikunja.io/) or any of the usual places so that we can take a look at why it failed.",
"working_on_it": "We've got the error message on our radar and are on it to get it sorted out soon."
}
},

View File

@ -166,8 +166,8 @@ type ProjectCreatedNotification struct {
// ToMail returns the mail notification for ProjectCreatedNotification
func (n *ProjectCreatedNotification) ToMail(lang string) *notifications.Mail {
return notifications.NewMail().
Subject(i18n.T(lang, "notifications.project.created.subject", n.Doer.GetName(), n.Project.Title)).
Line(i18n.T(lang, "notifications.project.created.message", n.Doer.GetName(), n.Project.Title)).
Subject(i18n.T(lang, "notifications.project.created", n.Doer.GetName(), n.Project.Title)).
Line(i18n.T(lang, "notifications.project.created", n.Doer.GetName(), n.Project.Title)).
Action("View Project", config.ServicePublicURL.GetString()+"projects/")
}

View File

@ -61,10 +61,10 @@ func (n *MigrationFailedReportedNotification) ToMail(lang string) *notifications
kind := cases.Title(language.English).String(n.MigratorName)
return notifications.NewMail().
Subject(i18n.T(lang, "notifications.migration.failed_reported.subject", kind)).
Line(i18n.T(lang, "notifications.migration.failed_reported.message", kind)).
Line(i18n.T(lang, "notifications.migration.failed_reported.retry", kind)).
Line(i18n.T(lang, "notifications.migration.failed_reported.working_on_it"))
Subject(i18n.T(lang, "notifications.migration.failed.subject", kind)).
Line(i18n.T(lang, "notifications.migration.failed.message", kind)).
Line(i18n.T(lang, "notifications.migration.failed.retry", kind)).
Line(i18n.T(lang, "notifications.migration.failed.working_on_it"))
}
// ToDB returns the MigrationFailedReportedNotification notification in a format which can be saved in the db