Skip to content

Commit

Permalink
commands/post-merge: make strings translatable
Browse files Browse the repository at this point in the history
  • Loading branch information
bk2204 committed Jan 18, 2022
1 parent bb01916 commit fab6d83
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions commands/command_post_merge.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package commands
import (
"os"

"github.com/git-lfs/git-lfs/v3/tr"
"github.com/rubyist/tracerx"
"github.com/spf13/cobra"
)
Expand All @@ -13,7 +14,7 @@ import (
// optimising that as best it can based on the available information.
func postMergeCommand(cmd *cobra.Command, args []string) {
if len(args) != 1 {
Print("This should be run through Git's post-merge hook. Run `git lfs update` to install it.")
Print(tr.Tr.Get("This should be run through Git's post-merge hook. Run `git lfs update` to install it."))
os.Exit(1)
}

Expand Down Expand Up @@ -41,7 +42,7 @@ func postMergeCommand(cmd *cobra.Command, args []string) {
// so we have to check the entire repo
err := lockClient.FixAllLockableFileWriteFlags()
if err != nil {
LoggedError(err, "Warning: post-merge locked file check failed: %v", err)
LoggedError(err, tr.Tr.Get("Warning: post-merge locked file check failed: %v", err))
}
}

Expand Down

0 comments on commit fab6d83

Please sign in to comment.