diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2023-05-25 21:11:51 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2023-05-25 23:52:19 +1000 |
commit | d772c9f1d446f9566d0c46a1cb76dc63ef31cb21 (patch) | |
tree | c5d3208eb325241bb34816ee2a363bdba0adcf37 /pkg/gui/searching.go | |
parent | e5534d9781d3e19fb2f2b3c86b737bddf914d405 (diff) |
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.
Diffstat (limited to 'pkg/gui/searching.go')
-rw-r--r-- | pkg/gui/searching.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/gui/searching.go b/pkg/gui/searching.go index 270fe1efd..21a07c4c2 100644 --- a/pkg/gui/searching.go +++ b/pkg/gui/searching.go @@ -51,9 +51,9 @@ func (gui *Gui) onSelectItemWrapper(innerFunc func(int) error) func(int, int, in gui.c.SetViewContent( gui.Views.Search, fmt.Sprintf( - "no matches for '%s' %s", + gui.Tr.NoMatchesFor, gui.State.Searching.searchString, - theme.OptionsFgColor.Sprintf("%s: exit search mode", keybindings.Label(keybindingConfig.Universal.Return)), + theme.OptionsFgColor.Sprintf(gui.Tr.ExitSearchMode, keybindings.Label(keybindingConfig.Universal.Return)), ), ) return nil @@ -61,12 +61,12 @@ func (gui *Gui) onSelectItemWrapper(innerFunc func(int) error) func(int, int, in gui.c.SetViewContent( gui.Views.Search, fmt.Sprintf( - "matches for '%s' (%d of %d) %s", + gui.Tr.MatchesFor, gui.State.Searching.searchString, index+1, total, theme.OptionsFgColor.Sprintf( - "%s: next match, %s: previous match, %s: exit search mode", + gui.Tr.SearchKeybindings, keybindings.Label(keybindingConfig.Universal.NextMatch), keybindings.Label(keybindingConfig.Universal.PrevMatch), keybindings.Label(keybindingConfig.Universal.Return), |