annotate src/po/Makefile @ 13382:7cc66cd50eb3 v8.0.1565

patch 8.0.1565: can't build Mac version without GUI commit https://github.com/vim/vim/commit/107279c17b3a21899e0a9d0293ada040216539ba Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 4 18:57:19 2018 +0100 patch 8.0.1565: can't build Mac version without GUI Problem: Can't build Mac version without GUI. Solution: Adjust when IME_WITHOUT_XIM is defined.
author Christian Brabandt <cb@256bit.org>
date Sun, 04 Mar 2018 19:00:07 +0100
parents acd7eaa13d2b
children cf04dbb33f41
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.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2
5962
fd96c55d683d updated for version 7.4.322
Bram Moolenaar <bram@vim.org>
parents: 4502
diff changeset
3 # Include stuff found by configure.
fd96c55d683d updated for version 7.4.322
Bram Moolenaar <bram@vim.org>
parents: 4502
diff changeset
4 include ../auto/config.mk
fd96c55d683d updated for version 7.4.322
Bram Moolenaar <bram@vim.org>
parents: 4502
diff changeset
5
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 # TODO make this configurable
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 # Note: ja.sjis, *.cp1250 and zh_CN.cp936 are only for MS-Windows, they are
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 # not installed on Unix
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
10 LANGUAGES = \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
11 af \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
12 ca \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
13 cs \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
14 de \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
15 en_GB \
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 819
diff changeset
16 eo \
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
17 es \
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 819
diff changeset
18 fi \
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
19 fr \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
20 ga \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
21 it \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
22 ja \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
23 ko \
2098
3259c3923c1e Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 2032
diff changeset
24 ko.UTF-8 \
12559
34c8ec888122 Update runtime files
Christian Brabandt <cb@256bit.org>
parents: 11659
diff changeset
25 lv \
2032
592032e9e167 Update message translations.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
26 nb \
3410
94601b379f38 Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents: 2505
diff changeset
27 nl \
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
28 no \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
29 pl \
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
30 pt_BR \
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
31 ru \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
32 sk \
13341
acd7eaa13d2b Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12559
diff changeset
33 sr \
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
34 sv \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
35 uk \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
36 vi \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
37 zh_CN \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
38 zh_CN.UTF-8 \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
39 zh_TW \
492
81c06952fb1d updated for version 7.0135
vimboss
parents: 448
diff changeset
40 zh_TW.UTF-8
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
41
4019
b29e55d0ef01 updated for version 7.3.764
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
42 CONVERTED = \
b29e55d0ef01 updated for version 7.3.764
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
43 cs.cp1250 \
b29e55d0ef01 updated for version 7.3.764
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
44 ja.sjis \
4502
605c9ce57ec3 Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents: 4340
diff changeset
45 ja.euc-jp \
4019
b29e55d0ef01 updated for version 7.3.764
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
46 pl.cp1250 \
b29e55d0ef01 updated for version 7.3.764
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
47 pl.UTF-8 \
b29e55d0ef01 updated for version 7.3.764
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
48 ru.cp1251 \
b29e55d0ef01 updated for version 7.3.764
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
49 sk.cp1250 \
b29e55d0ef01 updated for version 7.3.764
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
50 uk.cp1251 \
b29e55d0ef01 updated for version 7.3.764
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
51 zh_CN.cp936
b29e55d0ef01 updated for version 7.3.764
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
52
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
53 MOFILES = \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
54 af.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
55 ca.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
56 cs.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
57 de.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
58 en_GB.mo \
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 819
diff changeset
59 eo.mo \
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
60 es.mo \
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 819
diff changeset
61 fi.mo \
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
62 fr.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
63 ga.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
64 it.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
65 ja.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
66 ko.mo \
2098
3259c3923c1e Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 2032
diff changeset
67 ko.UTF-8.mo \
12559
34c8ec888122 Update runtime files
Christian Brabandt <cb@256bit.org>
parents: 11659
diff changeset
68 lv.mo \
2032
592032e9e167 Update message translations.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
69 nb.mo \
3410
94601b379f38 Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents: 2505
diff changeset
70 nl.mo \
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
71 no.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
72 pl.mo \
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
73 pt_BR.mo \
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
74 ru.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
75 sk.mo \
13341
acd7eaa13d2b Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12559
diff changeset
76 sr.mo \
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
77 sv.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
78 uk.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
79 vi.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
80 zh_CN.UTF-8.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
81 zh_CN.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
82 zh_TW.UTF-8.mo \
492
81c06952fb1d updated for version 7.0135
vimboss
parents: 448
diff changeset
83 zh_TW.mo
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84
4019
b29e55d0ef01 updated for version 7.3.764
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
85 MOCONVERTED = \
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
86 cs.cp1250.mo \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
87 ja.sjis.mo \
4502
605c9ce57ec3 Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents: 4340
diff changeset
88 ja.euc-jp.mo \
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
89 pl.cp1250.mo \
819
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 628
diff changeset
90 pl.UTF-8.mo \
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
91 ru.cp1251.mo \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
92 sk.cp1250.mo \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
93 uk.cp1251.mo \
492
81c06952fb1d updated for version 7.0135
vimboss
parents: 448
diff changeset
94 zh_CN.cp936.mo
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
95
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
96 CHECKFILES = \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
97 af.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
98 ca.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
99 cs.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
100 de.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
101 en_GB.ck \
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 819
diff changeset
102 eo.ck \
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
103 es.ck \
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 819
diff changeset
104 fi.ck \
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
105 fr.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
106 ga.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
107 it.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
108 ja.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
109 ko.ck \
2098
3259c3923c1e Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 2032
diff changeset
110 ko.UTF-8.ck \
2032
592032e9e167 Update message translations.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
111 nb.ck \
3410
94601b379f38 Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents: 2505
diff changeset
112 nl.ck \
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
113 no.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
114 pl.ck \
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
115 pt_BR.ck \
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
116 ru.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
117 sk.ck \
13341
acd7eaa13d2b Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12559
diff changeset
118 sr.ck \
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
119 sv.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
120 uk.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
121 vi.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
122 zh_CN.UTF-8.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
123 zh_CN.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
124 zh_TW.UTF-8.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
125 zh_TW.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
126 cs.cp1250.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
127 ja.sjis.ck \
4502
605c9ce57ec3 Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents: 4340
diff changeset
128 ja.euc-jp.ck \
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
129 pl.cp1250.ck \
819
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 628
diff changeset
130 pl.UTF-8.ck \
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
131 ru.cp1251.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
132 sk.cp1250.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
133 uk.cp1251.ck \
492
81c06952fb1d updated for version 7.0135
vimboss
parents: 448
diff changeset
134 zh_CN.cp936.ck
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
135
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 PACKAGE = vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 SHELL = /bin/sh
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
138 VIM = ../vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 # The OLD_PO_FILE_INPUT and OLD_PO_FILE_OUTPUT are for the new GNU gettext
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 # tools 0.10.37, which use a slightly different .po file format that is not
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 # compatible with Solaris (and old gettext implementations) unless these are
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143 # set. gettext 0.10.36 will not work!
5962
fd96c55d683d updated for version 7.4.322
Bram Moolenaar <bram@vim.org>
parents: 4502
diff changeset
144 MSGFMTCMD = OLD_PO_FILE_INPUT=yes $(MSGFMT) -v
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 XGETTEXT = OLD_PO_FILE_INPUT=yes OLD_PO_FILE_OUTPUT=yes xgettext
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 MSGMERGE = OLD_PO_FILE_INPUT=yes OLD_PO_FILE_OUTPUT=yes msgmerge
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 .SUFFIXES:
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
149 .SUFFIXES: .po .mo .pot .ck
4019
b29e55d0ef01 updated for version 7.3.764
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
150 .PHONY: all install uninstall prefixcheck converted check clean checkclean distclean update-po $(LANGUAGES) $(CONVERTED)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 .po.mo:
5962
fd96c55d683d updated for version 7.4.322
Bram Moolenaar <bram@vim.org>
parents: 4502
diff changeset
153 $(MSGFMTCMD) -o $@ $<
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
155 .po.ck:
2032
592032e9e167 Update message translations.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
156 $(VIM) -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq $<
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
157 touch $@
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
158
4019
b29e55d0ef01 updated for version 7.3.764
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
159 all: $(MOFILES) $(MOCONVERTED)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
161 check: $(CHECKFILES)
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
162
4019
b29e55d0ef01 updated for version 7.3.764
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
163 install: $(MOFILES) $(MOCONVERTED)
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
164 @$(MAKE) prefixcheck
4019
b29e55d0ef01 updated for version 7.3.764
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
165 for lang in $(LANGUAGES) $(CONVERTED); do \
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166 dir=$(LOCALEDIR)/$$lang/; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167 if test ! -x "$$dir"; then \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168 mkdir $$dir; chmod 755 $$dir; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169 fi; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 dir=$(LOCALEDIR)/$$lang/LC_MESSAGES; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171 if test ! -x "$$dir"; then \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172 mkdir $$dir; chmod 755 $$dir; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173 fi; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 if test -r $$lang.mo; then \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 $(INSTALL_DATA) $$lang.mo $$dir/$(PACKAGE).mo; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 chmod $(FILEMOD) $$dir/$(PACKAGE).mo; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177 fi; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 done
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 uninstall:
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
181 @$(MAKE) prefixcheck
4019
b29e55d0ef01 updated for version 7.3.764
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
182 for cat in $(MOFILES) $(MOCONVERTED); do \
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183 cat=`basename $$cat`; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 rm -f $(LOCALEDIR)/$$lang/LC_MESSAGES/$(PACKAGE).mo; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 done
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187
4019
b29e55d0ef01 updated for version 7.3.764
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
188 converted: $(MOCONVERTED)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189
4340
12636b824816 updated for version 7.3.919
Bram Moolenaar <bram@vim.org>
parents: 4067
diff changeset
190 # nl.po was added later, if it does not exist use a file with just a # in it
12636b824816 updated for version 7.3.919
Bram Moolenaar <bram@vim.org>
parents: 4067
diff changeset
191 # (an empty file doesn't work with old msgfmt).
4067
386fc822dd00 updated for version 7.3.788
Bram Moolenaar <bram@vim.org>
parents: 4019
diff changeset
192 nl.po:
4340
12636b824816 updated for version 7.3.919
Bram Moolenaar <bram@vim.org>
parents: 4067
diff changeset
193 @( echo \# > nl.po )
4067
386fc822dd00 updated for version 7.3.788
Bram Moolenaar <bram@vim.org>
parents: 4019
diff changeset
194
2032
592032e9e167 Update message translations.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
195 # Norwegian/Bokmal: "nb" is an alias for "no".
592032e9e167 Update message translations.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
196 # Copying the file is not efficient, but I don't know of another way to make
592032e9e167 Update message translations.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
197 # this work.
592032e9e167 Update message translations.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
198 nb.po: no.po
592032e9e167 Update message translations.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
199 cp no.po nb.po
592032e9e167 Update message translations.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
200
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201 # Convert ja.po to create ja.sjis.po. Requires doubling backslashes in the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202 # second byte. Don't depend on sjiscorr, it should only be compiled when
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203 # ja.sjis.po is outdated.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204 ja.sjis.po: ja.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205 @$(MAKE) sjiscorr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206 rm -f ja.sjis.po
4502
605c9ce57ec3 Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents: 4340
diff changeset
207 iconv -f utf-8 -t cp932 ja.po | ./sjiscorr > ja.sjis.po
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
208
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
209 sjiscorr: sjiscorr.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
210 $(CC) -o sjiscorr sjiscorr.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
211
4502
605c9ce57ec3 Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents: 4340
diff changeset
212 ja.euc-jp.po: ja.po
605c9ce57ec3 Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents: 4340
diff changeset
213 iconv -f utf-8 -t euc-jp ja.po | \
605c9ce57ec3 Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents: 4340
diff changeset
214 sed -e 's/charset=utf-8/charset=euc-jp/' -e 's/# Original translations/# Generated from ja.po, DO NOT EDIT/' > ja.euc-jp.po
605c9ce57ec3 Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents: 4340
diff changeset
215
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
216 # Convert cs.po to create cs.cp1250.po.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
217 cs.cp1250.po: cs.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
218 rm -f cs.cp1250.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
219 iconv -f iso-8859-2 -t cp1250 cs.po | \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
220 sed -e 's/charset=ISO-8859-2/charset=cp1250/' -e 's/# Original translations/# Generated from cs.po, DO NOT EDIT/' > cs.cp1250.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
221
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
222 # Convert pl.po to create pl.cp1250.po.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
223 pl.cp1250.po: pl.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
224 rm -f pl.cp1250.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
225 iconv -f iso-8859-2 -t cp1250 pl.po | \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
226 sed -e 's/charset=ISO-8859-2/charset=cp1250/' -e 's/# Original translations/# Generated from pl.po, DO NOT EDIT/' > pl.cp1250.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
227
819
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 628
diff changeset
228 # Convert pl.po to create pl.UTF-8.po.
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 628
diff changeset
229 pl.UTF-8.po: pl.po
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 628
diff changeset
230 rm -f pl.UTF-8.po
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 628
diff changeset
231 iconv -f iso-8859-2 -t utf-8 pl.po | \
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 628
diff changeset
232 sed -e 's/charset=ISO-8859-2/charset=utf-8/' -e 's/# Original translations/# Generated from pl.po, DO NOT EDIT/' > pl.UTF-8.po
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 628
diff changeset
233
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
234 # Convert sk.po to create sk.cp1250.po.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
235 sk.cp1250.po: sk.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
236 rm -f sk.cp1250.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
237 iconv -f iso-8859-2 -t cp1250 sk.po | \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
238 sed -e 's/charset=ISO-8859-2/charset=cp1250/' -e 's/# Original translations/# Generated from sk.po, DO NOT EDIT/' > sk.cp1250.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
239
10710
4aa22b40321f patch 8.0.0245: zh_CN.cp936.po has a conversion error
Christian Brabandt <cb@256bit.org>
parents: 5962
diff changeset
240 # Convert zh_CN.UTF-8.po to create zh_CN.cp936.po.
4aa22b40321f patch 8.0.0245: zh_CN.cp936.po has a conversion error
Christian Brabandt <cb@256bit.org>
parents: 5962
diff changeset
241 # Set 'charset' to gbk to avoid that msfmt generates a warning.
4aa22b40321f patch 8.0.0245: zh_CN.cp936.po has a conversion error
Christian Brabandt <cb@256bit.org>
parents: 5962
diff changeset
242 # This used to convert from zh_CN.po, but that results in a conversion error.
4aa22b40321f patch 8.0.0245: zh_CN.cp936.po has a conversion error
Christian Brabandt <cb@256bit.org>
parents: 5962
diff changeset
243 zh_CN.cp936.po: zh_CN.UTF-8.po
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
244 rm -f zh_CN.cp936.po
10710
4aa22b40321f patch 8.0.0245: zh_CN.cp936.po has a conversion error
Christian Brabandt <cb@256bit.org>
parents: 5962
diff changeset
245 iconv -f UTF-8 -t cp936 zh_CN.UTF-8.po | \
11659
49c12c93abf3 Updated runtime files and translations.
Christian Brabandt <cb@256bit.org>
parents: 10710
diff changeset
246 sed -e 's/charset=utf-8/charset=gbk/' -e 's/# Original translations/# Generated from zh_CN.UTF-8.po, DO NOT EDIT/' > zh_CN.cp936.po
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
247
2098
3259c3923c1e Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 2032
diff changeset
248 # Convert ko.UTF-8.po to create ko.po.
3259c3923c1e Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 2032
diff changeset
249 ko.po: ko.UTF-8.po
3259c3923c1e Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 2032
diff changeset
250 rm -f ko.po
3259c3923c1e Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 2032
diff changeset
251 iconv -f UTF-8 -t euc-kr ko.UTF-8.po | \
3259c3923c1e Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 2032
diff changeset
252 sed -e 's/charset=UTF-8/charset=euc-kr/' \
3259c3923c1e Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 2032
diff changeset
253 -e 's/# Korean translation for Vim/# Generated from ko.UTF-8.po, DO NOT EDIT/' \
3259c3923c1e Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 2032
diff changeset
254 > ko.po
3259c3923c1e Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 2032
diff changeset
255
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
256 # Convert ru.po to create ru.cp1251.po.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
257 ru.cp1251.po: ru.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
258 rm -f ru.cp1251.po
9
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
259 iconv -f utf-8 -t cp1251 ru.po | \
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
260 sed -e 's/charset=utf-8/charset=cp1251/' -e 's/# Original translations/# Generated from ru.po, DO NOT EDIT/' > ru.cp1251.po
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
261
23
3f44e9abe4ec updated for version 7.0015
vimboss
parents: 9
diff changeset
262 # Convert uk.po to create uk.cp1251.po.
3f44e9abe4ec updated for version 7.0015
vimboss
parents: 9
diff changeset
263 uk.cp1251.po: uk.po
3f44e9abe4ec updated for version 7.0015
vimboss
parents: 9
diff changeset
264 rm -f uk.cp1251.po
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 819
diff changeset
265 iconv -f utf-8 -t cp1251 uk.po | \
73fe8baea242 updated for version 7.2a
vimboss
parents: 819
diff changeset
266 sed -e 's/charset=utf-8/charset=cp1251/' -e 's/# Original translations/# Generated from uk.po, DO NOT EDIT/' > uk.cp1251.po
23
3f44e9abe4ec updated for version 7.0015
vimboss
parents: 9
diff changeset
267
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
268 prefixcheck:
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
269 @if test "x" = "x$(prefix)"; then \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
270 echo "******************************************"; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
271 echo " please use make from the src directory "; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
272 echo "******************************************"; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
273 exit 1; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
274 fi
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
275
628
efb7557aea10 updated for version 7.0181
vimboss
parents: 492
diff changeset
276 clean: checkclean
efb7557aea10 updated for version 7.0181
vimboss
parents: 492
diff changeset
277 rm -f core core.* *.old.po *.mo *.pot sjiscorr
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
278
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
279 distclean: clean
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
280
628
efb7557aea10 updated for version 7.0181
vimboss
parents: 492
diff changeset
281 checkclean:
efb7557aea10 updated for version 7.0181
vimboss
parents: 492
diff changeset
282 rm -f *.ck
efb7557aea10 updated for version 7.0181
vimboss
parents: 492
diff changeset
283
2505
4aa73aa648bc Some messages were missing when updating translations. (Dominique Pelle)
Bram Moolenaar <bram@vim.org>
parents: 2098
diff changeset
284 $(PACKAGE).pot: ../*.c ../if_perl.xs ../GvimExt/gvimext.cpp ../globals.h ../if_py_both.h
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
285 cd ..; $(XGETTEXT) --default-domain=$(PACKAGE) \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
286 --add-comments --keyword=_ --keyword=N_ \
2505
4aa73aa648bc Some messages were missing when updating translations. (Dominique Pelle)
Bram Moolenaar <bram@vim.org>
parents: 2098
diff changeset
287 *.c if_perl.xs GvimExt/gvimext.cpp globals.h if_py_both.h
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
288 mv -f ../$(PACKAGE).po $(PACKAGE).pot
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
289
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
290 update-po: $(LANGUAGES)
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
291
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
292 # Don't add a dependency here, we only want to update the .po files manually
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
293 $(LANGUAGES):
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
294 @$(MAKE) $(PACKAGE).pot
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
295 if test ! -f $@.po.orig; then cp $@.po $@.po.orig; fi
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
296 mv $@.po $@.po.old
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
297 if $(MSGMERGE) $@.po.old $(PACKAGE).pot -o $@.po; then \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
298 rm -f $@.po.old; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
299 else \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
300 echo "msgmerge for $@.po failed!"; mv $@.po.old $@.po; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
301 fi