annotate src/po/Makefile @ 2455:9367de3e2e1b vim73

Fix: crash in spell checking with a 0x300 character.
author Bram Moolenaar <bram@vim.org>
date Sun, 01 Aug 2010 15:37:02 +0200
parents 3259c3923c1e
children 4aa73aa648bc
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 # TODO make this configurable
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 # 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
5 # not installed on Unix
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
7 LANGUAGES = \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
8 af \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
9 ca \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
10 cs \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
11 de \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
12 en_GB \
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 819
diff changeset
13 eo \
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
14 es \
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 819
diff changeset
15 fi \
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
16 fr \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
17 ga \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
18 it \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
19 ja \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
20 ko \
2098
3259c3923c1e Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 2032
diff changeset
21 ko.UTF-8 \
2032
592032e9e167 Update message translations.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
22 nb \
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
23 no \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
24 pl \
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
25 pt_BR \
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
26 ru \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
27 sk \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
28 sv \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
29 uk \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
30 vi \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
31 zh_CN \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
32 zh_CN.UTF-8 \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
33 zh_TW \
492
81c06952fb1d updated for version 7.0135
vimboss
parents: 448
diff changeset
34 zh_TW.UTF-8
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
35
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
36 MOFILES = \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
37 af.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
38 ca.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
39 cs.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
40 de.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
41 en_GB.mo \
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 819
diff changeset
42 eo.mo \
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
43 es.mo \
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 819
diff changeset
44 fi.mo \
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
45 fr.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
46 ga.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
47 it.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
48 ja.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
49 ko.mo \
2098
3259c3923c1e Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 2032
diff changeset
50 ko.UTF-8.mo \
2032
592032e9e167 Update message translations.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
51 nb.mo \
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
52 no.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
53 pl.mo \
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
54 pt_BR.mo \
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
55 ru.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
56 sk.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
57 sv.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
58 uk.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
59 vi.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
60 zh_CN.UTF-8.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
61 zh_CN.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
62 zh_TW.UTF-8.mo \
492
81c06952fb1d updated for version 7.0135
vimboss
parents: 448
diff changeset
63 zh_TW.mo
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
65 CONVERTED = \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
66 cs.cp1250.mo \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
67 ja.sjis.mo \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
68 pl.cp1250.mo \
819
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 628
diff changeset
69 pl.UTF-8.mo \
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
70 ru.cp1251.mo \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
71 sk.cp1250.mo \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
72 uk.cp1251.mo \
492
81c06952fb1d updated for version 7.0135
vimboss
parents: 448
diff changeset
73 zh_CN.cp936.mo
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
74
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
75 CHECKFILES = \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
76 af.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
77 ca.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
78 cs.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
79 de.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
80 en_GB.ck \
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 819
diff changeset
81 eo.ck \
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
82 es.ck \
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 819
diff changeset
83 fi.ck \
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
84 fr.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
85 ga.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
86 it.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
87 ja.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
88 ko.ck \
2098
3259c3923c1e Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 2032
diff changeset
89 ko.UTF-8.ck \
2032
592032e9e167 Update message translations.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
90 nb.ck \
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
91 no.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
92 pl.ck \
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
93 pt_BR.ck \
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
94 ru.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
95 sk.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
96 sv.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
97 uk.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
98 vi.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
99 zh_CN.UTF-8.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
100 zh_CN.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
101 zh_TW.UTF-8.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
102 zh_TW.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
103 cs.cp1250.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
104 ja.sjis.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
105 pl.cp1250.ck \
819
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 628
diff changeset
106 pl.UTF-8.ck \
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
107 ru.cp1251.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
108 sk.cp1250.ck \
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
109 uk.cp1251.ck \
492
81c06952fb1d updated for version 7.0135
vimboss
parents: 448
diff changeset
110 zh_CN.cp936.ck
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
111
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 PACKAGE = vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 SHELL = /bin/sh
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
114 VIM = ../vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 # 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
117 # 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
118 # compatible with Solaris (and old gettext implementations) unless these are
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 # set. gettext 0.10.36 will not work!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 MSGFMT = OLD_PO_FILE_INPUT=yes msgfmt -v
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 XGETTEXT = OLD_PO_FILE_INPUT=yes OLD_PO_FILE_OUTPUT=yes xgettext
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 MSGMERGE = OLD_PO_FILE_INPUT=yes OLD_PO_FILE_OUTPUT=yes msgmerge
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 .SUFFIXES:
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
125 .SUFFIXES: .po .mo .pot .ck
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
126 .PHONY: all install uninstall prefixcheck converted check clean checkclean distclean update-po $(LANGUAGES)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 .po.mo:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 $(MSGFMT) -o $@ $<
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
131 .po.ck:
2032
592032e9e167 Update message translations.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
132 $(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
133 touch $@
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
134
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 all: $(MOFILES)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
137 check: $(CHECKFILES)
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
138
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139 install: $(MOFILES)
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
140 @$(MAKE) prefixcheck
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 for lang in $(LANGUAGES); do \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 dir=$(LOCALEDIR)/$$lang/; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143 if test ! -x "$$dir"; then \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144 mkdir $$dir; chmod 755 $$dir; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 fi; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 dir=$(LOCALEDIR)/$$lang/LC_MESSAGES; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147 if test ! -x "$$dir"; then \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 mkdir $$dir; chmod 755 $$dir; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149 fi; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150 if test -r $$lang.mo; then \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151 $(INSTALL_DATA) $$lang.mo $$dir/$(PACKAGE).mo; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 chmod $(FILEMOD) $$dir/$(PACKAGE).mo; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 fi; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154 done
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 uninstall:
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
157 @$(MAKE) prefixcheck
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158 for cat in $(MOFILES); do \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 cat=`basename $$cat`; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161 rm -f $(LOCALEDIR)/$$lang/LC_MESSAGES/$(PACKAGE).mo; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 done
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
164 converted: $(CONVERTED)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165
2032
592032e9e167 Update message translations.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
166 # Norwegian/Bokmal: "nb" is an alias for "no".
592032e9e167 Update message translations.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
167 # 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
168 # this work.
592032e9e167 Update message translations.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
169 nb.po: no.po
592032e9e167 Update message translations.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
170 cp no.po nb.po
592032e9e167 Update message translations.
Bram Moolenaar <bram@zimbu.org>
parents: 1698
diff changeset
171
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172 # Convert ja.po to create ja.sjis.po. Requires doubling backslashes in the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173 # second byte. Don't depend on sjiscorr, it should only be compiled when
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 # ja.sjis.po is outdated.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 ja.sjis.po: ja.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 @$(MAKE) sjiscorr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177 rm -f ja.sjis.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 iconv -f euc-jp -t cp932 ja.po | ./sjiscorr > ja.sjis.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 sjiscorr: sjiscorr.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 $(CC) -o sjiscorr sjiscorr.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183 # Convert cs.po to create cs.cp1250.po.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 cs.cp1250.po: cs.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 rm -f cs.cp1250.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 iconv -f iso-8859-2 -t cp1250 cs.po | \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 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
188
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 # Convert pl.po to create pl.cp1250.po.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190 pl.cp1250.po: pl.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 rm -f pl.cp1250.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192 iconv -f iso-8859-2 -t cp1250 pl.po | \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193 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
194
819
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 628
diff changeset
195 # Convert pl.po to create pl.UTF-8.po.
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 628
diff changeset
196 pl.UTF-8.po: pl.po
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 628
diff changeset
197 rm -f pl.UTF-8.po
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 628
diff changeset
198 iconv -f iso-8859-2 -t utf-8 pl.po | \
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 628
diff changeset
199 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
200
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201 # Convert sk.po to create sk.cp1250.po.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202 sk.cp1250.po: sk.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203 rm -f sk.cp1250.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204 iconv -f iso-8859-2 -t cp1250 sk.po | \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205 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
206
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207 # Convert zh_CN.po to create zh_CN.cp936.po.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
208 # set 'charset' to gbk to avoid that msfmt generates a warning
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
209 zh_CN.cp936.po: zh_CN.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
210 rm -f zh_CN.cp936.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
211 iconv -f gb2312 -t cp936 zh_CN.po | \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
212 sed -e 's/charset=gb2312/charset=gbk/' -e 's/# Original translations/# Generated from zh_CN.po, DO NOT EDIT/' > zh_CN.cp936.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
213
2098
3259c3923c1e Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 2032
diff changeset
214 # Convert ko.UTF-8.po to create ko.po.
3259c3923c1e Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 2032
diff changeset
215 ko.po: ko.UTF-8.po
3259c3923c1e Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 2032
diff changeset
216 rm -f ko.po
3259c3923c1e Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 2032
diff changeset
217 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
218 sed -e 's/charset=UTF-8/charset=euc-kr/' \
3259c3923c1e Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 2032
diff changeset
219 -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
220 > ko.po
3259c3923c1e Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents: 2032
diff changeset
221
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
222 # Convert ru.po to create ru.cp1251.po.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
223 ru.cp1251.po: ru.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
224 rm -f ru.cp1251.po
9
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
225 iconv -f utf-8 -t cp1251 ru.po | \
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
226 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
227
23
3f44e9abe4ec updated for version 7.0015
vimboss
parents: 9
diff changeset
228 # Convert uk.po to create uk.cp1251.po.
3f44e9abe4ec updated for version 7.0015
vimboss
parents: 9
diff changeset
229 uk.cp1251.po: uk.po
3f44e9abe4ec updated for version 7.0015
vimboss
parents: 9
diff changeset
230 rm -f uk.cp1251.po
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 819
diff changeset
231 iconv -f utf-8 -t cp1251 uk.po | \
73fe8baea242 updated for version 7.2a
vimboss
parents: 819
diff changeset
232 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
233
440
eb531146be0e updated for version 7.0114
vimboss
parents: 434
diff changeset
234 prefixcheck:
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
235 @if test "x" = "x$(prefix)"; then \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
236 echo "******************************************"; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
237 echo " please use make from the src directory "; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
238 echo "******************************************"; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
239 exit 1; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
240 fi
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
241
628
efb7557aea10 updated for version 7.0181
vimboss
parents: 492
diff changeset
242 clean: checkclean
efb7557aea10 updated for version 7.0181
vimboss
parents: 492
diff changeset
243 rm -f core core.* *.old.po *.mo *.pot sjiscorr
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
244
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
245 distclean: clean
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
246
628
efb7557aea10 updated for version 7.0181
vimboss
parents: 492
diff changeset
247 checkclean:
efb7557aea10 updated for version 7.0181
vimboss
parents: 492
diff changeset
248 rm -f *.ck
efb7557aea10 updated for version 7.0181
vimboss
parents: 492
diff changeset
249
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
250 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
251 # NOTE: If you get an error for gvimext.cpp not found, you need to unpack the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
252 # extra archive.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
253 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
254 $(PACKAGE).pot: ../*.c ../if_perl.xs ../GvimExt/gvimext.cpp ../globals.h
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
255 cd ..; $(XGETTEXT) --default-domain=$(PACKAGE) \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
256 --add-comments --keyword=_ --keyword=N_ \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
257 *.c if_perl.xs GvimExt/gvimext.cpp globals.h
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
258 mv -f ../$(PACKAGE).po $(PACKAGE).pot
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
259
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
260 update-po: $(LANGUAGES)
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
261
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
262 # 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
263 $(LANGUAGES):
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
264 @$(MAKE) $(PACKAGE).pot
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
265 if test ! -f $@.po.orig; then cp $@.po $@.po.orig; fi
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
266 mv $@.po $@.po.old
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
267 if $(MSGMERGE) $@.po.old $(PACKAGE).pot -o $@.po; then \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
268 rm -f $@.po.old; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
269 else \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
270 echo "msgmerge for $@.po failed!"; mv $@.po.old $@.po; \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
271 fi