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.
This commit is contained in:
Jeffrey C. Ollie
2025-07-08 22:17:20 -05:00
parent f0549e182e
commit 13805f7cc5

View File

@ -156,7 +156,7 @@ fn createUpdateStep(b: *std.Build) !*std.Build.Step {
); );
inline for (internal_os.i18n.locales) |locale| { 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(b.path("po/" ++ locale ++ ".po"));
msgmerge.addFileArg(xgettext.captureStdOut()); msgmerge.addFileArg(xgettext.captureStdOut());
usf.addCopyFileToSource(msgmerge.captureStdOut(), "po/" ++ locale ++ ".po"); usf.addCopyFileToSource(msgmerge.captureStdOut(), "po/" ++ locale ++ ".po");