Skip to content

Commit 3327d0f

Browse files
committed
Update src/po/*.mak for Win32
1 parent 4799878 commit 3327d0f

File tree

5 files changed

+80
-13
lines changed

5 files changed

+80
-13
lines changed

src/po/Make_cyg.mak

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,14 @@
88
# Use at your own risk but with care, it could even kill your canary.
99
#
1010

11+
# TODO: GNU gettext 0.19.5.1 cannot process ja.sjis and zh_CN.cp936.
12+
1113
ifndef VIMRUNTIME
1214
VIMRUNTIME = ../../runtime
1315
endif
1416

15-
LANGUAGES = af \
17+
LANGUAGES = \
18+
af \
1619
ca \
1720
cs \
1821
cs.cp1250 \
@@ -25,12 +28,15 @@ LANGUAGES = af \
2528
ga \
2629
it \
2730
ja \
28-
ja.sjis \
31+
ja.euc-jp \
2932
ko \
3033
ko.UTF-8 \
34+
nb \
35+
nl \
3136
no \
3237
pl \
3338
pl.cp1250 \
39+
pl.UTF-8 \
3440
pt_BR \
3541
ru \
3642
ru.cp1251 \
@@ -42,11 +48,11 @@ LANGUAGES = af \
4248
vi \
4349
zh_CN \
4450
zh_CN.UTF-8 \
45-
zh_CN.cp936 \
4651
zh_TW \
4752
zh_TW.UTF-8 \
4853

49-
MOFILES = af.mo \
54+
MOFILES = \
55+
af.mo \
5056
ca.mo \
5157
cs.cp1250.mo \
5258
cs.mo \
@@ -58,13 +64,16 @@ MOFILES = af.mo \
5864
fr.mo \
5965
ga.mo \
6066
it.mo \
67+
ja.euc-jp.mo \
6168
ja.mo \
62-
ja.sjis.mo \
6369
ko.mo \
6470
ko.UTF-8.mo \
71+
nb.mo \
72+
nl.mo \
6573
no.mo \
6674
pl.cp1250.mo \
6775
pl.mo \
76+
pl.UTF-8.mo \
6877
pt_BR.mo \
6978
ru.cp1251.mo \
7079
ru.mo \
@@ -74,11 +83,10 @@ MOFILES = af.mo \
7483
uk.cp1251.mo \
7584
uk.mo \
7685
vi.mo \
77-
zh_CN.UTF-8.mo \
78-
zh_CN.cp936.mo \
7986
zh_CN.mo \
80-
zh_TW.UTF-8.mo \
87+
zh_CN.UTF-8.mo \
8188
zh_TW.mo \
89+
zh_TW.UTF-8.mo \
8290

8391
PACKAGE = vim
8492

src/po/Make_ming.mak

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,13 @@
1010
# language (xx) and add it to the next three lines.
1111
#
1212

13+
# TODO: GNU gettext 0.19.5.1 cannot process ja.sjis and zh_CN.cp936.
14+
1315
LANGUAGES = \
1416
af \
1517
ca \
1618
cs \
19+
cs.cp1250 \
1720
de \
1821
en_GB \
1922
eo \
@@ -23,23 +26,33 @@ LANGUAGES = \
2326
ga \
2427
it \
2528
ja \
29+
ja.euc-jp \
2630
ko \
31+
ko.UTF-8 \
32+
nb \
33+
nl \
2734
no \
2835
pl \
36+
pl.cp1250 \
37+
pl.UTF-8 \
2938
pt_BR \
3039
ru \
40+
ru.cp1251 \
3141
sk \
42+
sk.cp1250 \
3243
sv \
3344
uk \
45+
uk.cp1251 \
3446
vi \
3547
zh_CN \
36-
zh_CN.UTF-8\
48+
zh_CN.UTF-8 \
3749
zh_TW \
3850
zh_TW.UTF-8 \
3951

4052
MOFILES = \
4153
af.mo \
4254
ca.mo \
55+
cs.cp1250.mo \
4356
cs.mo \
4457
de.mo \
4558
en_GB.mo \
@@ -49,20 +62,29 @@ MOFILES = \
4962
fr.mo \
5063
ga.mo \
5164
it.mo \
65+
ja.euc-jp.mo \
5266
ja.mo \
5367
ko.mo \
68+
ko.UTF-8.mo \
69+
nb.mo \
70+
nl.mo \
5471
no.mo \
72+
pl.cp1250.mo \
5573
pl.mo \
74+
pl.UTF-8.mo \
5675
pt_BR.mo \
76+
ru.cp1251.mo \
5777
ru.mo \
78+
sk.cp1250.mo \
5879
sk.mo \
5980
sv.mo \
81+
uk.cp1251.mo \
6082
uk.mo \
6183
vi.mo \
62-
zh_CN.UTF-8.mo \
6384
zh_CN.mo \
64-
zh_TW.UTF-8.mo \
85+
zh_CN.UTF-8.mo \
6586
zh_TW.mo \
87+
zh_TW.UTF-8.mo \
6688

6789
PACKAGE = vim
6890

@@ -108,6 +130,11 @@ install:
108130
$(MKD) $(VIMRUNTIME)\lang\$(LANGUAGE)\LC_MESSAGES
109131
$(CP) $(LANGUAGE).mo $(VIMRUNTIME)\lang\$(LANGUAGE)\LC_MESSAGES\$(PACKAGE).mo
110132

133+
install-all: all
134+
FOR %%l IN ($(LANGUAGES)) DO @IF NOT EXIST $(VIMRUNTIME)\lang\%%l $(MKD) $(VIMRUNTIME)\lang\%%l
135+
FOR %%l IN ($(LANGUAGES)) DO @IF NOT EXIST $(VIMRUNTIME)\lang\%%l\LC_MESSAGES $(MKD) $(VIMRUNTIME)\lang\%%l\LC_MESSAGES
136+
FOR %%l IN ($(LANGUAGES)) DO @$(CP) %%l.mo $(VIMRUNTIME)\lang\%%l\LC_MESSAGES\$(PACKAGE).mo
137+
111138
clean:
112139
$(RM) *.mo
113140
$(RM) *.pot

src/po/Make_mvc.mak

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@
66
# Please read README_mvc.txt before using this file.
77
#
88

9+
# TODO: GNU gettext 0.19.5.1 cannot process ja.sjis and zh_CN.cp936.
10+
911
LANGUAGES = \
1012
af \
1113
ca \
1214
cs \
15+
cs.cp1250 \
1316
de \
1417
en_GB \
1518
eo \
@@ -19,14 +22,23 @@ LANGUAGES = \
1922
ga \
2023
it \
2124
ja \
25+
ja.euc-jp \
2226
ko \
27+
ko.UTF-8 \
28+
nb \
29+
nl \
2330
no \
2431
pl \
32+
pl.cp1250 \
33+
pl.UTF-8 \
2534
pt_BR \
2635
ru \
36+
ru.cp1251 \
2737
sk \
38+
sk.cp1250 \
2839
sv \
2940
uk \
41+
uk.cp1251 \
3042
vi \
3143
zh_CN \
3244
zh_CN.UTF-8 \
@@ -36,6 +48,7 @@ LANGUAGES = \
3648
MOFILES = \
3749
af.mo \
3850
ca.mo \
51+
cs.cp1250.mo \
3952
cs.mo \
4053
de.mo \
4154
en_GB.mo \
@@ -45,20 +58,29 @@ MOFILES = \
4558
fr.mo \
4659
ga.mo \
4760
it.mo \
61+
ja.euc-jp.mo \
4862
ja.mo \
4963
ko.mo \
64+
ko.UTF-8.mo \
65+
nb.mo \
66+
nl.mo \
5067
no.mo \
68+
pl.cp1250.mo \
5169
pl.mo \
70+
pl.UTF-8.mo \
5271
pt_BR.mo \
72+
ru.cp1251.mo \
5373
ru.mo \
74+
sk.cp1250.mo \
5475
sk.mo \
5576
sv.mo \
77+
uk.cp1251.mo \
5678
uk.mo \
5779
vi.mo \
58-
zh_CN.UTF-8.mo \
5980
zh_CN.mo \
60-
zh_TW.UTF-8.mo \
81+
zh_CN.UTF-8.mo \
6182
zh_TW.mo \
83+
zh_TW.UTF-8.mo \
6284

6385
PACKAGE = vim
6486

@@ -105,6 +127,10 @@ install:
105127
if not exist $(INSTALLDIR) $(MKD) $(INSTALLDIR)
106128
$(CP) $(LANGUAGE).mo $(INSTALLDIR)\$(PACKAGE).mo
107129

130+
install-all: all
131+
FOR %%l IN ($(LANGUAGES)) DO @IF NOT EXIST $(VIMRUNTIME)\lang\%%l\LC_MESSAGES $(MKD) $(VIMRUNTIME)\lang\%%l\LC_MESSAGES
132+
FOR %%l IN ($(LANGUAGES)) DO @$(CP) %%l.mo $(VIMRUNTIME)\lang\%%l\LC_MESSAGES\$(PACKAGE).mo
133+
108134
clean:
109135
$(RM) *.mo
110136
$(RM) *.pot

src/po/README_mingw.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ the same as in the Unix case, only the commands change):
8686

8787
This will create the xx\LC_MESSAGES directory (if it does not exist) and
8888
will copy vim.po to it.
89+
You can also use the following command to install all languages:
90+
91+
make -f Make_ming.mak install-all
8992

9093
(6) Another extra step ;-)). The command:
9194

src/po/README_mvc.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ Install your translation with the following command:
111111

112112
This will create the xx\LC_MESSAGES directory in runtime\lang if it does not
113113
already exist.
114+
You can also use the following command to install all languages:
115+
116+
nmake -f make_mvc.mak install-all
114117

115118

116119
vim:tw=78:

0 commit comments

Comments
 (0)