aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/env.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-02-26 10:24:48 -0500
committerJustin M. Keyes <justinkz@gmail.com>2016-02-26 10:24:48 -0500
commit23f8696317143da03c3cd3688478b32b6912a351 (patch)
treefac5c14a25344630aff866b3caef8137084b4961 /src/nvim/os/env.c
parentbb56564900b600a6c19acffa950615eb87dba42e (diff)
parent1a15cf84c29c984d600f438122edc70be2ac91a1 (diff)
downloadrneovim-23f8696317143da03c3cd3688478b32b6912a351.tar.gz
rneovim-23f8696317143da03c3cd3688478b32b6912a351.tar.bz2
rneovim-23f8696317143da03c3cd3688478b32b6912a351.zip
Merge pull request #4277 from Jun-T/lang2locale
build: install *.mo into the "standard" directory
Diffstat (limited to 'src/nvim/os/env.c')
-rw-r--r--src/nvim/os/env.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/os/env.c b/src/nvim/os/env.c
index 41ce8ddbc2..384a17004e 100644
--- a/src/nvim/os/env.c
+++ b/src/nvim/os/env.c
@@ -759,15 +759,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
}