Mercurial > vim
annotate src/po/Make_mvc.mak @ 13802:378f9f8e6d8f v8.0.1773
patch 8.0.1773: dialog messages are not translated
commit https://github.com/vim/vim/commit/c36651b4b946333dce0a916326d821d2562cf39d
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Apr 29 12:22:56 2018 +0200
patch 8.0.1773: dialog messages are not translated
Problem: Dialog messages are not translated.
Solution: Add N_() and _() where needed. (Sergey Alyoshin)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 29 Apr 2018 12:30:09 +0200 |
parents | a62eeee5f116 |
children | a36fb263c35e |
rev | line source |
---|---|
7 | 1 # Makefile for the Vim message translations for MSVC |
2 # (based on make_ming.mak) | |
3 # | |
4 # Mike Williams <mrw@eandem.co.uk> | |
5 # | |
6 # Please read README_mvc.txt before using this file. | |
7 # | |
8 | |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
2472
diff
changeset
|
9 !ifndef VIMRUNTIME |
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
2472
diff
changeset
|
10 VIMRUNTIME = ..\..\runtime |
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
2472
diff
changeset
|
11 !endif |
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
2472
diff
changeset
|
12 |
435 | 13 LANGUAGES = \ |
14 af \ | |
15 ca \ | |
16 cs \ | |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
2472
diff
changeset
|
17 cs.cp1250 \ |
435 | 18 de \ |
19 en_GB \ | |
1621 | 20 eo \ |
435 | 21 es \ |
1621 | 22 fi \ |
435 | 23 fr \ |
24 ga \ | |
25 it \ | |
26 ja \ | |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
2472
diff
changeset
|
27 ja.euc-jp \ |
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
2472
diff
changeset
|
28 ja.sjis \ |
435 | 29 ko \ |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
2472
diff
changeset
|
30 ko.UTF-8 \ |
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
2472
diff
changeset
|
31 nb \ |
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
2472
diff
changeset
|
32 nl \ |
435 | 33 no \ |
34 pl \ | |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
2472
diff
changeset
|
35 pl.cp1250 \ |
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
2472
diff
changeset
|
36 pl.UTF-8 \ |
1698 | 37 pt_BR \ |
435 | 38 ru \ |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
2472
diff
changeset
|
39 ru.cp1251 \ |
435 | 40 sk \ |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
2472
diff
changeset
|
41 sk.cp1250 \ |
13735 | 42 sr \ |
435 | 43 sv \ |
44 uk \ | |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
2472
diff
changeset
|
45 uk.cp1251 \ |
435 | 46 vi \ |
47 zh_CN \ | |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
2472
diff
changeset
|
48 zh_CN.cp936 \ |
435 | 49 zh_CN.UTF-8 \ |
50 zh_TW \ | |
51 zh_TW.UTF-8 \ | |
52 | |
53 MOFILES = \ | |
54 af.mo \ | |
55 ca.mo \ | |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
2472
diff
changeset
|
56 cs.cp1250.mo \ |
435 | 57 cs.mo \ |
58 de.mo \ | |
59 en_GB.mo \ | |
1621 | 60 eo.mo \ |
435 | 61 es.mo \ |
1621 | 62 fi.mo \ |
435 | 63 fr.mo \ |
64 ga.mo \ | |
65 it.mo \ | |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
2472
diff
changeset
|
66 ja.euc-jp.mo \ |
435 | 67 ja.mo \ |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
2472
diff
changeset
|
68 ja.sjis.mo \ |
435 | 69 ko.mo \ |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
2472
diff
changeset
|
70 ko.UTF-8.mo \ |
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
2472
diff
changeset
|
71 nb.mo \ |
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
2472
diff
changeset
|
72 nl.mo \ |
435 | 73 no.mo \ |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
2472
diff
changeset
|
74 pl.cp1250.mo \ |
435 | 75 pl.mo \ |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
2472
diff
changeset
|
76 pl.UTF-8.mo \ |
1698 | 77 pt_BR.mo \ |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
2472
diff
changeset
|
78 ru.cp1251.mo \ |
435 | 79 ru.mo \ |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
2472
diff
changeset
|
80 sk.cp1250.mo \ |
435 | 81 sk.mo \ |
13735 | 82 sr.mo \ |
435 | 83 sv.mo \ |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
2472
diff
changeset
|
84 uk.cp1251.mo \ |
435 | 85 uk.mo \ |
86 vi.mo \ | |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
2472
diff
changeset
|
87 zh_CN.mo \ |
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
2472
diff
changeset
|
88 zh_CN.cp936.mo \ |
435 | 89 zh_CN.UTF-8.mo \ |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
2472
diff
changeset
|
90 zh_TW.mo \ |
435 | 91 zh_TW.UTF-8.mo \ |
7 | 92 |
93 PACKAGE = vim | |
94 | |
2472
3567e0d56891
Updated version of gettext for use with MVC. (Mike Williams)
Bram Moolenaar <bram@vim.org>
parents:
1698
diff
changeset
|
95 # Correct the following line for the directory where gettext et al is installed |
3567e0d56891
Updated version of gettext for use with MVC. (Mike Williams)
Bram Moolenaar <bram@vim.org>
parents:
1698
diff
changeset
|
96 GETTEXT_PATH = H:\gettext.0.14.4\bin |
7 | 97 |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
2472
diff
changeset
|
98 MSGFMT = $(GETTEXT_PATH)\msgfmt -v |
7 | 99 XGETTEXT = $(GETTEXT_PATH)\xgettext |
100 MSGMERGE = $(GETTEXT_PATH)\msgmerge | |
101 | |
102 MV = move | |
103 CP = copy | |
104 RM = del | |
105 MKD = mkdir | |
106 LS = dir | |
107 | |
108 LSFLAGS = /b /on /l /s | |
109 | |
110 INSTALLDIR = $(VIMRUNTIME)\lang\$(LANGUAGE)\LC_MESSAGES | |
111 | |
112 .SUFFIXES: | |
113 .SUFFIXES: .po .mo .pot | |
114 | |
115 .po.mo: | |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
2472
diff
changeset
|
116 set OLD_PO_FILE_INPUT=yes |
7 | 117 $(MSGFMT) -o $@ $< |
118 | |
119 all: $(MOFILES) | |
120 | |
121 files: | |
13802
378f9f8e6d8f
patch 8.0.1773: dialog messages are not translated
Christian Brabandt <cb@256bit.org>
parents:
13735
diff
changeset
|
122 $(LS) $(LSFLAGS) ..\*.c ..\if_perl.xs ..\GvimExt\gvimext.cpp ..\globals.h ..\if_py_both.h ..\vim.h > .\files |
7 | 123 |
124 first_time: files | |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
2472
diff
changeset
|
125 set OLD_PO_FILE_INPUT=yes |
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
2472
diff
changeset
|
126 set OLD_PO_FILE_OUTPUT=yes |
13464
cf04dbb33f41
patch 8.0.1606: singular/plural variants not translated
Christian Brabandt <cb@256bit.org>
parents:
12748
diff
changeset
|
127 $(XGETTEXT) --default-domain=$(LANGUAGE) --add-comments --keyword=_ --keyword=N_ --keyword=NGETTEXT:1,2 --files-from=.\files |
7 | 128 |
129 $(LANGUAGES): files | |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
2472
diff
changeset
|
130 set OLD_PO_FILE_INPUT=yes |
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
2472
diff
changeset
|
131 set OLD_PO_FILE_OUTPUT=yes |
13464
cf04dbb33f41
patch 8.0.1606: singular/plural variants not translated
Christian Brabandt <cb@256bit.org>
parents:
12748
diff
changeset
|
132 $(XGETTEXT) --default-domain=$(PACKAGE) --add-comments --keyword=_ --keyword=N_ --keyword=NGETTEXT:1,2 --files-from=.\files |
7 | 133 $(MV) $(PACKAGE).po $(PACKAGE).pot |
134 $(CP) $@.po $@.po.orig | |
135 $(MV) $@.po $@.po.old | |
136 $(MSGMERGE) $@.po.old $(PACKAGE).pot -o $@.po | |
137 $(RM) $@.po.old | |
138 | |
139 install: | |
140 if not exist $(INSTALLDIR) $(MKD) $(INSTALLDIR) | |
141 $(CP) $(LANGUAGE).mo $(INSTALLDIR)\$(PACKAGE).mo | |
142 | |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
2472
diff
changeset
|
143 install-all: all |
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
2472
diff
changeset
|
144 FOR %%l IN ($(LANGUAGES)) DO @IF NOT EXIST $(VIMRUNTIME)\lang\%%l\LC_MESSAGES $(MKD) $(VIMRUNTIME)\lang\%%l\LC_MESSAGES |
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
2472
diff
changeset
|
145 FOR %%l IN ($(LANGUAGES)) DO @$(CP) %%l.mo $(VIMRUNTIME)\lang\%%l\LC_MESSAGES\$(PACKAGE).mo |
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
2472
diff
changeset
|
146 |
7 | 147 clean: |
148 $(RM) *.mo | |
149 $(RM) *.pot |