Mercurial > vim
annotate src/po/Make_ming.mak @ 14168:9efe9dec796a
Added tag v8.1.0101 for changeset 3ca818b65cde2cea4833e9bd7dcfacf570d7f090
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 23 Jun 2018 15:00:06 +0200 |
parents | 378f9f8e6d8f |
children | a36fb263c35e |
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 |
434 | 21 LANGUAGES = \ |
22 af \ | |
23 ca \ | |
24 cs \ | |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
25 cs.cp1250 \ |
434 | 26 de \ |
27 en_GB \ | |
1621 | 28 eo \ |
434 | 29 es \ |
1621 | 30 fi \ |
434 | 31 fr \ |
32 ga \ | |
33 it \ | |
34 ja \ | |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
35 ja.euc-jp \ |
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
36 ja.sjis \ |
434 | 37 ko \ |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
38 ko.UTF-8 \ |
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
39 nb \ |
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
40 nl \ |
434 | 41 no \ |
42 pl \ | |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
43 pl.cp1250 \ |
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
44 pl.UTF-8 \ |
1698 | 45 pt_BR \ |
434 | 46 ru \ |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
47 ru.cp1251 \ |
434 | 48 sk \ |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
49 sk.cp1250 \ |
13735 | 50 sr \ |
434 | 51 sv \ |
52 uk \ | |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
53 uk.cp1251 \ |
434 | 54 vi \ |
55 zh_CN \ | |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
56 zh_CN.cp936 \ |
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
57 zh_CN.UTF-8 \ |
434 | 58 zh_TW \ |
59 zh_TW.UTF-8 \ | |
60 | |
61 MOFILES = \ | |
62 af.mo \ | |
63 ca.mo \ | |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
64 cs.cp1250.mo \ |
434 | 65 cs.mo \ |
66 de.mo \ | |
67 en_GB.mo \ | |
1621 | 68 eo.mo \ |
434 | 69 es.mo \ |
1621 | 70 fi.mo \ |
434 | 71 fr.mo \ |
72 ga.mo \ | |
73 it.mo \ | |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
74 ja.euc-jp.mo \ |
434 | 75 ja.mo \ |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
76 ja.sjis.mo \ |
434 | 77 ko.mo \ |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
78 ko.UTF-8.mo \ |
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
79 nb.mo \ |
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
80 nl.mo \ |
434 | 81 no.mo \ |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
82 pl.cp1250.mo \ |
434 | 83 pl.mo \ |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
84 pl.UTF-8.mo \ |
1698 | 85 pt_BR.mo \ |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
86 ru.cp1251.mo \ |
434 | 87 ru.mo \ |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
88 sk.cp1250.mo \ |
434 | 89 sk.mo \ |
13735 | 90 sr.mo \ |
434 | 91 sv.mo \ |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
92 uk.cp1251.mo \ |
434 | 93 uk.mo \ |
94 vi.mo \ | |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
95 zh_CN.mo \ |
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
96 zh_CN.cp936.mo \ |
434 | 97 zh_CN.UTF-8.mo \ |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
98 zh_TW.mo \ |
434 | 99 zh_TW.UTF-8.mo \ |
7 | 100 |
101 PACKAGE = vim | |
102 | |
103 # Uncomment one of the lines below or modify it to put the path to your | |
104 # gettex binaries; I use the first | |
105 #GETTEXT_PATH = C:/gettext.win32/bin/ | |
106 #GETTEXT_PATH = C:/gettext-0.10.35-w32/win32/Release/ | |
107 #GETTEXT_PATH = C:/cygwin/bin/ | |
108 | |
12748
f48a1c8c5961
patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents:
7374
diff
changeset
|
109 ifeq (sh.exe, $(SHELL)) |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
110 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
|
111 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
|
112 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
|
113 else |
f48a1c8c5961
patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents:
7374
diff
changeset
|
114 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
|
115 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
|
116 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
|
117 endif |
7 | 118 |
12748
f48a1c8c5961
patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents:
7374
diff
changeset
|
119 ifeq (sh.exe, $(SHELL)) |
7 | 120 MV = move |
121 CP = copy | |
122 RM = del | |
123 MKD = mkdir | |
12748
f48a1c8c5961
patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents:
7374
diff
changeset
|
124 else |
f48a1c8c5961
patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents:
7374
diff
changeset
|
125 MV = mv -f |
f48a1c8c5961
patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents:
7374
diff
changeset
|
126 CP = cp -f |
f48a1c8c5961
patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents:
7374
diff
changeset
|
127 RM = rm -f |
f48a1c8c5961
patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents:
7374
diff
changeset
|
128 MKD = mkdir -p |
f48a1c8c5961
patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents:
7374
diff
changeset
|
129 endif |
7 | 130 |
131 .SUFFIXES: | |
132 .SUFFIXES: .po .mo .pot | |
133 .PHONY: first_time all install clean $(LANGUAGES) | |
134 | |
135 .po.mo: | |
136 $(MSGFMT) -o $@ $< | |
137 | |
138 all: $(MOFILES) | |
139 | |
140 first_time: | |
141 $(XGETTEXT) --default-domain=$(LANGUAGE) \ | |
13802
378f9f8e6d8f
patch 8.0.1773: dialog messages are not translated
Christian Brabandt <cb@256bit.org>
parents:
13735
diff
changeset
|
142 --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 | 143 |
144 $(LANGUAGES): | |
145 $(XGETTEXT) --default-domain=$(PACKAGE) \ | |
13802
378f9f8e6d8f
patch 8.0.1773: dialog messages are not translated
Christian Brabandt <cb@256bit.org>
parents:
13735
diff
changeset
|
146 --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 | 147 $(MV) $(PACKAGE).po $(PACKAGE).pot |
148 $(CP) $@.po $@.po.orig | |
149 $(MV) $@.po $@.po.old | |
150 $(MSGMERGE) $@.po.old $(PACKAGE).pot -o $@.po | |
151 $(RM) $@.po.old | |
152 | |
153 install: | |
154 $(MKD) $(VIMRUNTIME)\lang\$(LANGUAGE) | |
155 $(MKD) $(VIMRUNTIME)\lang\$(LANGUAGE)\LC_MESSAGES | |
156 $(CP) $(LANGUAGE).mo $(VIMRUNTIME)\lang\$(LANGUAGE)\LC_MESSAGES\$(PACKAGE).mo | |
157 | |
12748
f48a1c8c5961
patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents:
7374
diff
changeset
|
158 ifeq (sh.exe, $(SHELL)) |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
159 install-all: all |
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
160 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
|
161 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
|
162 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
|
163 else |
f48a1c8c5961
patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents:
7374
diff
changeset
|
164 install-all: all |
f48a1c8c5961
patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents:
7374
diff
changeset
|
165 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
|
166 $(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
|
167 $(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
|
168 done |
f48a1c8c5961
patch 8.0.1252: incomplete translations makefile for MinGW/Cygwin
Christian Brabandt <cb@256bit.org>
parents:
7374
diff
changeset
|
169 endif |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
1698
diff
changeset
|
170 |
7 | 171 clean: |
172 $(RM) *.mo | |
173 $(RM) *.pot | |
174 | |
175 |