Skip to content

Commit

Permalink
commands/command_ext.go: translate ext header only
Browse files Browse the repository at this point in the history
In commit 1ddc2f2 of
PR git-lfs#4781 text translation support was added for the
"git lfs ext" command and a multi-line message was
concatenated.  However, the latter part of this text should
be fixed for all users, since it displays a listing of
the extension's settings values using defined terms.

We therefore separate the first line of the message and
let that be translated, as it contains the language-specific
header text.
  • Loading branch information
chrisd8088 committed Jan 30, 2022
1 parent 3a7abac commit a2d8e90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions commands/command_ext.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ func printAllExts() {
}

func printExt(ext config.Extension) {
Print(tr.Tr.Get(`Extension: %s
clean = %s
Print(tr.Tr.Get("Extension: %s", ext.Name))
Print(` clean = %s
smudge = %s
priority = %d`, ext.Name, ext.Clean, ext.Smudge, ext.Priority))
priority = %d`, ext.Clean, ext.Smudge, ext.Priority)
}

func init() {
Expand Down

0 comments on commit a2d8e90

Please sign in to comment.