Skip to content

Commit 16110cc

Browse files
ychinbrammool
authored andcommitted
patch 9.0.1410: MacOS: sed fails on .po files
Problem: MacOS: sed fails on .po files. Solution: Set $LANG to "C". (Yee Cheng Chin, closes #12153)
1 parent d11ac40 commit 16110cc

6 files changed

Lines changed: 67 additions & 44 deletions

File tree

runtime/lang/Makefile

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -25,24 +25,25 @@ all: \
2525
menu_hu_hu.iso_8859-2.vim \
2626
menu_sk_sk.iso_8859-2.vim \
2727

28+
SED = LANG=C sed
2829

2930
# Convert menu_zh_cn.utf-8.vim to create menu_chinese_gb.936.vim.
3031
menu_chinese_gb.936.vim: menu_zh_cn.utf-8.vim
3132
rm -f menu_chinese_gb.936.vim
3233
iconv -f utf-8 -t cp936 menu_zh_cn.utf-8.vim | \
33-
sed -e 's/scriptencoding utf-8/scriptencoding cp936/' -e 's/" Original translations/" Generated from menu_zh_cn.utf-8.vim, DO NOT EDIT/' > menu_chinese_gb.936.vim
34+
$(SED) -e 's/scriptencoding utf-8/scriptencoding cp936/' -e 's/" Original translations/" Generated from menu_zh_cn.utf-8.vim, DO NOT EDIT/' > menu_chinese_gb.936.vim
3435

3536
# Convert menu_zh_tw.utf-8.vim to create menu_chinese_taiwan.950.vim.
3637
menu_chinese_taiwan.950.vim: menu_zh_tw.utf-8.vim
3738
rm -f menu_chinese_taiwan.950.vim
3839
iconv -f utf-8 -t cp950 menu_zh_tw.utf-8.vim | \
39-
sed -e 's/scriptencoding utf-8/scriptencoding cp950/' -e 's/" Original translations/" Generated from menu_zh_tw.utf-8.vim, DO NOT EDIT/' > menu_chinese_taiwan.950.vim
40+
$(SED) -e 's/scriptencoding utf-8/scriptencoding cp950/' -e 's/" Original translations/" Generated from menu_zh_tw.utf-8.vim, DO NOT EDIT/' > menu_chinese_taiwan.950.vim
4041

4142
# Convert menu_cs_cz.utf-8.vim to create menu_cs_cz.iso_8859-2.vim.
4243
menu_cs_cz.iso_8859-2.vim: menu_cs_cz.utf-8.vim
4344
rm -f menu_cs_cz.iso_8859-2.vim
4445
iconv -f utf-8 -t iso8859-2 menu_cs_cz.utf-8.vim | \
45-
sed -e 's/scriptencoding utf-8/scriptencoding iso-8859-2/' \
46+
$(SED) -e 's/scriptencoding utf-8/scriptencoding iso-8859-2/' \
4647
-e 's/" Original translations/" Generated from menu_cs_cz.utf-8.vim, DO NOT EDIT/' \
4748
-e 's/\(" Menu Translations:.*\)(.*)/\1(ISO8859-2)/' \
4849
> menu_cs_cz.iso_8859-2.vim
@@ -51,15 +52,15 @@ menu_cs_cz.iso_8859-2.vim: menu_cs_cz.utf-8.vim
5152
menu_czech_czech_republic.1250.vim: menu_cs_cz.utf-8.vim
5253
rm -f menu_czech_czech_republic.1250.vim
5354
iconv -f utf-8 -t cp1250 menu_cs_cz.utf-8.vim | \
54-
sed -e 's/scriptencoding utf-8/scriptencoding cp1250/' \
55+
$(SED) -e 's/scriptencoding utf-8/scriptencoding cp1250/' \
5556
-e 's/" Original translations/" Generated from menu_cs_cz.utf-8.vim, DO NOT EDIT/' \
5657
-e 's/\(" Menu Translations:.*\)(.*)/\1(CP1250)/' \
5758
> menu_czech_czech_republic.1250.vim
5859

5960
# Convert menu_cs_cz.utf-8.vim to create menu_czech_czech_republic.ascii.vim.
6061
menu_czech_czech_republic.ascii.vim: menu_cs_cz.utf-8.vim
6162
rm -f menu_czech_czech_republic.ascii.vim
62-
sed -e 's/Á/A/g' -e 's/á/a/g' -e 's/Č/C/g' -e 's/č/c/g' -e 's/Ď/D/g' \
63+
$(SED) -e 's/Á/A/g' -e 's/á/a/g' -e 's/Č/C/g' -e 's/č/c/g' -e 's/Ď/D/g' \
6364
-e 's/ď/d/g' -e 's/É/E/g' -e 's/é/e/g' -e 's/Ě/E/g' -e 's/ě/e/g' \
6465
-e 's/Í/I/g' -e 's/í/i/g' -e 's/Ň/N/g' -e 's/ň/n/g' -e 's/Ó/O/g' \
6566
-e 's/ó/o/g' -e 's/Ř/R/g' -e 's/ř/r/g' -e 's/Š/S/g' -e 's/š/s/g' \
@@ -74,7 +75,7 @@ menu_czech_czech_republic.ascii.vim: menu_cs_cz.utf-8.vim
7475
menu_ja_jp.euc-jp.vim: menu_ja_jp.utf-8.vim
7576
rm -f menu_ja_jp.euc-jp.vim
7677
iconv -f utf-8 -t euc-jp menu_ja_jp.utf-8.vim | \
77-
sed -e 's/scriptencoding utf-8/scriptencoding euc-jp/' \
78+
$(SED) -e 's/scriptencoding utf-8/scriptencoding euc-jp/' \
7879
-e 's/" Original translations/" Generated from menu_ja_jp.utf-8.vim, DO NOT EDIT/' \
7980
-e 's/\(" Menu Translations:.*\)(.*)/\1(EUC-JP)/' \
8081
> menu_ja_jp.euc-jp.vim
@@ -83,7 +84,7 @@ menu_ja_jp.euc-jp.vim: menu_ja_jp.utf-8.vim
8384
menu_japanese_japan.932.vim: menu_ja_jp.utf-8.vim
8485
rm -f menu_japanese_japan.932.vim
8586
iconv -f utf-8 -t cp932 menu_ja_jp.utf-8.vim | \
86-
sed -e 's/scriptencoding utf-8/scriptencoding cp932/' \
87+
$(SED) -e 's/scriptencoding utf-8/scriptencoding cp932/' \
8788
-e 's/" Original translations/" Generated from menu_ja_jp.utf-8.vim, DO NOT EDIT/' \
8889
-e 's/\(" Menu Translations:.*\)(.*)/\1(CP932)/' \
8990
> menu_japanese_japan.932.vim
@@ -92,67 +93,67 @@ menu_japanese_japan.932.vim: menu_ja_jp.utf-8.vim
9293
menu_ko_kr.euckr.vim: menu_ko_kr.utf-8.vim
9394
rm -f menu_ko_kr.euckr.vim
9495
iconv -f utf-8 -t euc-kr menu_ko_kr.utf-8.vim | \
95-
sed -e 's/scriptencoding utf-8/scriptencoding euc-kr/' -e 's/" Original translations/" Generated from menu_ko_kr.utf-8.vim, DO NOT EDIT/' > menu_ko_kr.euckr.vim
96+
$(SED) -e 's/scriptencoding utf-8/scriptencoding euc-kr/' -e 's/" Original translations/" Generated from menu_ko_kr.utf-8.vim, DO NOT EDIT/' > menu_ko_kr.euckr.vim
9697

9798
# Convert menu_pl_pl.utf-8.vim to create menu_pl_pl.iso_8859-2.vim.
9899
menu_pl_pl.iso_8859-2.vim: menu_pl_pl.utf-8.vim
99100
rm -f menu_pl_pl.iso_8859-2.vim
100101
iconv -f utf-8 -t iso8859-2 menu_pl_pl.utf-8.vim | \
101-
sed -e 's/scriptencoding utf-8/scriptencoding iso-8859-2/' -e 's/" Original translations/" Generated from menu_pl_pl.utf-8.vim, DO NOT EDIT/' > menu_pl_pl.iso_8859-2.vim
102+
$(SED) -e 's/scriptencoding utf-8/scriptencoding iso-8859-2/' -e 's/" Original translations/" Generated from menu_pl_pl.utf-8.vim, DO NOT EDIT/' > menu_pl_pl.iso_8859-2.vim
102103

103104
# Convert menu_pl_pl.utf-8.vim to create menu_polish_poland.1250.vim.
104105
menu_polish_poland.1250.vim: menu_pl_pl.utf-8.vim
105106
rm -f menu_polish_poland.1250.vim
106107
iconv -f utf-8 -t cp1250 menu_pl_pl.utf-8.vim | \
107-
sed -e 's/scriptencoding utf-8/scriptencoding cp1250/' -e 's/" Original translations/" Generated from menu_pl_pl.utf-8.vim, DO NOT EDIT/' > menu_polish_poland.1250.vim
108+
$(SED) -e 's/scriptencoding utf-8/scriptencoding cp1250/' -e 's/" Original translations/" Generated from menu_pl_pl.utf-8.vim, DO NOT EDIT/' > menu_polish_poland.1250.vim
108109

109110
# Convert menu_ru_ru.utf-8.vim to create menu_ru_ru.koi8-r.vim.
110111
menu_ru_ru.koi8-r.vim: menu_ru_ru.utf-8.vim
111112
rm -f menu_ru_ru.koi8-r.vim
112113
iconv -f utf-8 -t koi8-r menu_ru_ru.utf-8.vim | \
113-
sed -e 's/scriptencoding utf-8/scriptencoding koi8-r/' -e 's/" Original translations/" Generated from menu_ru_ru.utf-8.vim, DO NOT EDIT/' > menu_ru_ru.koi8-r.vim
114+
$(SED) -e 's/scriptencoding utf-8/scriptencoding koi8-r/' -e 's/" Original translations/" Generated from menu_ru_ru.utf-8.vim, DO NOT EDIT/' > menu_ru_ru.koi8-r.vim
114115

115116
# Convert menu_sl_si.utf-8.vim to create menu_sl_si.cp1250.vim.
116117
menu_sl_si.cp1250.vim: menu_sl_si.utf-8.vim
117118
rm -f menu_sl_si.cp1250.vim
118119
iconv -f utf-8 -t cp1250 menu_sl_si.utf-8.vim | \
119-
sed -e 's/scriptencoding utf-8/scriptencoding cp1250/' \
120+
$(SED) -e 's/scriptencoding utf-8/scriptencoding cp1250/' \
120121
-e 's/" Original translations/" Generated from menu_sl_si.utf-8.vim, DO NOT EDIT/' > menu_sl_si.cp1250.vim
121122

122123
# Convert menu_uk_ua.utf-8.vim to create menu_sl_si.latin2.vim.
123124
menu_sl_si.latin2.vim: menu_sl_si.utf-8.vim
124125
rm -f menu_sl_si.latin2.vim
125126
iconv -f utf-8 -t latin2 menu_sl_si.utf-8.vim | \
126-
sed -e 's/scriptencoding utf-8/scriptencoding latin2/' -e 's/" Original translations/" Generated from menu_sl_si.utf-8.vim, DO NOT EDIT/' > menu_sl_si.latin2.vim
127+
$(SED) -e 's/scriptencoding utf-8/scriptencoding latin2/' -e 's/" Original translations/" Generated from menu_sl_si.utf-8.vim, DO NOT EDIT/' > menu_sl_si.latin2.vim
127128

128129
# Convert menu_uk_ua.utf-8.vim to create menu_slovak_slovak_republic.1250.vim.
129130
menu_slovak_slovak_republic.1250.vim: menu_sl_si.utf-8.vim
130131
rm -f menu_slovak_slovak_republic.1250.vim
131132
iconv -f utf-8 -t cp1250 menu_sl_si.utf-8.vim | \
132-
sed -e 's/scriptencoding utf-8/scriptencoding cp1250/' -e 's/" Original translations/" Generated from menu_sl_si.utf-8.vim, DO NOT EDIT/' > menu_slovak_slovak_republic.1250.vim
133+
$(SED) -e 's/scriptencoding utf-8/scriptencoding cp1250/' -e 's/" Original translations/" Generated from menu_sl_si.utf-8.vim, DO NOT EDIT/' > menu_slovak_slovak_republic.1250.vim
133134

134135
# Convert menu_tr_tr.utf-8.vim to create menu_tr_tr.cp1254.vim.
135136
menu_tr_tr.cp1254.vim: menu_tr_tr.utf-8.vim
136137
rm -f menu_tr_tr.cp1254.vim
137138
iconv -f utf-8 -t cp1254 menu_tr_tr.utf-8.vim | \
138-
sed -e 's/scriptencoding utf-8/scriptencoding cp1254/' -e 's/" Original translations/" Generated from menu_tr_tr.utf-8.vim, DO NOT EDIT/' > menu_tr_tr.cp1254.vim
139+
$(SED) -e 's/scriptencoding utf-8/scriptencoding cp1254/' -e 's/" Original translations/" Generated from menu_tr_tr.utf-8.vim, DO NOT EDIT/' > menu_tr_tr.cp1254.vim
139140

140141
# Convert menu_tr_tr.utf-8.vim to create menu_tr_tr.iso_8859-9.vim.
141142
menu_tr_tr.iso_8859-9.vim: menu_tr_tr.utf-8.vim
142143
rm -f menu_tr_tr.iso_8859-9.vim
143144
iconv -f utf-8 -t iso8859-9 menu_tr_tr.utf-8.vim | \
144-
sed -e 's/scriptencoding utf-8/scriptencoding iso8859-9/' -e 's/" Original translations/" Generated from menu_tr_tr.utf-8.vim, DO NOT EDIT/' > menu_tr_tr.iso_8859-9.vim
145+
$(SED) -e 's/scriptencoding utf-8/scriptencoding iso8859-9/' -e 's/" Original translations/" Generated from menu_tr_tr.utf-8.vim, DO NOT EDIT/' > menu_tr_tr.iso_8859-9.vim
145146

146147
# Convert menu_sr_rs.utf-8.vim to create menu_sr_rs.iso_8859-5.vim.
147148
menu_sr_rs.iso_8859-5.vim: menu_sr_rs.utf-8.vim
148149
rm -f menu_sr_rs.iso_8859-5.vim
149150
iconv -f utf-8 -t iso8859-5 menu_sr_rs.utf-8.vim | \
150-
sed -e 's/scriptencoding utf-8/scriptencoding iso8859-5/' -e 's/" Original translations/" Generated from menu_sr_rs.utf-8.vim, DO NOT EDIT/' > menu_sr_rs.iso_8859-5.vim
151+
$(SED) -e 's/scriptencoding utf-8/scriptencoding iso8859-5/' -e 's/" Original translations/" Generated from menu_sr_rs.utf-8.vim, DO NOT EDIT/' > menu_sr_rs.iso_8859-5.vim
151152

152153
# Convert menu_sr_rs.utf-8.vim to create menu_sr_rs.iso_8859-2.vim.
153154
menu_sr_rs.iso_8859-2.vim: menu_sr_rs.utf-8.vim
154155
rm -f menu_sr_rs.iso_8859-2.vim
155-
sed -e 's/а/a/g' -e 's/б/b/g' -e 's/в/v/g' -e 's/г/g/g' -e 's/д/d/g' \
156+
$(SED) -e 's/а/a/g' -e 's/б/b/g' -e 's/в/v/g' -e 's/г/g/g' -e 's/д/d/g' \
156157
-e 's/ђ/đ/g' -e 's/е/e/g' -e 's/ж/ž/g' -e 's/з/z/g' -e 's/и/i/g' \
157158
-e 's/ј/j/g' -e 's/к/k/g' -e 's/л/l/g' -e 's/љ/lj/g' -e 's/м/m/g' \
158159
-e 's/н/n/g' -e 's/њ/nj/g' -e 's/о/o/g' -e 's/п/p/g' -e 's/р/r/g' \
@@ -171,7 +172,7 @@ menu_sr_rs.iso_8859-2.vim: menu_sr_rs.utf-8.vim
171172
# Convert menu_sr_rs.utf-8.vim to create menu_sr_rs.ascii.vim.
172173
menu_sr_rs.ascii.vim: menu_sr_rs.utf-8.vim
173174
rm -f menu_sr_rs.ascii.vim
174-
sed -e 's/а/a/g' -e 's/б/b/g' -e 's/в/v/g' -e 's/г/g/g' -e 's/д/d/g' \
175+
$(SED) -e 's/а/a/g' -e 's/б/b/g' -e 's/в/v/g' -e 's/г/g/g' -e 's/д/d/g' \
175176
-e 's/ђ/dj/g' -e 's/е/e/g' -e 's/ж/z/g' -e 's/з/z/g' -e 's/и/i/g' \
176177
-e 's/ј/j/g' -e 's/к/k/g' -e 's/л/l/g' -e 's/љ/lj/g' -e 's/м/m/g' \
177178
-e 's/н/n/g' -e 's/њ/nj/g' -e 's/о/o/g' -e 's/п/p/g' -e 's/р/r/g' \
@@ -190,22 +191,22 @@ menu_sr_rs.ascii.vim: menu_sr_rs.utf-8.vim
190191
menu_uk_ua.cp1251.vim: menu_uk_ua.utf-8.vim
191192
rm -f menu_uk_ua.cp1251.vim
192193
iconv -f utf-8 -t cp1251 menu_uk_ua.utf-8.vim | \
193-
sed -e 's/scriptencoding utf-8/scriptencoding cp1251/' -e 's/" Original translations/" Generated from menu_uk_ua.utf-8.vim, DO NOT EDIT/' > menu_uk_ua.cp1251.vim
194+
$(SED) -e 's/scriptencoding utf-8/scriptencoding cp1251/' -e 's/" Original translations/" Generated from menu_uk_ua.utf-8.vim, DO NOT EDIT/' > menu_uk_ua.cp1251.vim
194195

195196
# Convert menu_uk_ua.utf-8.vim to create menu_uk_ua.koi8-u.vim.
196197
menu_uk_ua.koi8-u.vim: menu_uk_ua.utf-8.vim
197198
rm -f menu_uk_ua.koi8-u.vim
198199
iconv -f utf-8 -t koi8-u menu_uk_ua.utf-8.vim | \
199-
sed -e 's/scriptencoding utf-8/scriptencoding koi8-u/' -e 's/" Original translations/" Generated from menu_uk_ua.utf-8.vim, DO NOT EDIT/' > menu_uk_ua.koi8-u.vim
200+
$(SED) -e 's/scriptencoding utf-8/scriptencoding koi8-u/' -e 's/" Original translations/" Generated from menu_uk_ua.utf-8.vim, DO NOT EDIT/' > menu_uk_ua.koi8-u.vim
200201

201202
# Convert menu_hu_hu.utf-8.vim to create menu_hu_hu.iso_8859-2.vim.
202203
menu_hu_hu.iso_8859-2.vim: menu_hu_hu.utf-8.vim
203204
rm -f menu_hu_hu.iso_8859-2.vim
204205
iconv -f utf-8 -t iso8859-2 menu_hu_hu.utf-8.vim | \
205-
sed -e 's/scriptencoding utf-8/scriptencoding iso-8859-2/' -e 's/" Original translations/" Generated from menu_hu_hu.utf-8.vim, DO NOT EDIT/' > menu_hu_hu.iso_8859-2.vim
206+
$(SED) -e 's/scriptencoding utf-8/scriptencoding iso-8859-2/' -e 's/" Original translations/" Generated from menu_hu_hu.utf-8.vim, DO NOT EDIT/' > menu_hu_hu.iso_8859-2.vim
206207

207208
# Convert menu_slovak_slovak_republic.1250.vim to create menu_sk_sk.iso_8859-2.vim.
208209
menu_sk_sk.iso_8859-2.vim: menu_slovak_slovak_republic.1250.vim
209210
rm -f menu_sk_sk.iso_8859-2.vim
210211
iconv -f cp1250 -t iso8859-2 menu_slovak_slovak_republic.1250.vim | \
211-
sed -e 's/scriptencoding cp1250/scriptencoding iso-8859-2/' -e 's/" Original translations/" Generated from menu_slovak_slovak_republic.1250.vim, DO NOT EDIT/' > menu_sk_sk.iso_8859-2.vim
212+
$(SED) -e 's/scriptencoding cp1250/scriptencoding iso-8859-2/' -e 's/" Original translations/" Generated from menu_slovak_slovak_republic.1250.vim, DO NOT EDIT/' > menu_sk_sk.iso_8859-2.vim

src/po/Make_all.mak

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ MOFILES = \
105105
it.mo \
106106
ja.mo \
107107
ko.UTF-8.mo \
108-
ko.mo \
109108
lv.mo \
110109
nb.mo \
111110
nl.mo \
@@ -121,20 +120,21 @@ MOFILES = \
121120
vi.mo \
122121
zh_CN.UTF-8.mo \
123122
zh_TW.UTF-8.mo \
124-
zh_TW.mo \
125123

126124

127125
MOCONVERTED = \
128126
cs.cp1250.mo \
129127
ja.euc-jp.mo \
130128
ja.sjis.mo \
129+
ko.mo \
131130
pl.UTF-8.mo \
132131
pl.cp1250.mo \
133132
ru.cp1251.mo \
134133
sk.cp1250.mo \
135134
uk.cp1251.mo \
136135
zh_CN.mo \
137136
zh_CN.cp936.mo \
137+
zh_TW.mo \
138138

139139

140140
CHECKFILES = \

src/po/Makefile

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ PACKAGE = vim
1313
SHELL = /bin/sh
1414
VIM = ../vim
1515

16+
# MacOS sed is locale aware, set $LANG to avoid problems
17+
SED = LANG=C sed
18+
1619
# The OLD_PO_FILE_INPUT and OLD_PO_FILE_OUTPUT are for the new GNU gettext
1720
# tools 0.10.37, which use a slightly different .po file format that is not
1821
# compatible with Solaris (and old gettext implementations) unless these are
@@ -58,7 +61,7 @@ uninstall:
5861
@$(MAKE) prefixcheck
5962
for cat in $(MOFILES) $(MOCONVERTED); do \
6063
cat=`basename $$cat`; \
61-
lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
64+
lang=`echo $$cat | $(SED) 's/\$(CATOBJEXT)$$//'`; \
6265
rm -f $(LOCALEDIR)/$$lang/LC_MESSAGES/$(PACKAGE).mo; \
6366
done
6467

@@ -106,65 +109,71 @@ sjiscorr: sjiscorr.c
106109

107110
ja.euc-jp.po: ja.po
108111
iconv -f utf-8 -t euc-jp ja.po | \
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
112+
$(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
110113

111114
# Convert cs.po to create cs.cp1250.po.
112115
cs.cp1250.po: cs.po
113116
rm -f cs.cp1250.po
114117
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
118+
$(SED) -e 's/charset=ISO-8859-2/charset=cp1250/' -e 's/# Original translations/# Generated from cs.po, DO NOT EDIT/' > cs.cp1250.po
116119

117120
# Convert pl.po to create pl.cp1250.po.
118121
pl.cp1250.po: pl.po
119122
rm -f pl.cp1250.po
120123
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
124+
$(SED) -e 's/charset=ISO-8859-2/charset=cp1250/' -e 's/# Original translations/# Generated from pl.po, DO NOT EDIT/' > pl.cp1250.po
122125

123126
# Convert pl.po to create pl.UTF-8.po.
124127
pl.UTF-8.po: pl.po
125128
rm -f pl.UTF-8.po
126129
iconv -f iso-8859-2 -t utf-8 pl.po | \
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
130+
$(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
128131

129132
# Convert sk.po to create sk.cp1250.po.
130133
sk.cp1250.po: sk.po
131134
rm -f sk.cp1250.po
132135
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
136+
$(SED) -e 's/charset=ISO-8859-2/charset=cp1250/' -e 's/# Original translations/# Generated from sk.po, DO NOT EDIT/' > sk.cp1250.po
134137

135138
# Convert zh_CN.UTF-8.po to create zh_CN.po.
136139
zh_CN.po: zh_CN.UTF-8.po
137140
rm -f zh_CN.po
138141
iconv -f UTF-8 -t gb2312 zh_CN.UTF-8.po | \
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
142+
$(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
140143

141144
# Convert zh_CN.UTF-8.po to create zh_CN.cp936.po.
142145
# Set 'charset' to gbk to avoid that msfmt generates a warning.
143146
# This used to convert from zh_CN.po, but that results in a conversion error.
144147
zh_CN.cp936.po: zh_CN.UTF-8.po
145148
rm -f zh_CN.cp936.po
146149
iconv -f UTF-8 -t cp936 zh_CN.UTF-8.po | \
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
150+
$(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
151+
152+
# Convert zh_TW.UTF-8.po to create zh_TW.po
153+
zh_TW.po: zh_TW.UTF-8.po
154+
rm -f zh_TW.po
155+
iconv -f UTF-8 -t big5 zh_TW.UTF-8.po | \
156+
$(SED) -e 's/charset=[uU][tT][fF]-8/charset=big5/' -e 's/# Original translations/# Generated from zh_TW.UTF-8.po, DO NOT EDIT/' > zh_TW.po
148157

149158
# Convert ko.UTF-8.po to create ko.po.
150159
ko.po: ko.UTF-8.po
151160
rm -f ko.po
152161
iconv -f UTF-8 -t euc-kr ko.UTF-8.po | \
153-
sed -e 's/charset=UTF-8/charset=euc-kr/' \
162+
$(SED) -e 's/charset=UTF-8/charset=euc-kr/' \
154163
-e 's/# Korean translation for Vim/# Generated from ko.UTF-8.po, DO NOT EDIT/' \
155164
> ko.po
156165

157166
# Convert ru.po to create ru.cp1251.po.
158167
ru.cp1251.po: ru.po
159168
rm -f ru.cp1251.po
160169
iconv -f utf-8 -t cp1251 ru.po | \
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
170+
$(SED) -e 's/charset=[uU][tT][fF]-8/charset=cp1251/' -e 's/# Original translations/# Generated from ru.po, DO NOT EDIT/' > ru.cp1251.po
162171

163172
# Convert uk.po to create uk.cp1251.po.
164173
uk.cp1251.po: uk.po
165174
rm -f uk.cp1251.po
166175
iconv -f utf-8 -t cp1251 uk.po | \
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
176+
$(SED) -e 's/charset=[uU][tT][fF]-8/charset=cp1251/' -e 's/# Original translations/# Generated from uk.po, DO NOT EDIT/' > uk.cp1251.po
168177

169178
prefixcheck:
170179
@if test "x" = "x$(prefix)"; then \
@@ -214,7 +223,7 @@ $(PACKAGE).pot: $(PO_INPUTLIST) $(PO_VIM_INPUTLIST)
214223
rm *.js
215224

216225
vim.desktop: vim.desktop.in $(POFILES)
217-
echo $(LANGUAGES) | tr " " "\n" |sed -e '/\./d' | sort > LINGUAS
226+
echo $(LANGUAGES) | tr " " "\n" |$(SED) -e '/\./d' | sort > LINGUAS
218227
$(MSGFMT) --desktop -d . --template vim.desktop.in -o tmp_vim.desktop
219228
rm -f LINGUAS
220229
if command -v desktop-file-validate; then desktop-file-validate tmp_vim.desktop; fi
@@ -223,7 +232,7 @@ vim.desktop: vim.desktop.in $(POFILES)
223232
# The dependency on vim.desktop is only to avoid the two targets are build at
224233
# the same time, which causes a race for the LINGUAS file.
225234
gvim.desktop: gvim.desktop.in $(POFILES) vim.desktop
226-
echo $(LANGUAGES) | tr " " "\n" |sed -e '/\./d' | sort > LINGUAS
235+
echo $(LANGUAGES) | tr " " "\n" |$(SED) -e '/\./d' | sort > LINGUAS
227236
$(MSGFMT) --desktop -d . --template gvim.desktop.in -o tmp_gvim.desktop
228237
rm -f LINGUAS
229238
if command -v desktop-file-validate; then desktop-file-validate tmp_gvim.desktop; fi

src/po/zh_TW.UTF-8.po

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
# FIRST RELEASE Thu Jun 14 14:24:17 CST 2001
88
# MAINTAINER: Debian VIM Maintainers <[email protected]>
99
#
10+
# Original translations.
11+
#
1012
# Last update: $LastChangedDate: 2006-04-16 22:06:40 -0400 (dom, 16 apr 2006) $
1113
#
1214
# XXX This file is in need of a new maintainer, Debian VIM Maintainers maintain
@@ -2559,7 +2561,7 @@ msgstr ""
25592561
"gvim 認得的參數 (Athena 版):\n"
25602562

25612563
msgid "-display <display>\tRun Vim on <display>"
2562-
msgstr "-display <display>\t在視窗 <display> 執行 vim"
2564+
msgstr "-display <display>\t在視窗 <display> 執行 Vim"
25632565

25642566
msgid "-iconic\t\tStart Vim iconified"
25652567
msgstr "-iconic\t\t啟動後圖示化(iconified)"

0 commit comments

Comments
 (0)