git-lfs/tasklog
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
..
list_task_test.go tlog,tasklog: rename package 'tlog' to 'task' 2017-11-22 14:07:24 -08:00
list_task.go tasklog/log.go: print "done" messages with a trailing period 2019-08-23 17:04:37 -04:00
log_test.go tasklog/log.go: print "done" messages with a trailing period 2019-08-23 17:04:37 -04:00
log.go tasklog/log.go: print "done" messages with a trailing period 2019-08-23 17:04:37 -04:00
percentage_task_test.go tasklog: un-t.Skip() TestPercentageTaskCalculatesPercentWithoutTotal 2017-12-04 12:01:17 -08:00
percentage_task.go make additional message strings translatable 2022-01-29 22:36:19 -08:00
simple_task_test.go tasklog: update tests 2017-12-01 14:29:08 -08:00
simple_task.go tasklog/simple_task: wait for call to OnComplete 2017-12-01 14:23:47 -08:00
task.go tlog,tasklog: rename package 'tlog' to 'task' 2017-11-22 14:07:24 -08:00
waiting_task_test.go tlog,tasklog: rename package 'tlog' to 'task' 2017-11-22 14:07:24 -08:00
waiting_task.go tlog,tasklog: rename package 'tlog' to 'task' 2017-11-22 14:07:24 -08:00