annotate src/po/Make_mvc.mak @ 20935:d64520bfafa0 v8.2.1019

patch 8.2.1019: mapping <M-S-a> does not work in the GUI Commit: https://github.com/vim/vim/commit/ef6746f637adbdb6860b4fa0266c43c49fa498bc Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jun 20 14:43:23 2020 +0200 patch 8.2.1019: mapping <M-S-a> does not work in the GUI Problem: Mapping <M-S-a> does not work in the GUI. Solution: Move the logic to remove the shift modifier to may_remove_shift_modifier() and also use it in the GUI.
author Bram Moolenaar <Bram@vim.org>
date Sat, 20 Jun 2020 14:45:03 +0200
parents a36fb263c35e
children aa91480771fe
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
2472
3567e0d56891 Updated version of gettext for use with MVC. (Mike Williams)
Bram Moolenaar <bram@vim.org>
parents: 1698
diff changeset
18 # 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
19 GETTEXT_PATH = H:\gettext.0.14.4\bin
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
7374
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
21 MSGFMT = $(GETTEXT_PATH)\msgfmt -v
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 XGETTEXT = $(GETTEXT_PATH)\xgettext
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 MSGMERGE = $(GETTEXT_PATH)\msgmerge
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 MV = move
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 CP = copy
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 RM = del
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 MKD = mkdir
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 LS = dir
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 LSFLAGS = /b /on /l /s
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 INSTALLDIR = $(VIMRUNTIME)\lang\$(LANGUAGE)\LC_MESSAGES
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 .SUFFIXES:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 .SUFFIXES: .po .mo .pot
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 .po.mo:
7374
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
39 set OLD_PO_FILE_INPUT=yes
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 $(MSGFMT) -o $@ $<
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41
14181
a36fb263c35e patch 8.1.0108: no Danish translations
Christian Brabandt <cb@256bit.org>
parents: 13802
diff changeset
42 all: $(MOFILES) $(MOCONVERTED)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 files:
13802
378f9f8e6d8f patch 8.0.1773: dialog messages are not translated
Christian Brabandt <cb@256bit.org>
parents: 13735
diff changeset
45 $(LS) $(LSFLAGS) ..\*.c ..\if_perl.xs ..\GvimExt\gvimext.cpp ..\globals.h ..\if_py_both.h ..\vim.h > .\files
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 first_time: files
7374
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
48 set OLD_PO_FILE_INPUT=yes
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
49 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
50 $(XGETTEXT) --default-domain=$(LANGUAGE) --add-comments --keyword=_ --keyword=N_ --keyword=NGETTEXT:1,2 --files-from=.\files
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 $(LANGUAGES): files
7374
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
53 set OLD_PO_FILE_INPUT=yes
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
54 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
55 $(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
56 $(MV) $(PACKAGE).po $(PACKAGE).pot
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 $(CP) $@.po $@.po.orig
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 $(MV) $@.po $@.po.old
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 $(MSGMERGE) $@.po.old $(PACKAGE).pot -o $@.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 $(RM) $@.po.old
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 install:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 if not exist $(INSTALLDIR) $(MKD) $(INSTALLDIR)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 $(CP) $(LANGUAGE).mo $(INSTALLDIR)\$(PACKAGE).mo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65
7374
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
66 install-all: all
7e367104f6b6 commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents: 2472
diff changeset
67 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
68 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
69
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 clean:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 $(RM) *.mo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 $(RM) *.pot