diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-02-26 10:24:48 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-02-26 10:24:48 -0500 |
commit | 23f8696317143da03c3cd3688478b32b6912a351 (patch) | |
tree | fac5c14a25344630aff866b3caef8137084b4961 /src/nvim/main.c | |
parent | bb56564900b600a6c19acffa950615eb87dba42e (diff) | |
parent | 1a15cf84c29c984d600f438122edc70be2ac91a1 (diff) | |
download | rneovim-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/main.c')
-rw-r--r-- | src/nvim/main.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/nvim/main.c b/src/nvim/main.c index d3cdfe3edf..a2aca65001 100644 --- a/src/nvim/main.c +++ b/src/nvim/main.c @@ -657,6 +657,9 @@ static void init_locale(void) setlocale(LC_NUMERIC, "C"); # endif +# ifdef LOCALE_INSTALL_DIR // gnu/linux standard: $prefix/share/locale + bindtextdomain(PROJECT_NAME, LOCALE_INSTALL_DIR); +# else // old vim style: $runtime/lang { char_u *p; @@ -665,11 +668,12 @@ static void init_locale(void) p = (char_u *)vim_getenv("VIMRUNTIME"); if (p != NULL && *p != NUL) { vim_snprintf((char *)NameBuff, MAXPATHL, "%s/lang", p); - bindtextdomain(VIMPACKAGE, (char *)NameBuff); + bindtextdomain(PROJECT_NAME, (char *)NameBuff); } xfree(p); - textdomain(VIMPACKAGE); } +# endif + textdomain(PROJECT_NAME); TIME_MSG("locale set"); } #endif |