From: Jeff Hostetler via GitGitGadget Date: Fri, 11 Mar 2022 21:15:00 GMT Subject: [PATCH 13/16] compat/fsmonitor/fsm-listen-win32: add _() to calls to error() Message-ID: In-Reply-To: From: Jeff Hostetler fixup! compat/fsmonitor/fsm-listen-win32: implement FSMonitor backend \ on Windows Signed-off-by: Jeff Hostetler --- compat/fsmonitor/fsm-listen-win32.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compat/fsmonitor/fsm-listen-win32.c b/compat/fsmonitor/fsm-listen-win32.c index c2d11acbc1e..5b928ab66e5 100644 --- a/compat/fsmonitor/fsm-listen-win32.c +++ b/compat/fsmonitor/fsm-listen-win32.c @@ -82,7 +82,7 @@ static int normalize_path_in_utf8(FILE_NOTIFY_INFORMATION *info, if (len > 0) goto normalize; if (GetLastError() != ERROR_INSUFFICIENT_BUFFER) { - error("[GLE %ld] could not convert path to UTF-8: '%.*ls'", + error(_("[GLE %ld] could not convert path to UTF-8: '%.*ls'"), GetLastError(), (int)(info->FileNameLength / sizeof(WCHAR)), info->FileName); @@ -185,7 +185,7 @@ static int start_rdcw_watch(struct fsmonitor_daemon_backend_data *data, if (watch->is_active) return 0; - error("ReadDirectoryChangedW failed on '%s' [GLE %ld]", + error(_("ReadDirectoryChangedW failed on '%s' [GLE %ld]"), watch->path.buf, GetLastError()); return -1; } @@ -228,7 +228,7 @@ static int recv_rdcw_watch(struct one_watch *watch) * sure it is worth it. */ - error("GetOverlappedResult failed on '%s' [GLE %ld]", + error(_("GetOverlappedResult failed on '%s' [GLE %ld]"), watch->path.buf, gle); return -1; } -- gitgitgadget