[PATCH 15/16] fsmonitor--daemon: add _() to calls to error()
From: Jeff Hostetler <jeffhost@microsoft.com>
fixup! fsmonitor--daemon: implement 'start' command
Fixup translation on die().
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
---
builtin/fsmonitor--daemon.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/builtin/fsmonitor--daemon.c b/builtin/fsmonitor--daemon.c
index b3687a200ef..a30ecf6cfac 100644
--- a/builtin/fsmonitor--daemon.c
+++ b/builtin/fsmonitor--daemon.c
@@ -1381,7 +1381,7 @@ static int try_to_start_background_daemon(void)
* immediately exited).
*/
if (fsmonitor_ipc__get_state() == IPC_STATE__LISTENING)
- die("fsmonitor--daemon is already running '%s'",
+ die(_("fsmonitor--daemon is already running '%s'"),
the_repository->worktree);
if (fsmonitor__announce_startup) {
@@ -1411,13 +1411,13 @@ static int try_to_start_background_daemon(void)
default:
case SBGR_ERROR:
case SBGR_CB_ERROR:
- return error("daemon failed to start");
+ return error(_("daemon failed to start"));
case SBGR_TIMEOUT:
- return error("daemon not online yet");
+ return error(_("daemon not online yet"));
case SBGR_DIED:
- return error("daemon terminated");
+ return error(_("daemon terminated"));
}
}
--
gitgitgadget