Internationalize the tooltips of the "Amend commit attributes" menu

This commit is contained in:
Abhishek Keshri 2023-12-17 20:02:53 +01:00 committed by Stefan Haller
parent c3c5753a35
commit b1523c3f07
2 changed files with 6 additions and 2 deletions

View file

@ -680,13 +680,13 @@ func (self *LocalCommitsController) amendAttribute(commit *models.Commit) error
Label: self.c.Tr.ResetAuthor,
OnPress: self.resetAuthor,
Key: 'a',
Tooltip: "Reset the commit's author to the currently configured user. This will also renew the author timestamp",
Tooltip: self.c.Tr.ResetAuthorTooltip,
},
{
Label: self.c.Tr.SetAuthor,
OnPress: self.setAuthor,
Key: 'A',
Tooltip: "Set the author based on a prompt",
Tooltip: self.c.Tr.SetAuthorTooltip,
},
{
Label: self.c.Tr.AddCoAuthor,

View file

@ -147,7 +147,9 @@ type TranslationSet struct {
AmendCommitTooltip string
Amend string
ResetAuthor string
ResetAuthorTooltip string
SetAuthor string
SetAuthorTooltip string
AddCoAuthor string
AmendCommitAttribute string
AmendCommitAttributeTooltip string
@ -1093,7 +1095,9 @@ func EnglishTranslationSet() TranslationSet {
AmendCommitTooltip: "Amend commit with staged changes. If the selected commit is the HEAD commit, this will perform `git commit --amend`. Otherwise the commit will be amended via a rebase.",
Amend: "Amend",
ResetAuthor: "Reset author",
ResetAuthorTooltip: "Reset the commit's author to the currently configured user. This will also renew the author timestamp",
SetAuthor: "Set author",
SetAuthorTooltip: "Set the author based on a prompt",
AddCoAuthor: "Add co-author",
AmendCommitAttribute: "Amend commit attribute",
AmendCommitAttributeTooltip: "Set/Reset commit author or set co-author.",