mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 10:58:16 +00:00
docs(l10n): building translation file #35380
This commit is contained in:
7
BUILD.md
7
BUILD.md
@@ -193,7 +193,12 @@ PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" make CMAKE_B
|
|||||||
|
|
||||||
### Localization build
|
### 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`.
|
* 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`.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user