annotate src/po/Makefile @ 11784:80fa4b0eb0b0 v8.0.0774

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