annotate src/po/Make_mvc.mak @ 28835:58d2315b096e v8.2.4941

patch 8.2.4941: '[ and '] marks may be wrong after undo Commit: https://github.com/vim/vim/commit/82444cefa3fef87624a078ea86a72af7ef4ef42e Author: LemonBoy <thatlemon@gmail.com> Date: Thu May 12 15:39:31 2022 +0100 patch 8.2.4941: '[ and '] marks may be wrong after undo Problem: '[ and '] marks may be wrong after undo. Solution: Adjust the '[ and '] marks if needed. (closes https://github.com/vim/vim/issues/10407, closes https://github.com/vim/vim/issues/1281)
author Bram Moolenaar <Bram@vim.org>
date Thu, 12 May 2022 16:45:03 +0200
parents aa91480771fe
children 2fc568b082ef
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 # Makefile for the Vim message translations for MSVC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 # (based on make_ming.mak)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 # Mike Williams <mrw@eandem.co.uk>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 # Please read README_mvc.txt before using this file.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
7374
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
9 !ifndef VIMRUNTIME
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
10 VIMRUNTIME = ..\..\runtime
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
11 !endif
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
12
14181
a36fb263c35e patch 8.1.0108: no Danish translations
Christian Brabandt <cb@256bit.org>
parents: 13802
diff changeset
13 # get LANGUAGES, MOFILES and MOCONVERTED
a36fb263c35e patch 8.1.0108: no Danish translations
Christian Brabandt <cb@256bit.org>
parents: 13802
diff changeset
14 !include Make_all.mak
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 PACKAGE = vim
22071
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
17 VIM = ..\vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
2472
3567e0d56891 Updated version of gettext for use with MVC. (Mike Williams)
Bram Moolenaar <bram@vim.org>
parents: 1698
diff changeset
19 # Correct the following line for the directory where gettext et al is installed
3567e0d56891 Updated version of gettext for use with MVC. (Mike Williams)
Bram Moolenaar <bram@vim.org>
parents: 1698
diff changeset
20 GETTEXT_PATH = H:\gettext.0.14.4\bin
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
7374
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
22 MSGFMT = $(GETTEXT_PATH)\msgfmt -v
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 XGETTEXT = $(GETTEXT_PATH)\xgettext
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 MSGMERGE = $(GETTEXT_PATH)\msgmerge
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 MV = move
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 CP = copy
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 RM = del
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 MKD = mkdir
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 LS = dir
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 LSFLAGS = /b /on /l /s
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 INSTALLDIR = $(VIMRUNTIME)\lang\$(LANGUAGE)\LC_MESSAGES
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 .SUFFIXES:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 .SUFFIXES: .po .mo .pot
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 .po.mo:
7374
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
40 set OLD_PO_FILE_INPUT=yes
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 $(MSGFMT) -o $@ $<
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42
14181
a36fb263c35e patch 8.1.0108: no Danish translations
Christian Brabandt <cb@256bit.org>
parents: 13802
diff changeset
43 all: $(MOFILES) $(MOCONVERTED)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44
22071
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
45 PO_INPUTLIST = \
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
46 ..\*.c \
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
47 ..\if_perl.xs \
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
48 ..\GvimExt\gvimext.cpp \
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
49 ..\errors.h \
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
50 ..\globals.h \
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
51 ..\if_py_both.h \
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
52 ..\vim.h \
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
53 gvim.desktop.in \
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
54 vim.desktop.in
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
55
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
56 PO_VIM_INPUTLIST = \
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
57 ..\..\runtime\optwin.vim
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
58
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
59 PO_VIM_JSLIST = \
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
60 optwin.js
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
61
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
62 files: $(PO_INPUTLIST) $(PO_VIM_INPUTLIST)
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
63 $(LS) $(LSFLAGS) $(PO_INPUTLIST) > .\files
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
64 echo $(PO_VIM_JSLIST)>> .\files
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 first_time: files
22071
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
67 $(VIM) -u NONE --not-a-term -S tojavascript.vim $(LANGUAGE).pot $(PO_VIM_INPUTLIST)
7374
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
68 set OLD_PO_FILE_INPUT=yes
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
69 set OLD_PO_FILE_OUTPUT=yes
13464
cf04dbb33f41 patch 8.0.1606: singular/plural variants not translated
Christian Brabandt <cb@256bit.org>
parents: 12748
diff changeset
70 $(XGETTEXT) --default-domain=$(LANGUAGE) --add-comments --keyword=_ --keyword=N_ --keyword=NGETTEXT:1,2 --files-from=.\files
22071
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
71 $(VIM) -u NONE --not-a-term -S fixfilenames.vim $(LANGUAGE).pot $(PO_VIM_INPUTLIST)
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
72 $(RM) *.js
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73
22071
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
74 $(PACKAGE).pot: files
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
75 $(VIM) -u NONE --not-a-term -S tojavascript.vim $(PACKAGE).pot $(PO_VIM_INPUTLIST)
7374
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
76 set OLD_PO_FILE_INPUT=yes
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
77 set OLD_PO_FILE_OUTPUT=yes
13464
cf04dbb33f41 patch 8.0.1606: singular/plural variants not translated
Christian Brabandt <cb@256bit.org>
parents: 12748
diff changeset
78 $(XGETTEXT) --default-domain=$(PACKAGE) --add-comments --keyword=_ --keyword=N_ --keyword=NGETTEXT:1,2 --files-from=.\files
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 $(MV) $(PACKAGE).po $(PACKAGE).pot
22071
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
80 $(VIM) -u NONE --not-a-term -S fixfilenames.vim $(PACKAGE).pot $(PO_VIM_INPUTLIST)
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
81 $(RM) *.js
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
82
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
83 # Don't add a dependency here, we only want to update the .po files manually
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
84 $(LANGUAGES):
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
85 @$(MAKE) -nologo -f Make_mvc.mak $(PACKAGE).pot GETTEXT_PATH=$(GETTEXT_PATH)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 $(CP) $@.po $@.po.orig
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 $(MV) $@.po $@.po.old
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 $(MSGMERGE) $@.po.old $(PACKAGE).pot -o $@.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 $(RM) $@.po.old
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 install:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 if not exist $(INSTALLDIR) $(MKD) $(INSTALLDIR)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 $(CP) $(LANGUAGE).mo $(INSTALLDIR)\$(PACKAGE).mo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94
7374
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
95 install-all: all
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
96 FOR %%l IN ($(LANGUAGES)) DO @IF NOT EXIST $(VIMRUNTIME)\lang\%%l\LC_MESSAGES $(MKD) $(VIMRUNTIME)\lang\%%l\LC_MESSAGES
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
97 FOR %%l IN ($(LANGUAGES)) DO @$(CP) %%l.mo $(VIMRUNTIME)\lang\%%l\LC_MESSAGES\$(PACKAGE).mo
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
98
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 clean:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 $(RM) *.mo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 $(RM) *.pot
22071
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 14181
diff changeset
102 $(RM) files