From 13805f7cc5d2169ab7d6943efe9b659249f52d85 Mon Sep 17 00:00:00 2001 From: "Jeffrey C. Ollie" Date: Tue, 8 Jul 2025 22:17:20 -0500 Subject: [PATCH] build: disable fuzzy matching for msgmerge CI is currently configured to fail if there are any fuzzy matches in translation files. This change prevents `msgmerge` from creating any fuzzy matches when translations are updated. --- src/build/GhosttyI18n.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/build/GhosttyI18n.zig b/src/build/GhosttyI18n.zig index 778cfabc5..9dcc67a31 100644 --- a/src/build/GhosttyI18n.zig +++ b/src/build/GhosttyI18n.zig @@ -156,7 +156,7 @@ fn createUpdateStep(b: *std.Build) !*std.Build.Step { ); inline for (internal_os.i18n.locales) |locale| { - const msgmerge = b.addSystemCommand(&.{ "msgmerge", "-q" }); + const msgmerge = b.addSystemCommand(&.{ "msgmerge", "--quiet", "--no-fuzzy-matching" }); msgmerge.addFileArg(b.path("po/" ++ locale ++ ".po")); msgmerge.addFileArg(xgettext.captureStdOut()); usf.addCopyFileToSource(msgmerge.captureStdOut(), "po/" ++ locale ++ ".po");