summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2015-11-15 13:09:08 +0000
committerbapt <bapt@FreeBSD.org>2015-11-15 13:09:08 +0000
commitedd8248f0d59a2e51f50d3f312b5c303e2279710 (patch)
tree587911eca1bd22be854083385e9e652c415677d0 /share
parent42ad9fbb48c4b317a70a1a52f8a6bd1a32a91417 (diff)
downloadFreeBSD-src-edd8248f0d59a2e51f50d3f312b5c303e2279710.zip
FreeBSD-src-edd8248f0d59a2e51f50d3f312b5c303e2279710.tar.gz
Simplify a bit the aliases generation
Diffstat (limited to 'share')
-rw-r--r--share/locale-links/Makefile26
1 files changed, 10 insertions, 16 deletions
diff --git a/share/locale-links/Makefile b/share/locale-links/Makefile
index 4b4d6ac..1e09d21 100644
--- a/share/locale-links/Makefile
+++ b/share/locale-links/Makefile
@@ -4,24 +4,18 @@ LOCALEDIR= ${SHAREDIR}/locale
LC_FILES= LC_COLLATE LC_CTYPE LC_MESSAGES LC_MONETARY LC_NUMERIC \
LC_TIME
-# 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
-.for f in ${LC_FILES}
-SYMLINKS+= zh_Hans_CN.${CN}/${f} ${LOCALEDIR}/zh_CN.${CN}/${f}
-.endfor
-.endfor
-
-.for HK in Big5HKSCS UTF-8
-.for f in ${LC_FILES}
-SYMLINKS+= zh_Hant_HK.${HK}/${f} ${LOCALEDIR}/zh_HK.${HK}/${f}
-.endfor
-.endfor
+ALIASES= zh_Hans_CN.GB18030 zh_CN.GB18030 \
+ zh_Hans_CN.GB2312 zh_CN.GB2312 \
+ zh_Hans_CN.GBK zh_CN.GBK \
+ zh_Hans_CN.eucCN zh_CN.eucCN \
+ zh_Hant_HK.Big5HKSCS zh_HK.Big5HKSCS \
+ zh_Hant_HK.UTF-8 zh_HK.UTF-8 \
+ zh_Hant_TW.Big5 zh_TW.Big5 \
+ zh_Hant_TW.UTF-8 zh_TW.UTF-8
-.for TW in Big5 UTF-8
+.for from to in ${ALIASES}
.for f in ${LC_FILES}
-SYMLINKS+= zh_Hant_TW.${TW}/${f} ${LOCALEDIR}/zh_TW.${TW}/${f}
+SYMLINKS+= ${from}/${f} ${LOCALEDIR}/${to}/${f}
.endfor
.endfor
OpenPOWER on IntegriCloud