Mercurial > vim
annotate src/po/Makefile @ 31853:0799b0bf5c6c v9.0.1259
patch 9.0.1259: diffmode test fails
Commit: https://github.com/vim/vim/commit/492324e58840f441d7226e7656844e778e65d7fb
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 28 20:57:59 2023 +0000
patch 9.0.1259: diffmode test fails
Problem: Diffmode test fails.
Solution: Adjust expected result for adjusted indenting.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 28 Jan 2023 22:00:03 +0100 |
parents | 34c1f4cd0c18 |
children | d86042b281df |
rev | line source |
---|---|
7 | 1 # Makefile for the Vim message translations. |
2 | |
5962 | 3 # Include stuff found by configure. |
4 include ../auto/config.mk | |
5 | |
14181
a36fb263c35e
patch 8.1.0108: no Danish translations
Christian Brabandt <cb@256bit.org>
parents:
13802
diff
changeset
|
6 # get LANGUAGES, MOFILES, MOCONVERTED and CHECKFILES |
a36fb263c35e
patch 8.1.0108: no Danish translations
Christian Brabandt <cb@256bit.org>
parents:
13802
diff
changeset
|
7 include Make_all.mak |
a36fb263c35e
patch 8.1.0108: no Danish translations
Christian Brabandt <cb@256bit.org>
parents:
13802
diff
changeset
|
8 |
7 | 9 # Note: ja.sjis, *.cp1250 and zh_CN.cp936 are only for MS-Windows, they are |
10 # not installed on Unix | |
11 | |
12 PACKAGE = vim | |
13 SHELL = /bin/sh | |
440 | 14 VIM = ../vim |
7 | 15 |
16 # The OLD_PO_FILE_INPUT and OLD_PO_FILE_OUTPUT are for the new GNU gettext | |
17 # tools 0.10.37, which use a slightly different .po file format that is not | |
18 # compatible with Solaris (and old gettext implementations) unless these are | |
19 # set. gettext 0.10.36 will not work! | |
5962 | 20 MSGFMTCMD = OLD_PO_FILE_INPUT=yes $(MSGFMT) -v |
7 | 21 XGETTEXT = OLD_PO_FILE_INPUT=yes OLD_PO_FILE_OUTPUT=yes xgettext |
22 MSGMERGE = OLD_PO_FILE_INPUT=yes OLD_PO_FILE_OUTPUT=yes msgmerge | |
23 | |
24 .SUFFIXES: | |
440 | 25 .SUFFIXES: .po .mo .pot .ck |
14181
a36fb263c35e
patch 8.1.0108: no Danish translations
Christian Brabandt <cb@256bit.org>
parents:
13802
diff
changeset
|
26 .PHONY: all install uninstall prefixcheck converted check clean checkclean distclean update-po $(LANGUAGES) |
7 | 27 |
28 .po.mo: | |
5962 | 29 $(MSGFMTCMD) -o $@ $< |
7 | 30 |
440 | 31 .po.ck: |
2032
592032e9e167
Update message translations.
Bram Moolenaar <bram@zimbu.org>
parents:
1698
diff
changeset
|
32 $(VIM) -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq $< |
440 | 33 touch $@ |
34 | |
16289
b4c7e026685c
patch 8.1.1149: building desktop files fails with older msgfmt
Bram Moolenaar <Bram@vim.org>
parents:
16285
diff
changeset
|
35 all: $(MOFILES) $(MOCONVERTED) $(MSGFMT_DESKTOP) |
7 | 36 |
440 | 37 check: $(CHECKFILES) |
38 | |
21989
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
39 # installing for real |
4019 | 40 install: $(MOFILES) $(MOCONVERTED) |
440 | 41 @$(MAKE) prefixcheck |
14181
a36fb263c35e
patch 8.1.0108: no Danish translations
Christian Brabandt <cb@256bit.org>
parents:
13802
diff
changeset
|
42 for lang in $(LANGUAGES); do \ |
7 | 43 dir=$(LOCALEDIR)/$$lang/; \ |
44 if test ! -x "$$dir"; then \ | |
45 mkdir $$dir; chmod 755 $$dir; \ | |
46 fi; \ | |
47 dir=$(LOCALEDIR)/$$lang/LC_MESSAGES; \ | |
48 if test ! -x "$$dir"; then \ | |
49 mkdir $$dir; chmod 755 $$dir; \ | |
50 fi; \ | |
51 if test -r $$lang.mo; then \ | |
52 $(INSTALL_DATA) $$lang.mo $$dir/$(PACKAGE).mo; \ | |
53 chmod $(FILEMOD) $$dir/$(PACKAGE).mo; \ | |
54 fi; \ | |
55 done | |
56 | |
57 uninstall: | |
440 | 58 @$(MAKE) prefixcheck |
4019 | 59 for cat in $(MOFILES) $(MOCONVERTED); do \ |
7 | 60 cat=`basename $$cat`; \ |
61 lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \ | |
62 rm -f $(LOCALEDIR)/$$lang/LC_MESSAGES/$(PACKAGE).mo; \ | |
63 done | |
64 | |
21989
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
65 # installing for local tryout into ../../runtime/lang |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
66 tryoutinstall: $(MOFILES) $(MOCONVERTED) |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
67 @$(MAKE) prefixcheck |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
68 for lang in $(LANGUAGES); do \ |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
69 dir=../../runtime/lang/$$lang/; \ |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
70 if test ! -x "$$dir"; then \ |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
71 mkdir $$dir; chmod 755 $$dir; \ |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
72 fi; \ |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
73 dir=../../runtime/lang/$$lang/LC_MESSAGES; \ |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
74 if test ! -x "$$dir"; then \ |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
75 mkdir $$dir; chmod 755 $$dir; \ |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
76 fi; \ |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
77 if test -r $$lang.mo; then \ |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
78 cp $$lang.mo $$dir/$(PACKAGE).mo; \ |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
79 chmod 644 $$dir/$(PACKAGE).mo; \ |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
80 fi; \ |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
81 done |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
82 |
4019 | 83 converted: $(MOCONVERTED) |
7 | 84 |
4340 | 85 # nl.po was added later, if it does not exist use a file with just a # in it |
86 # (an empty file doesn't work with old msgfmt). | |
4067 | 87 nl.po: |
4340 | 88 @( echo \# > nl.po ) |
4067 | 89 |
2032
592032e9e167
Update message translations.
Bram Moolenaar <bram@zimbu.org>
parents:
1698
diff
changeset
|
90 # Norwegian/Bokmal: "nb" is an alias for "no". |
592032e9e167
Update message translations.
Bram Moolenaar <bram@zimbu.org>
parents:
1698
diff
changeset
|
91 # 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
|
92 # this work. |
592032e9e167
Update message translations.
Bram Moolenaar <bram@zimbu.org>
parents:
1698
diff
changeset
|
93 nb.po: no.po |
592032e9e167
Update message translations.
Bram Moolenaar <bram@zimbu.org>
parents:
1698
diff
changeset
|
94 cp no.po nb.po |
592032e9e167
Update message translations.
Bram Moolenaar <bram@zimbu.org>
parents:
1698
diff
changeset
|
95 |
7 | 96 # Convert ja.po to create ja.sjis.po. Requires doubling backslashes in the |
97 # second byte. Don't depend on sjiscorr, it should only be compiled when | |
98 # ja.sjis.po is outdated. | |
99 ja.sjis.po: ja.po | |
100 @$(MAKE) sjiscorr | |
101 rm -f ja.sjis.po | |
4502
605c9ce57ec3
Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents:
4340
diff
changeset
|
102 iconv -f utf-8 -t cp932 ja.po | ./sjiscorr > ja.sjis.po |
7 | 103 |
104 sjiscorr: sjiscorr.c | |
105 $(CC) -o sjiscorr sjiscorr.c | |
106 | |
4502
605c9ce57ec3
Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents:
4340
diff
changeset
|
107 ja.euc-jp.po: ja.po |
605c9ce57ec3
Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents:
4340
diff
changeset
|
108 iconv -f utf-8 -t euc-jp ja.po | \ |
14187
b79453d0d01c
patch 8.1.0111: .po files do not use recommended names
Christian Brabandt <cb@256bit.org>
parents:
14181
diff
changeset
|
109 sed -e 's/charset=[uU][tT][fF]-8/charset=euc-jp/' -e 's/# Original translations/# Generated from ja.po, DO NOT EDIT/' > ja.euc-jp.po |
4502
605c9ce57ec3
Updated runtime files, language files and translations.
Bram Moolenaar <bram@vim.org>
parents:
4340
diff
changeset
|
110 |
7 | 111 # Convert cs.po to create cs.cp1250.po. |
112 cs.cp1250.po: cs.po | |
113 rm -f cs.cp1250.po | |
114 iconv -f iso-8859-2 -t cp1250 cs.po | \ | |
115 sed -e 's/charset=ISO-8859-2/charset=cp1250/' -e 's/# Original translations/# Generated from cs.po, DO NOT EDIT/' > cs.cp1250.po | |
116 | |
117 # Convert pl.po to create pl.cp1250.po. | |
118 pl.cp1250.po: pl.po | |
119 rm -f pl.cp1250.po | |
120 iconv -f iso-8859-2 -t cp1250 pl.po | \ | |
121 sed -e 's/charset=ISO-8859-2/charset=cp1250/' -e 's/# Original translations/# Generated from pl.po, DO NOT EDIT/' > pl.cp1250.po | |
122 | |
819 | 123 # Convert pl.po to create pl.UTF-8.po. |
124 pl.UTF-8.po: pl.po | |
125 rm -f pl.UTF-8.po | |
126 iconv -f iso-8859-2 -t utf-8 pl.po | \ | |
14187
b79453d0d01c
patch 8.1.0111: .po files do not use recommended names
Christian Brabandt <cb@256bit.org>
parents:
14181
diff
changeset
|
127 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 |
819 | 128 |
7 | 129 # Convert sk.po to create sk.cp1250.po. |
130 sk.cp1250.po: sk.po | |
131 rm -f sk.cp1250.po | |
132 iconv -f iso-8859-2 -t cp1250 sk.po | \ | |
133 sed -e 's/charset=ISO-8859-2/charset=cp1250/' -e 's/# Original translations/# Generated from sk.po, DO NOT EDIT/' > sk.cp1250.po | |
134 | |
27708
bb1a3e598a86
patch 8.2.4380: small differences between Chinese translation files
Bram Moolenaar <Bram@vim.org>
parents:
22071
diff
changeset
|
135 # Convert zh_CN.UTF-8.po to create zh_CN.po. |
bb1a3e598a86
patch 8.2.4380: small differences between Chinese translation files
Bram Moolenaar <Bram@vim.org>
parents:
22071
diff
changeset
|
136 zh_CN.po: zh_CN.UTF-8.po |
bb1a3e598a86
patch 8.2.4380: small differences between Chinese translation files
Bram Moolenaar <Bram@vim.org>
parents:
22071
diff
changeset
|
137 rm -f zh_CN.po |
bb1a3e598a86
patch 8.2.4380: small differences between Chinese translation files
Bram Moolenaar <Bram@vim.org>
parents:
22071
diff
changeset
|
138 iconv -f UTF-8 -t gb2312 zh_CN.UTF-8.po | \ |
bb1a3e598a86
patch 8.2.4380: small differences between Chinese translation files
Bram Moolenaar <Bram@vim.org>
parents:
22071
diff
changeset
|
139 sed -e 's/charset=[uU][tT][fF]-8/charset=gb2312/' -e 's/# Original translations/# Generated from zh_CN.UTF-8.po, DO NOT EDIT/' > zh_CN.po |
bb1a3e598a86
patch 8.2.4380: small differences between Chinese translation files
Bram Moolenaar <Bram@vim.org>
parents:
22071
diff
changeset
|
140 |
10710
4aa22b40321f
patch 8.0.0245: zh_CN.cp936.po has a conversion error
Christian Brabandt <cb@256bit.org>
parents:
5962
diff
changeset
|
141 # 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
|
142 # 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
|
143 # 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
|
144 zh_CN.cp936.po: zh_CN.UTF-8.po |
7 | 145 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
|
146 iconv -f UTF-8 -t cp936 zh_CN.UTF-8.po | \ |
14187
b79453d0d01c
patch 8.1.0111: .po files do not use recommended names
Christian Brabandt <cb@256bit.org>
parents:
14181
diff
changeset
|
147 sed -e 's/charset=[uU][tT][fF]-8/charset=gbk/' -e 's/# Original translations/# Generated from zh_CN.UTF-8.po, DO NOT EDIT/' > zh_CN.cp936.po |
7 | 148 |
2098
3259c3923c1e
Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
2032
diff
changeset
|
149 # Convert ko.UTF-8.po to create ko.po. |
3259c3923c1e
Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
2032
diff
changeset
|
150 ko.po: ko.UTF-8.po |
3259c3923c1e
Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
2032
diff
changeset
|
151 rm -f ko.po |
3259c3923c1e
Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
2032
diff
changeset
|
152 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
|
153 sed -e 's/charset=UTF-8/charset=euc-kr/' \ |
3259c3923c1e
Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
2032
diff
changeset
|
154 -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
|
155 > ko.po |
3259c3923c1e
Updated runtime an documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
2032
diff
changeset
|
156 |
7 | 157 # Convert ru.po to create ru.cp1251.po. |
158 ru.cp1251.po: ru.po | |
159 rm -f ru.cp1251.po | |
9 | 160 iconv -f utf-8 -t cp1251 ru.po | \ |
14181
a36fb263c35e
patch 8.1.0108: no Danish translations
Christian Brabandt <cb@256bit.org>
parents:
13802
diff
changeset
|
161 sed -e 's/charset=[uU][tT][fF]-8/charset=cp1251/' -e 's/# Original translations/# Generated from ru.po, DO NOT EDIT/' > ru.cp1251.po |
7 | 162 |
23 | 163 # Convert uk.po to create uk.cp1251.po. |
164 uk.cp1251.po: uk.po | |
165 rm -f uk.cp1251.po | |
1620 | 166 iconv -f utf-8 -t cp1251 uk.po | \ |
14181
a36fb263c35e
patch 8.1.0108: no Danish translations
Christian Brabandt <cb@256bit.org>
parents:
13802
diff
changeset
|
167 sed -e 's/charset=[uU][tT][fF]-8/charset=cp1251/' -e 's/# Original translations/# Generated from uk.po, DO NOT EDIT/' > uk.cp1251.po |
23 | 168 |
440 | 169 prefixcheck: |
7 | 170 @if test "x" = "x$(prefix)"; then \ |
171 echo "******************************************"; \ | |
172 echo " please use make from the src directory "; \ | |
173 echo "******************************************"; \ | |
174 exit 1; \ | |
175 fi | |
176 | |
628 | 177 clean: checkclean |
178 rm -f core core.* *.old.po *.mo *.pot sjiscorr | |
16934
87abfb36d815
patch 8.1.1468: the generated desktop files may be invalid
Bram Moolenaar <Bram@vim.org>
parents:
16557
diff
changeset
|
179 rm -f LINGUAS vim.desktop gvim.desktop tmp_*desktop |
7 | 180 |
181 distclean: clean | |
182 | |
628 | 183 checkclean: |
184 rm -f *.ck | |
185 | |
21989
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
186 PO_INPUTLIST = \ |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
187 ../*.c \ |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
188 ../if_perl.xs \ |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
189 ../GvimExt/gvimext.cpp \ |
22071
aa91480771fe
patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
190 ../errors.h \ |
21989
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
191 ../globals.h \ |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
192 ../if_py_both.h \ |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
193 ../vim.h \ |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
194 gvim.desktop.in \ |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
195 vim.desktop.in |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
196 |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
197 PO_VIM_INPUTLIST = \ |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
198 ../../runtime/optwin.vim |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
199 |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
200 PO_VIM_JSLIST = \ |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
201 optwin.js |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
202 |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
203 $(PACKAGE).pot: $(PO_INPUTLIST) $(PO_VIM_INPUTLIST) |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
204 # Convert the Vim scripts to (what looks like) Javascript |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
205 $(VIM) -u NONE --not-a-term -S tojavascript.vim $(PACKAGE).pot $(PO_VIM_INPUTLIST) |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
206 # create vim.pot |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
207 $(XGETTEXT) --default-domain=$(PACKAGE) --add-comments \ |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
208 --keyword=_ --keyword=N_ --keyword=NGETTEXT:1,2 \ |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
209 $(PO_INPUTLIST) $(PO_VIM_JSLIST) |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
210 mv -f $(PACKAGE).po $(PACKAGE).pot |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
211 # Fix Vim scripts names, so that "gf" works |
22071
aa91480771fe
patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents:
21989
diff
changeset
|
212 $(VIM) -u NONE --not-a-term -S fixfilenames.vim $(PACKAGE).pot $(PO_VIM_INPUTLIST) |
21989
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
213 # Delete the temporary files |
52e970719f4b
patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
18664
diff
changeset
|
214 rm *.js |
7 | 215 |
16503
17f5563d1285
patch 8.1.1255: building desktop files fails on FreeBSD
Bram Moolenaar <Bram@vim.org>
parents:
16473
diff
changeset
|
216 vim.desktop: vim.desktop.in $(POFILES) |
18664 | 217 echo $(LANGUAGES) | tr " " "\n" |sed -e '/\./d' | sort > LINGUAS |
16934
87abfb36d815
patch 8.1.1468: the generated desktop files may be invalid
Bram Moolenaar <Bram@vim.org>
parents:
16557
diff
changeset
|
218 $(MSGFMT) --desktop -d . --template vim.desktop.in -o tmp_vim.desktop |
16557
86e69ed040e3
patch 8.1.1282: running make in src/po leaves LINGUAS file behind
Bram Moolenaar <Bram@vim.org>
parents:
16503
diff
changeset
|
219 rm -f LINGUAS |
16934
87abfb36d815
patch 8.1.1468: the generated desktop files may be invalid
Bram Moolenaar <Bram@vim.org>
parents:
16557
diff
changeset
|
220 if command -v desktop-file-validate; then desktop-file-validate tmp_vim.desktop; fi |
87abfb36d815
patch 8.1.1468: the generated desktop files may be invalid
Bram Moolenaar <Bram@vim.org>
parents:
16557
diff
changeset
|
221 mv tmp_vim.desktop vim.desktop |
16503
17f5563d1285
patch 8.1.1255: building desktop files fails on FreeBSD
Bram Moolenaar <Bram@vim.org>
parents:
16473
diff
changeset
|
222 |
29533 | 223 # The dependency on vim.desktop is only to avoid the two targets are build at |
224 # the same time, which causes a race for the LINGUAS file. | |
225 gvim.desktop: gvim.desktop.in $(POFILES) vim.desktop | |
18664 | 226 echo $(LANGUAGES) | tr " " "\n" |sed -e '/\./d' | sort > LINGUAS |
16934
87abfb36d815
patch 8.1.1468: the generated desktop files may be invalid
Bram Moolenaar <Bram@vim.org>
parents:
16557
diff
changeset
|
227 $(MSGFMT) --desktop -d . --template gvim.desktop.in -o tmp_gvim.desktop |
16557
86e69ed040e3
patch 8.1.1282: running make in src/po leaves LINGUAS file behind
Bram Moolenaar <Bram@vim.org>
parents:
16503
diff
changeset
|
228 rm -f LINGUAS |
16934
87abfb36d815
patch 8.1.1468: the generated desktop files may be invalid
Bram Moolenaar <Bram@vim.org>
parents:
16557
diff
changeset
|
229 if command -v desktop-file-validate; then desktop-file-validate tmp_gvim.desktop; fi |
87abfb36d815
patch 8.1.1468: the generated desktop files may be invalid
Bram Moolenaar <Bram@vim.org>
parents:
16557
diff
changeset
|
230 mv tmp_gvim.desktop gvim.desktop |
16285
e71261a88630
patch 8.1.1147: desktop file translations are requiring manual updates
Bram Moolenaar <Bram@vim.org>
parents:
14187
diff
changeset
|
231 |
1698 | 232 update-po: $(LANGUAGES) |
233 | |
7 | 234 # Don't add a dependency here, we only want to update the .po files manually |
235 $(LANGUAGES): | |
236 @$(MAKE) $(PACKAGE).pot | |
237 if test ! -f $@.po.orig; then cp $@.po $@.po.orig; fi | |
238 mv $@.po $@.po.old | |
239 if $(MSGMERGE) $@.po.old $(PACKAGE).pot -o $@.po; then \ | |
240 rm -f $@.po.old; \ | |
241 else \ | |
242 echo "msgmerge for $@.po failed!"; mv $@.po.old $@.po; \ | |
243 fi |