Simplify a bit the aliases generation

This commit is contained in:
Baptiste Daroussin 2015-11-15 13:09:08 +00:00
parent a63513d71a
commit 71463bf550
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=290862

View File

@ -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
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 HK in Big5HKSCS UTF-8
.for from to in ${ALIASES}
.for f in ${LC_FILES}
SYMLINKS+= zh_Hant_HK.${HK}/${f} ${LOCALEDIR}/zh_HK.${HK}/${f}
.endfor
.endfor
.for TW in Big5 UTF-8
.for f in ${LC_FILES}
SYMLINKS+= zh_Hant_TW.${TW}/${f} ${LOCALEDIR}/zh_TW.${TW}/${f}
SYMLINKS+= ${from}/${f} ${LOCALEDIR}/${to}/${f}
.endfor
.endfor