Mercurial > vim
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 |
rev | line source |
---|---|
7 | 1 # Makefile for the Vim message translations for MSVC |
2 # (based on make_ming.mak) | |
3 # | |
4 # Mike Williams <mrw@eandem.co.uk> | |
5 # | |
6 # Please read README_mvc.txt before using this file. | |
7 # | |
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 | 15 |
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 | 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 | 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 | 23 XGETTEXT = $(GETTEXT_PATH)\xgettext |
24 MSGMERGE = $(GETTEXT_PATH)\msgmerge | |
25 | |
26 MV = move | |
27 CP = copy | |
28 RM = del | |
29 MKD = mkdir | |
30 LS = dir | |
31 | |
32 LSFLAGS = /b /on /l /s | |
33 | |
34 INSTALLDIR = $(VIMRUNTIME)\lang\$(LANGUAGE)\LC_MESSAGES | |
35 | |
36 .SUFFIXES: | |
37 .SUFFIXES: .po .mo .pot | |
38 | |
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 | 41 $(MSGFMT) -o $@ $< |
42 | |
14181
a36fb263c35e
patch 8.1.0108: no Danish translations
Christian Brabandt <cb@256bit.org>
parents:
13802
diff
changeset
|
43 all: $(MOFILES) $(MOCONVERTED) |
7 | 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 | 65 |
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 | 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 | 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 | 86 $(CP) $@.po $@.po.orig |
87 $(MV) $@.po $@.po.old | |
88 $(MSGMERGE) $@.po.old $(PACKAGE).pot -o $@.po | |
89 $(RM) $@.po.old | |
90 | |
91 install: | |
92 if not exist $(INSTALLDIR) $(MKD) $(INSTALLDIR) | |
93 $(CP) $(LANGUAGE).mo $(INSTALLDIR)\$(PACKAGE).mo | |
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 | 99 clean: |
100 $(RM) *.mo | |
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 |