Mercurial > vim
annotate src/po/Make_ming.mak @ 20673:0ebd431a2256 v8.2.0890
patch 8.2.0890: no color in terminal window when 'termguicolor' is set
Commit: https://github.com/vim/vim/commit/1e5f8f6d65b2ecff3d93d9fdbdd17c7a2ab9cc3d
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jun 2 23:18:24 2020 +0200
patch 8.2.0890: no color in terminal window when 'termguicolor' is set
Problem: No color in terminal window when 'termguicolor' is set.
Solution: Clear the underline color. (closes https://github.com/vim/vim/issues/6186)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 02 Jun 2020 23:30:04 +0200 |
parents | a36fb263c35e |
children | aa91480771fe |
rev | line source |
---|---|
7 | 1 # Makefile for the Vim message translations for mingw32 |
2 # | |
3 # Eduardo F. Amatria <eferna1@platea.pntic.mec.es> | |
4 # | |
5 # Read the README_ming.txt file before using it. | |
6 # | |
7 # Use at your own risk but with care, it could even kill your canary. | |
8 # | |
9 # Previous to all you must have the environment variable LANGUAGE set to your | |
10 # language (xx) and add it to the next three lines. | |
11 # | |
12 | |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
13 ifndef VIMRUNTIME |
12748
f48a1c8c5961
patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents:
7374
diff
changeset
|
14 ifeq (sh.exe, $(SHELL)) |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
15 VIMRUNTIME = ..\..\runtime |
12748
f48a1c8c5961
patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents:
7374
diff
changeset
|
16 else |
f48a1c8c5961
patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents:
7374
diff
changeset
|
17 VIMRUNTIME = ../../runtime |
f48a1c8c5961
patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents:
7374
diff
changeset
|
18 endif |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
19 endif |
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
20 |
14181
a36fb263c35e
patch 8.1.0108: no Danish translations
Christian Brabandt <cb@256bit.org>
parents:
13802
diff
changeset
|
21 # get LANGUAGES, MOFILES and MOCONVERTED |
a36fb263c35e
patch 8.1.0108: no Danish translations
Christian Brabandt <cb@256bit.org>
parents:
13802
diff
changeset
|
22 include Make_all.mak |
7 | 23 |
24 PACKAGE = vim | |
25 | |
26 # Uncomment one of the lines below or modify it to put the path to your | |
27 # gettex binaries; I use the first | |
28 #GETTEXT_PATH = C:/gettext.win32/bin/ | |
29 #GETTEXT_PATH = C:/gettext-0.10.35-w32/win32/Release/ | |
30 #GETTEXT_PATH = C:/cygwin/bin/ | |
31 | |
12748
f48a1c8c5961
patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents:
7374
diff
changeset
|
32 ifeq (sh.exe, $(SHELL)) |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
33 MSGFMT = set OLD_PO_FILE_INPUT=yes && $(GETTEXT_PATH)msgfmt -v |
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
34 XGETTEXT = set OLD_PO_FILE_INPUT=yes && set OLD_PO_FILE_OUTPUT=yes && $(GETTEXT_PATH)xgettext |
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
35 MSGMERGE = set OLD_PO_FILE_INPUT=yes && set OLD_PO_FILE_OUTPUT=yes && $(GETTEXT_PATH)msgmerge |
12748
f48a1c8c5961
patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents:
7374
diff
changeset
|
36 else |
f48a1c8c5961
patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents:
7374
diff
changeset
|
37 MSGFMT = LANG=C OLD_PO_FILE_INPUT=yes $(GETTEXT_PATH)msgfmt -v |
f48a1c8c5961
patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents:
7374
diff
changeset
|
38 XGETTEXT = LANG=C OLD_PO_FILE_INPUT=yes OLD_PO_FILE_OUTPUT=yes $(GETTEXT_PATH)xgettext |
f48a1c8c5961
patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents:
7374
diff
changeset
|
39 MSGMERGE = LANG=C OLD_PO_FILE_INPUT=yes OLD_PO_FILE_OUTPUT=yes $(GETTEXT_PATH)msgmerge |
f48a1c8c5961
patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents:
7374
diff
changeset
|
40 endif |
7 | 41 |
12748
f48a1c8c5961
patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents:
7374
diff
changeset
|
42 ifeq (sh.exe, $(SHELL)) |
7 | 43 MV = move |
44 CP = copy | |
45 RM = del | |
46 MKD = mkdir | |
12748
f48a1c8c5961
patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents:
7374
diff
changeset
|
47 else |
f48a1c8c5961
patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents:
7374
diff
changeset
|
48 MV = mv -f |
f48a1c8c5961
patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents:
7374
diff
changeset
|
49 CP = cp -f |
f48a1c8c5961
patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents:
7374
diff
changeset
|
50 RM = rm -f |
f48a1c8c5961
patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents:
7374
diff
changeset
|
51 MKD = mkdir -p |
f48a1c8c5961
patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents:
7374
diff
changeset
|
52 endif |
7 | 53 |
54 .SUFFIXES: | |
55 .SUFFIXES: .po .mo .pot | |
56 .PHONY: first_time all install clean $(LANGUAGES) | |
57 | |
58 .po.mo: | |
59 $(MSGFMT) -o $@ $< | |
60 | |
14181
a36fb263c35e
patch 8.1.0108: no Danish translations
Christian Brabandt <cb@256bit.org>
parents:
13802
diff
changeset
|
61 all: $(MOFILES) $(MOCONVERTED) |
7 | 62 |
63 first_time: | |
64 $(XGETTEXT) --default-domain=$(LANGUAGE) \ | |
13802
378f9f8e6d8f
patch 8.0.1773: dialog messages are not translated
Christian Brabandt <cb@256bit.org>
parents:
13735
diff
changeset
|
65 --add-comments --keyword=_ --keyword=N_ --keyword=NGETTEXT:1,2 $(wildcard ../*.c) ../if_perl.xs ../GvimExt/gvimext.cpp $(wildcard ../globals.h) ../if_py_both.h ../vim.h |
7 | 66 |
67 $(LANGUAGES): | |
68 $(XGETTEXT) --default-domain=$(PACKAGE) \ | |
13802
378f9f8e6d8f
patch 8.0.1773: dialog messages are not translated
Christian Brabandt <cb@256bit.org>
parents:
13735
diff
changeset
|
69 --add-comments --keyword=_ --keyword=N_ --keyword=NGETTEXT:1,2 $(wildcard ../*.c) ../if_perl.xs ../GvimExt/gvimext.cpp $(wildcard ../globals.h) ../if_py_both.h ../vim.h |
7 | 70 $(MV) $(PACKAGE).po $(PACKAGE).pot |
71 $(CP) $@.po $@.po.orig | |
72 $(MV) $@.po $@.po.old | |
73 $(MSGMERGE) $@.po.old $(PACKAGE).pot -o $@.po | |
74 $(RM) $@.po.old | |
75 | |
76 install: | |
77 $(MKD) $(VIMRUNTIME)\lang\$(LANGUAGE) | |
78 $(MKD) $(VIMRUNTIME)\lang\$(LANGUAGE)\LC_MESSAGES | |
79 $(CP) $(LANGUAGE).mo $(VIMRUNTIME)\lang\$(LANGUAGE)\LC_MESSAGES\$(PACKAGE).mo | |
80 | |
12748
f48a1c8c5961
patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents:
7374
diff
changeset
|
81 ifeq (sh.exe, $(SHELL)) |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
82 install-all: all |
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
83 FOR %%l IN ($(LANGUAGES)) DO @IF NOT EXIST $(VIMRUNTIME)\lang\%%l $(MKD) $(VIMRUNTIME)\lang\%%l |
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
84 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:
1698
diff
changeset
|
85 FOR %%l IN ($(LANGUAGES)) DO @$(CP) %%l.mo $(VIMRUNTIME)\lang\%%l\LC_MESSAGES\$(PACKAGE).mo |
12748
f48a1c8c5961
patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents:
7374
diff
changeset
|
86 else |
f48a1c8c5961
patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents:
7374
diff
changeset
|
87 install-all: all |
f48a1c8c5961
patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents:
7374
diff
changeset
|
88 for TARGET in $(LANGUAGES); do \ |
f48a1c8c5961
patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents:
7374
diff
changeset
|
89 $(MKD) $(VIMRUNTIME)/lang/$$TARGET/LC_MESSAGES ; \ |
f48a1c8c5961
patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents:
7374
diff
changeset
|
90 $(CP) $$TARGET.mo $(VIMRUNTIME)/lang/$$TARGET/LC_MESSAGES/$(PACKAGE).mo ; \ |
f48a1c8c5961
patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents:
7374
diff
changeset
|
91 done |
f48a1c8c5961
patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents:
7374
diff
changeset
|
92 endif |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
93 |
7 | 94 clean: |
95 $(RM) *.mo | |
96 $(RM) *.pot | |
97 | |
98 |