Re: Different Chinese

Boyuan Yang <[email protected]> Fri, 20 Mar 2026 13:43:47 -0400
Newsgroups gmane.linux.debian.devel.www,gmane.linux.debian.devel.documentation
Organization Debian Project
Message-ID <[email protected]>
--=-pUDf3DKJn7CvAl0uEkia
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

=E5=9C=A8 2022-05-12=E5=9B=9B=E7=9A=84 08:10 +0200=EF=BC=8CLaura Arjona Rei=
na=E5=86=99=E9=81=93=EF=BC=9A
> Hello all
>=20
>=20
> El 11 de mayo de 2022 15:10:26 CEST, DU Haoran <[email protected]> es=
cribi=C3=B3:
> > Hi,
> > According to the link, the first "Chinese" is zh-CN and the second one =
is zh-TW.
>=20
>=20
> Thanks. I guess Sebul's question implicitly has a request for us to displ=
ay the Chinese variant in the web page.
>=20
> I've had a look and I believe the issue comes because in /english/doc/man=
uals.def we remove the second part of the name of the locale:
>=20
> https://salsa.debian.org/webmaster-team/webwml/-/blob/master/english/doc/=
manuals.defs#L92
>=20
> This is fine for our current status of Portuguese translations (in the we=
bsite there is only the Brazilian variant and we display "Portuguese") but =
not fine for Chinese
> because we usually have more than one variant.
>=20
> I will try to do some local tests omiting this line and see the build res=
ult or maybe add code to not to remove the variant part in the case of cn l=
ocales, but I guess the
> manuals.def is used in several other web pages so better to see the side =
effects of the change in local tests prior to commit changes. If anybody ha=
s time or better idea
> please go ahead.
>=20
> CC'ing debian-doc for the case they know better or find the time to do te=
sts and fix this before I can come back to this.
>=20

I finally had time to look into it and the fix is currently online as
https://salsa.debian.org/webmaster-team/webwml/-/commit/023899a8d271b59a952=
908a0e9a6c8f09e5c63a9 .

I don't think there will be side-effects. But if there are any regressions,=
 please
feel free to let me know.

Best,
Boyuan Yang

> > ________________________________
> > From: sebuls <[email protected]>
> > Sent: Wednesday, May 11, 2022 7:00:01 AM
> > To: [email protected]=C2=A0<[email protected]>
> > Subject: Different Chinese
> >=20
> > Hi.
> > <https://www.debian.org/doc/user-manuals.en.html#quick-reference>https:=
//www.debian.org/doc/user-manuals.en.html#quick-reference
> > shows two Chinese.
> > Chinese: [HTML] [plain text] [PDF]
> > Chinese: [HTML] [plain text] [PDF]
> > One is zh-cn and the other is zh-tw.
> > How to distinguish ?
> >=20
> >=20
> > [
> > https://confirm.mail.kakao.com/v1/users/sebuls%40kakao%2Ecom/cmails/202=
20511080001%2EG1u-k_I5SAaNJuOGQ3hZoQ%40sebuls%2Ekakao%2Ecom/recipients/debi=
an-www%40lists%2Edebian%2E
> > org]

--=-pUDf3DKJn7CvAl0uEkia
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----

iQJFBAABCgAvFiEEfncpR22H1vEdkazLwpPntGGCWs4FAmm9h1MRHGJ5YW5nQGRl
Ymlhbi5vcmcACgkQwpPntGGCWs4v8A/+Jk63VUwe0niRyBaKsuujuLWtMXuW7L35
ALmxaaCM5YPzlnRH+S19rTKDjTZPt3X6ss5v3m2av9Maof/4LLm5v+I0kujebwPD
izsX+z4KF3rs0VUCsHokZLg/i1QGVyz/4iQKT/x/bo3FRiQvQy1Q/XHY8mFGc/NS
AW9A0vivbUJYqB4aZvVXofgWEwcEEUW7LglOZHEZu6xgdfzEFLDJKXUqDaRVfc+3
1JzzFKvuxiaqYsJjVDSijMGy5ICZmijgPqQm/NqF8zihWtPkDMzXnP2sAIG8X2mQ
SihyEQvB8M4MCjhnaCHh+jhiNHW11eTHfuiRqM8Tx9YLjlC9XUEHxdq9NzkA1CcO
GOfQ7GJMYUEWnfQAJKSVEjl1dQzp4OWfz6TXPLYawkTI1RhE41nhofjSBS4mBOYB
qhYJU8PixKJbazLJJJ/2X9tVGnwp2x0KtazHkiQE38RHYfs8waBGTlxprZknRbY1
Kg3YA5WFnzLnVy25EZ1a8J9foo8rA8WSZEpVPbL1VPe2QxoihCbdjEEUENVCVtJd
oUXjt5PDTUPTXYL18nX6fscQR9+yfsyCpJFVFPK6zcn1Sk5naVPzDSF6ezFS4Tuz
PZIfvK42Aza0ApUGUNg2R9Tns+ylXTKY9Njn59y+szd772DddpmAJvkMEjgBFSUv
Un3K7vd6hi8=
=SMpy
-----END PGP SIGNATURE-----

--=-pUDf3DKJn7CvAl0uEkia--