From ddae46fba09498dff23a6129680a1bbbfefd10ee Mon Sep 17 00:00:00 2001 From: ite-usagi <77563904+ite-usagi@users.noreply.github.com> Date: Tue, 19 Aug 2025 00:06:21 +0900 Subject: [PATCH] docs(l10n): building translation file #35380 --- BUILD.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/BUILD.md b/BUILD.md index 12da0ef7e1..ba3b521f56 100644 --- a/BUILD.md +++ b/BUILD.md @@ -193,7 +193,12 @@ PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" make CMAKE_B ### Localization build -A normal build will create `.mo` files in `build/src/nvim/po`. +Translations are turned off by default. Enable by building Nvim with the CMake flag `ENABLE_TRANSLATIONS=ON`. +Doing this will create `.mo` files in `build/src/nvim/po`. Example: + +``` +make CMAKE_EXTRA_FLAGS="-DENABLE_TRANSLATIONS=ON" +``` * If you see `msgfmt: command not found`, you need to install [`gettext`](http://en.wikipedia.org/wiki/Gettext). On most systems, the package is just called `gettext`.