diff options
author | Jun T <takimoto-j@kba.biglobe.ne.jp> | 2016-02-17 23:16:25 +0900 |
---|---|---|
committer | Jun T <takimoto-j@kba.biglobe.ne.jp> | 2016-02-23 13:39:56 +0900 |
commit | 1a15cf84c29c984d600f438122edc70be2ac91a1 (patch) | |
tree | 7acabf7830aa3f006d1fe378d6ab332d20d2f76e /src/nvim/os/env.c | |
parent | 498eb020498010c157e453daa8a1f3a518a82ff3 (diff) | |
download | rneovim-1a15cf84c29c984d600f438122edc70be2ac91a1.tar.gz rneovim-1a15cf84c29c984d600f438122edc70be2ac91a1.tar.bz2 rneovim-1a15cf84c29c984d600f438122edc70be2ac91a1.zip |
build: install *.mo into the "standard" directory
Change POROJECT_NAME to 'nvim', and use it as the gettext
domain name. The *.mo files, previously installed as
$runtime/lang/xx/LC_MESSAGES/nvim.mo, are now installed as
$prefix/locale/xx/LC_MESSAGES/nvim.mo.
Diffstat (limited to 'src/nvim/os/env.c')
-rw-r--r-- | src/nvim/os/env.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/os/env.c b/src/nvim/os/env.c index c1804067e9..10f56b520b 100644 --- a/src/nvim/os/env.c +++ b/src/nvim/os/env.c @@ -742,15 +742,15 @@ char_u * home_replace_save(buf_T *buf, char_u *src) FUNC_ATTR_NONNULL_RET void vim_setenv(const char *name, const char *val) { os_setenv(name, val, 1); - /* - * When setting $VIMRUNTIME adjust the directory to find message - * translations to $VIMRUNTIME/lang. - */ +#ifndef LOCALE_INSTALL_DIR + // When setting $VIMRUNTIME adjust the directory to find message + // translations to $VIMRUNTIME/lang. if (*val != NUL && STRICMP(name, "VIMRUNTIME") == 0) { char *buf = (char *)concat_str((char_u *)val, (char_u *)"/lang"); - bindtextdomain(VIMPACKAGE, buf); + bindtextdomain(PROJECT_NAME, buf); xfree(buf); } +#endif } |