git-lfs/lfshttp
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
..
standalone use backticks around commands in messages 2022-01-29 22:35:10 -08:00
body.go lfsapi: extract new lfshttp package 2018-09-11 14:51:29 -07:00
certs_darwin.go Set package version to v3 2021-09-02 20:41:08 +00:00
certs_nix.go Update formatting for Go 1.17 2021-08-17 20:24:58 +02:00
certs_test.go Set package version to v3 2021-09-02 20:41:08 +00:00
certs_windows.go lfsapi: extract new lfshttp package 2018-09-11 14:51:29 -07:00
certs.go Set package version to v3 2021-09-02 20:41:08 +00:00
client_test.go commands,lfs{api,http}: uppercase HTTP in messages 2022-01-29 22:25:07 -08:00
client.go avoid extra message format parsing where possible 2022-01-29 22:32:58 -08:00
cookies.go Set package version to v3 2021-09-02 20:41:08 +00:00
endpoint.go Set package version to v3 2021-09-02 20:41:08 +00:00
errors.go make additional message strings translatable 2022-01-29 22:36:19 -08:00
lfshttp.go avoid extra message format parsing where possible 2022-01-29 22:32:58 -08:00
proxy_test.go lfshttp/proxy: consider scheme of request URL when choosing proxy 2021-02-03 20:27:39 +00:00
proxy.go Set package version to v3 2021-09-02 20:41:08 +00:00
retries_test.go lfsapi: extract new lfshttp package 2018-09-11 14:51:29 -07:00
retries.go lfsapi: extract new lfshttp package 2018-09-11 14:51:29 -07:00
ssh_test.go Set package version to v3 2021-09-02 20:41:08 +00:00
ssh.go Set package version to v3 2021-09-02 20:41:08 +00:00
stats_test.go lfsapi: extract new lfshttp package 2018-09-11 14:51:29 -07:00
stats.go Set package version to v3 2021-09-02 20:41:08 +00:00
verbose_test.go lfsapi: extract new lfshttp package 2018-09-11 14:51:29 -07:00
verbose.go revise some informational and error messages 2022-01-29 22:10:48 -08:00