From 65b34868dac4bdc99e1144e36d5315b569795fc4 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 10 May 2023 14:47:50 +0100 Subject: patch 9.0.1537: message for opening the cmdline window is not translated Problem: Message for opening the cmdline window is not translated. Solution: Add gettext() and scan the defaults script for text to be translated. (closes #12371) --- src/po/Makefile | 6 ++++-- src/po/tojavascript.vim | 3 ++- src/version.c | 2 ++ 3 files changed, 8 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/po/Makefile b/src/po/Makefile index 9dfbc34e7..fbe474b94 100644 --- a/src/po/Makefile +++ b/src/po/Makefile @@ -204,10 +204,12 @@ PO_INPUTLIST = \ vim.desktop.in PO_VIM_INPUTLIST = \ - ../../runtime/optwin.vim + ../../runtime/optwin.vim \ + ../../runtime/defaults.vim PO_VIM_JSLIST = \ - optwin.js + optwin.js \ + defaults.js $(PACKAGE).pot: $(PO_INPUTLIST) $(PO_VIM_INPUTLIST) # Convert the Vim scripts to (what looks like) Javascript diff --git a/src/po/tojavascript.vim b/src/po/tojavascript.vim index 7868570be..8b0dd736d 100644 --- a/src/po/tojavascript.vim +++ b/src/po/tojavascript.vim @@ -8,8 +8,9 @@ set shortmess+=A for name in argv()[1:] exe 'edit ' .. fnameescape(name) - " Strip comments + " Strip comments, also after :set commands. g/^\s*"/s/.*// + g/^\s*set .*"/s/.*// " Write as .js file, xgettext recognizes them exe 'w! ' .. fnamemodify(name, ":t:r") .. ".js" diff --git a/src/version.c b/src/version.c index c8daf71c8..3a7dcb827 100644 --- a/src/version.c +++ b/src/version.c @@ -695,6 +695,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1537, /**/ 1536, /**/ -- cgit v1.2.1