comparison src/po/Makefile @ 14187:b79453d0d01c v8.1.0111

patch 8.1.0111: .po files do not use recommended names commit https://github.com/vim/vim/commit/d1d037e90192ab64e4cec00b9d008b33bc69d979 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 24 18:04:50 2018 +0200 patch 8.1.0111: .po files do not use recommended names Problem: .po files do not use recommended names. Solution: Give a warning if the recommended name is not used. Accept the recommended name for conversion. (Christian Brabandt, Ken Takata)
author Christian Brabandt <cb@256bit.org>
date Sun, 24 Jun 2018 18:15:05 +0200
parents a36fb263c35e
children e71261a88630
comparison
equal deleted inserted replaced
14186:d66b07a9c03d 14187:b79453d0d01c
85 sjiscorr: sjiscorr.c 85 sjiscorr: sjiscorr.c
86 $(CC) -o sjiscorr sjiscorr.c 86 $(CC) -o sjiscorr sjiscorr.c
87 87
88 ja.euc-jp.po: ja.po 88 ja.euc-jp.po: ja.po
89 iconv -f utf-8 -t euc-jp ja.po | \ 89 iconv -f utf-8 -t euc-jp ja.po | \
90 sed -e 's/charset=utf-8/charset=euc-jp/' -e 's/# Original translations/# Generated from ja.po, DO NOT EDIT/' > ja.euc-jp.po 90 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
91 91
92 # Convert cs.po to create cs.cp1250.po. 92 # Convert cs.po to create cs.cp1250.po.
93 cs.cp1250.po: cs.po 93 cs.cp1250.po: cs.po
94 rm -f cs.cp1250.po 94 rm -f cs.cp1250.po
95 iconv -f iso-8859-2 -t cp1250 cs.po | \ 95 iconv -f iso-8859-2 -t cp1250 cs.po | \
103 103
104 # Convert pl.po to create pl.UTF-8.po. 104 # Convert pl.po to create pl.UTF-8.po.
105 pl.UTF-8.po: pl.po 105 pl.UTF-8.po: pl.po
106 rm -f pl.UTF-8.po 106 rm -f pl.UTF-8.po
107 iconv -f iso-8859-2 -t utf-8 pl.po | \ 107 iconv -f iso-8859-2 -t utf-8 pl.po | \
108 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 108 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
109 109
110 # Convert sk.po to create sk.cp1250.po. 110 # Convert sk.po to create sk.cp1250.po.
111 sk.cp1250.po: sk.po 111 sk.cp1250.po: sk.po
112 rm -f sk.cp1250.po 112 rm -f sk.cp1250.po
113 iconv -f iso-8859-2 -t cp1250 sk.po | \ 113 iconv -f iso-8859-2 -t cp1250 sk.po | \
117 # Set 'charset' to gbk to avoid that msfmt generates a warning. 117 # Set 'charset' to gbk to avoid that msfmt generates a warning.
118 # This used to convert from zh_CN.po, but that results in a conversion error. 118 # This used to convert from zh_CN.po, but that results in a conversion error.
119 zh_CN.cp936.po: zh_CN.UTF-8.po 119 zh_CN.cp936.po: zh_CN.UTF-8.po
120 rm -f zh_CN.cp936.po 120 rm -f zh_CN.cp936.po
121 iconv -f UTF-8 -t cp936 zh_CN.UTF-8.po | \ 121 iconv -f UTF-8 -t cp936 zh_CN.UTF-8.po | \
122 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 122 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
123 123
124 # Convert ko.UTF-8.po to create ko.po. 124 # Convert ko.UTF-8.po to create ko.po.
125 ko.po: ko.UTF-8.po 125 ko.po: ko.UTF-8.po
126 rm -f ko.po 126 rm -f ko.po
127 iconv -f UTF-8 -t euc-kr ko.UTF-8.po | \ 127 iconv -f UTF-8 -t euc-kr ko.UTF-8.po | \