Mercurial > vim
changeset 20162:7196cd9d8397 v8.2.0636
patch 8.2.0636: :messages does not show the maintainer when $LANG is unset
Commit: https://github.com/vim/vim/commit/41f6918bf4545de6a80c96d8c80f5f509f9a647f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Apr 25 15:45:37 2020 +0200
patch 8.2.0636: :messages does not show the maintainer when $LANG is unset
Problem: :messages does not show the maintainer when $LANG is unset.
Solution: Call get_mess_lang() if available. (closes https://github.com/vim/vim/issues/5978)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 25 Apr 2020 16:00:03 +0200 |
parents | 62b955723f46 |
children | d7e064056b24 |
files | src/message.c src/version.c |
diffstat | 2 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/message.c +++ b/src/message.c @@ -1035,7 +1035,11 @@ ex_messages(exarg_T *eap) if (p == first_msg_hist) { +#ifdef FEAT_MULTI_LANG + s = get_mess_lang(); +#else s = mch_getenv((char_u *)"LANG"); +#endif if (s != NULL && *s != NUL) // The next comment is extracted by xgettext and put in po file for // translators to read.