From ff0f378778f46f9b87f78d68f797a194cf32d6cf Mon Sep 17 00:00:00 2001 From: "brian m. carlson" Date: Mon, 13 Dec 2021 19:59:28 +0000 Subject: [PATCH] commands/untrack: make strings translatable --- commands/command_untrack.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/commands/command_untrack.go b/commands/command_untrack.go index f99e826c..be824e2e 100644 --- a/commands/command_untrack.go +++ b/commands/command_untrack.go @@ -6,6 +6,7 @@ import ( "os" "strings" + "github.com/git-lfs/git-lfs/v3/tr" "github.com/spf13/cobra" ) @@ -17,7 +18,7 @@ func untrackCommand(cmd *cobra.Command, args []string) { installHooks(false) if len(args) < 1 { - Print("git lfs untrack [path]*") + Print(tr.Tr.Get("git lfs untrack [path]*")) return } @@ -30,7 +31,7 @@ func untrackCommand(cmd *cobra.Command, args []string) { attributesFile, err := os.Create(".gitattributes") if err != nil { - Print("Error opening .gitattributes for writing") + Print(tr.Tr.Get("Error opening .gitattributes for writing")) return } defer attributesFile.Close() @@ -48,7 +49,7 @@ func untrackCommand(cmd *cobra.Command, args []string) { path := strings.Fields(line)[0] if removePath(path, args) { - Print("Untracking %q", unescapeAttrPattern(path)) + Print(tr.Tr.Get("Untracking %q", unescapeAttrPattern(path))) } else { attributesFile.WriteString(line + "\n") }