From b80626bf2379a5436b6450bab3e5e754ed19e82e Mon Sep 17 00:00:00 2001 From: John Marino Date: Sat, 8 Aug 2015 19:17:44 +0200 Subject: [PATCH] China locales: Return zh_CN.* as aliases Right now vi is expecting Chinese locales in the form of zh_CN. It may not be the only locale catalog like this, so bring back some zh_CN.* locales as symlinks to their zh_Hans_CN counterparts. --- share/locale-links/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/share/locale-links/Makefile b/share/locale-links/Makefile index 10b79070cd..f559d52e78 100644 --- a/share/locale-links/Makefile +++ b/share/locale-links/Makefile @@ -57,4 +57,11 @@ SYMLINKS+= ${symdir}.ISO8859-15 ${LOCALEDIR}/${symdir}@euro SYMLINKS+= ${symdir}.ISO8859-15 ${LOCALEDIR}/${symdir}.ISO-8859-15@euro .endfor +# We need to keep zh_CN.* around as aliases to zh_Hans_CN.* because some +# of the lang catalogs use zh_CN still (e.g. vi), plus people may expect it +# We won't alias zh_Hans_CN or zh_Hans_UTF8 though +.for CN in GB18030 GB2312 GBK UTF-8 eucCN +SYMLINKS+= zh_Hans_CN.${CN} ${LOCALEDIR}/zh_CN.${CN} +.endfor + .include -- 2.41.0