annotate src/po/Make_ming.mak @ 20907:4eeda7139133 v8.2.1005

patch 8.2.1005: Vim9: using TRUE/FALSE/MAYBE for ctx_skip is confusing Commit: https://github.com/vim/vim/commit/9b68c82b7ca768100f3eb4223d100c62c5429e53 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jun 18 19:31:08 2020 +0200 patch 8.2.1005: Vim9: using TRUE/FALSE/MAYBE for ctx_skip is confusing Problem: Vim9: using TRUE/FALSE/MAYBE for ctx_skip is confusing. Solution: Use an enum value.
author Bram Moolenaar <Bram@vim.org>
date Thu, 18 Jun 2020 19: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 mingw32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 # Eduardo F. Amatria <eferna1@platea.pntic.mec.es>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 # Read the README_ming.txt file before using it.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 # Use at your own risk but with care, it could even kill your canary.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 # Previous to all you must have the environment variable LANGUAGE set to your
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 # language (xx) and add it to the next three lines.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 PACKAGE = vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 # Uncomment one of the lines below or modify it to put the path to your
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 # gettex binaries; I use the first
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 #GETTEXT_PATH = C:/gettext.win32/bin/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 #GETTEXT_PATH = C:/gettext-0.10.35-w32/win32/Release/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 #GETTEXT_PATH = C:/cygwin/bin/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 MV = move
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 CP = copy
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 RM = del
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 .SUFFIXES:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 .SUFFIXES: .po .mo .pot
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 .PHONY: first_time all install clean $(LANGUAGES)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 .po.mo:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 $(MSGFMT) -o $@ $<
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60
14181
a36fb263c35e patch 8.1.0108: no Danish translations
Christian Brabandt <cb@256bit.org>
parents: 13802
diff changeset
61 all: $(MOFILES) $(MOCONVERTED)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 first_time:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 $(LANGUAGES):
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 $(MV) $(PACKAGE).po $(PACKAGE).pot
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 $(CP) $@.po $@.po.orig
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 $(MV) $@.po $@.po.old
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 $(MSGMERGE) $@.po.old $(PACKAGE).pot -o $@.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 $(RM) $@.po.old
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 install:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 $(MKD) $(VIMRUNTIME)\lang\$(LANGUAGE)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 $(MKD) $(VIMRUNTIME)\lang\$(LANGUAGE)\LC_MESSAGES
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 $(CP) $(LANGUAGE).mo $(VIMRUNTIME)\lang\$(LANGUAGE)\LC_MESSAGES\$(PACKAGE).mo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 clean:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 $(RM) *.mo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 $(RM) *.pot
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98