git-lfs/creds
Chris Darroch 04abbd8436 make additional message strings translatable
Following on from the changes in PR #4781, we can make
additional message strings translatable using the
tr.Tr.Get() method.

Because this method performs printf(3)-style format string
parsing and interpolation, we can simplify some of the
surrounding calls, e.g., from fmt.Errorf() to errors.New(),
and from fmt.Fprintf() to fmt.Fprintln().  This ensures
that if either the translated text or any interpolated
arguments happen to contain character sequences that would
be interpreted as Go format specifiers (e.g., "%s" or "%d"),
these will not result in warnings such as "%!s(MISSING)"
in the output text.

Note also that we try to remove newlines from the message
strings were possible and change the surrounding calls to
append them instead, e.g., with fmt.Fprintln().
2022-01-29 22:36:19 -08:00
..
access.go Fall back from Negotiate to Basic 2022-01-20 13:57:32 +00:00
creds_nix.go Update formatting for Go 1.17 2021-08-17 20:24:58 +02:00
creds_test.go Move credential handling to its own package 2018-09-24 15:09:22 +00:00
creds_windows.go Update formatting for Go 1.17 2021-08-17 20:24:58 +02:00
creds.go make additional message strings translatable 2022-01-29 22:36:19 -08:00
netrc_test.go netrc: consider same machine may have different login names 2021-11-04 17:31:37 +08:00
netrc.go netrc: consider same machine may have different login names 2021-11-04 17:31:37 +08:00