From d772c9f1d446f9566d0c46a1cb76dc63ef31cb21 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Thu, 25 May 2023 21:11:51 +1000 Subject: 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. --- pkg/gui/searching.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pkg/gui/searching.go') 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), -- cgit v1.2.3