]> granicus.if.org Git - vim/commitdiff
patch 8.2.4380: small differences between Chinese translation files v8.2.4380
authorAda <me@yuhaowen.com>
Mon, 14 Feb 2022 15:04:55 +0000 (15:04 +0000)
committerBram Moolenaar <Bram@vim.org>
Mon, 14 Feb 2022 15:04:55 +0000 (15:04 +0000)
Problem:    Small differences between Chinese translation files.
Solution:   Add rule for converting UTF-8 to gb2312. (closes #9773)

src/po/Make_all.mak
src/po/Makefile
src/version.c

index b062bccafce859523728da61625afd65ed287cb7..8f28dfad2d7a5465901172d60f118bc1960f9f0d 100644 (file)
@@ -134,6 +134,7 @@ MOCONVERTED = \
                ru.cp1251.mo \
                sk.cp1250.mo \
                uk.cp1251.mo \
+               zh_CN.mo \
                zh_CN.cp936.mo \
 
 
index e46bceaf35a41d42e2a8437ccf1a8d9d2fa84107..47064fd916590ff8e48f62f5b27c3091c509265f 100644 (file)
@@ -132,6 +132,12 @@ sk.cp1250.po: sk.po
        iconv -f iso-8859-2 -t cp1250 sk.po | \
                sed -e 's/charset=ISO-8859-2/charset=cp1250/' -e 's/# Original translations/# Generated from sk.po, DO NOT EDIT/' > sk.cp1250.po
 
+# Convert zh_CN.UTF-8.po to create zh_CN.po.
+zh_CN.po: zh_CN.UTF-8.po
+       rm -f zh_CN.po
+       iconv -f UTF-8 -t gb2312 zh_CN.UTF-8.po | \
+               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
+
 # Convert zh_CN.UTF-8.po to create zh_CN.cp936.po.
 # Set 'charset' to gbk to avoid that msfmt generates a warning.
 # This used to convert from zh_CN.po, but that results in a conversion error.
index 22f0a5a539546712fdbdb70c9df98a2dd1995e07..466206653a898069e96297858e3cd12f781070df 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4380,
 /**/
     4379,
 /**/