mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-12 12:55:47 +02:00
Internationalize the tooltips of the "Amend commit attributes" menu
This commit is contained in:
parent
c3c5753a35
commit
b1523c3f07
2 changed files with 6 additions and 2 deletions
|
@ -680,13 +680,13 @@ func (self *LocalCommitsController) amendAttribute(commit *models.Commit) error
|
||||||
Label: self.c.Tr.ResetAuthor,
|
Label: self.c.Tr.ResetAuthor,
|
||||||
OnPress: self.resetAuthor,
|
OnPress: self.resetAuthor,
|
||||||
Key: 'a',
|
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,
|
Label: self.c.Tr.SetAuthor,
|
||||||
OnPress: self.setAuthor,
|
OnPress: self.setAuthor,
|
||||||
Key: 'A',
|
Key: 'A',
|
||||||
Tooltip: "Set the author based on a prompt",
|
Tooltip: self.c.Tr.SetAuthorTooltip,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Label: self.c.Tr.AddCoAuthor,
|
Label: self.c.Tr.AddCoAuthor,
|
||||||
|
|
|
@ -147,7 +147,9 @@ type TranslationSet struct {
|
||||||
AmendCommitTooltip string
|
AmendCommitTooltip string
|
||||||
Amend string
|
Amend string
|
||||||
ResetAuthor string
|
ResetAuthor string
|
||||||
|
ResetAuthorTooltip string
|
||||||
SetAuthor string
|
SetAuthor string
|
||||||
|
SetAuthorTooltip string
|
||||||
AddCoAuthor string
|
AddCoAuthor string
|
||||||
AmendCommitAttribute string
|
AmendCommitAttribute string
|
||||||
AmendCommitAttributeTooltip 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.",
|
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",
|
Amend: "Amend",
|
||||||
ResetAuthor: "Reset author",
|
ResetAuthor: "Reset author",
|
||||||
|
ResetAuthorTooltip: "Reset the commit's author to the currently configured user. This will also renew the author timestamp",
|
||||||
SetAuthor: "Set author",
|
SetAuthor: "Set author",
|
||||||
|
SetAuthorTooltip: "Set the author based on a prompt",
|
||||||
AddCoAuthor: "Add co-author",
|
AddCoAuthor: "Add co-author",
|
||||||
AmendCommitAttribute: "Amend commit attribute",
|
AmendCommitAttribute: "Amend commit attribute",
|
||||||
AmendCommitAttributeTooltip: "Set/Reset commit author or set co-author.",
|
AmendCommitAttributeTooltip: "Set/Reset commit author or set co-author.",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue