annotate src/po/Makefile @ 12559:34c8ec888122

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