docs(l10n): building translation file #35380

This commit is contained in:
ite-usagi
2025-08-19 00:06:21 +09:00
committed by GitHub
parent 1b2a6e0664
commit ddae46fba0

View File

@@ -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`.