mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-12 12:55:47 +02:00
Use sentence case everywhere
We have not been good at consistent casing so far. Now we use 'Sentence case' everywhere. EVERYWHERE. Also Removing 'Lc' prefix from i18n field names: the 'Lc' stood for lowercase but now that everything is in 'Sentence case' there's no need for the distinction. I've got a couple lower case things I've kept: namely, things that show up in parentheses.
This commit is contained in:
parent
e5534d9781
commit
d772c9f1d4
143 changed files with 2691 additions and 2683 deletions
|
@ -14,13 +14,13 @@ func (self *FilesController) createResetMenu() error {
|
|||
|
||||
nukeStr := "git reset --hard HEAD && git clean -fd"
|
||||
if len(self.c.Model().Submodules) > 0 {
|
||||
nukeStr = fmt.Sprintf("%s (%s)", nukeStr, self.c.Tr.LcAndResetSubmodules)
|
||||
nukeStr = fmt.Sprintf("%s (%s)", nukeStr, self.c.Tr.AndResetSubmodules)
|
||||
}
|
||||
|
||||
menuItems := []*types.MenuItem{
|
||||
{
|
||||
LabelColumns: []string{
|
||||
self.c.Tr.LcDiscardAllChangesToAllFiles,
|
||||
self.c.Tr.DiscardAllChangesToAllFiles,
|
||||
red.Sprint(nukeStr),
|
||||
},
|
||||
OnPress: func() error {
|
||||
|
@ -36,7 +36,7 @@ func (self *FilesController) createResetMenu() error {
|
|||
},
|
||||
{
|
||||
LabelColumns: []string{
|
||||
self.c.Tr.LcDiscardAnyUnstagedChanges,
|
||||
self.c.Tr.DiscardAnyUnstagedChanges,
|
||||
red.Sprint("git checkout -- ."),
|
||||
},
|
||||
OnPress: func() error {
|
||||
|
@ -51,7 +51,7 @@ func (self *FilesController) createResetMenu() error {
|
|||
},
|
||||
{
|
||||
LabelColumns: []string{
|
||||
self.c.Tr.LcDiscardUntrackedFiles,
|
||||
self.c.Tr.DiscardUntrackedFiles,
|
||||
red.Sprint("git clean -fd"),
|
||||
},
|
||||
OnPress: func() error {
|
||||
|
@ -66,7 +66,7 @@ func (self *FilesController) createResetMenu() error {
|
|||
},
|
||||
{
|
||||
LabelColumns: []string{
|
||||
self.c.Tr.LcDiscardStagedChanges,
|
||||
self.c.Tr.DiscardStagedChanges,
|
||||
red.Sprint("stash staged and drop stash"),
|
||||
},
|
||||
Tooltip: self.c.Tr.DiscardStagedChangesDescription,
|
||||
|
@ -88,7 +88,7 @@ func (self *FilesController) createResetMenu() error {
|
|||
},
|
||||
{
|
||||
LabelColumns: []string{
|
||||
self.c.Tr.LcSoftReset,
|
||||
self.c.Tr.SoftReset,
|
||||
red.Sprint("git reset --soft HEAD"),
|
||||
},
|
||||
OnPress: func() error {
|
||||
|
@ -118,7 +118,7 @@ func (self *FilesController) createResetMenu() error {
|
|||
},
|
||||
{
|
||||
LabelColumns: []string{
|
||||
self.c.Tr.LcHardReset,
|
||||
self.c.Tr.HardReset,
|
||||
red.Sprint("git reset --hard HEAD"),
|
||||
},
|
||||
OnPress: func() error {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue