Gentoo Archives: gentoo-dev

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-dev@l.g.o
Cc: "Ulrich Müller" <ulm@g.o>
Subject: [gentoo-dev] [PATCH] glep-0068: Update language identifiers from ISO 639-1 to BCP 47
Date: Sun, 22 May 2022 06:05:24
Message-Id: 20220522060506.18237-1-ulm@gentoo.org
1 This will allow codes like pt-BR or zh-Hant which is already used
2 in at least one longdescription in the Gentoo repository.
3
4 Note that the L10N USE_EXPAND and GLEP 42 news items also use BCP 47
5 for language names.
6
7 Bug: https://bugs.gentoo.org/578294
8 Signed-off-by: Ulrich Müller <ulm@g.o>
9 ---
10 glep-0068.rst | 22 ++++++++++++++--------
11 1 file changed, 14 insertions(+), 8 deletions(-)
12
13 diff --git a/glep-0068.rst b/glep-0068.rst
14 index 83e54d9..78ac7ea 100644
15 --- a/glep-0068.rst
16 +++ b/glep-0068.rst
17 @@ -4,10 +4,10 @@ Title: Package and category metadata
18 Author: Michał Górny <mgorny@g.o>
19 Type: Standards Track
20 Status: Final
21 -Version: 1.1
22 +Version: 1.2
23 Created: 2016-03-14
24 -Last-Modified: 2021-09-11
25 -Post-History: 2016-03-16, 2018-02-20
26 +Last-Modified: 2022-05-22
27 +Post-History: 2016-03-16, 2018-02-20, 2022-05-22
28 Content-Type: text/x-rst
29 Requires: 67
30 Replaces: 34, 46, 56
31 @@ -106,8 +106,8 @@ The following common attributes are allowed on multiple elements:
32
33 Language specifiers are used whenever an element supports variants
34 in different languages. In this case, each occurrence of the element may
35 -contain an optional ``lang=""`` attribute that contains a ISO 639-1 language
36 -code. In case no ``lang=""`` attribute is provided, an implicit default
37 +contain an optional ``lang=""`` attribute that contains an IETF language tag
38 +[#BCP-47]_. In case no ``lang=""`` attribute is provided, an implicit default
39 of ``en`` is assumed.
40
41 Restriction specifiers are used whenever an element supports restricting to
42 @@ -321,6 +321,9 @@ language identifier in any of the considered standards. Furthermore, since
43 and no tools relied on the implicit default defined in the DTD, it was decided
44 to change the implicit default to ``en``.
45
46 +Language identifiers were later updated to allow full IETF language tags,
47 +so that codes like ``pt-BR`` or ``zh-Hant`` can be represented.
48 +
49 Package restrictions
50 --------------------
51
52 @@ -513,6 +516,9 @@ References
53 .. [#METADATA-DTD] The original metadata.dtd file
54 https://gitweb.gentoo.org/data/dtd.git/tree/metadata.dtd?id=a908a93b5afe295359e0a01814c9bef8b5268bcd
55
56 +.. [#BCP-47] BCP 47: "Tags for identifying languages",
57 + https://tools.ietf.org/rfc/bcp/bcp47.txt
58 +
59 .. [#ORIGINAL-METADATA-XML] The original metadata.xml proposal:
60 Paul de Vrieze. "IMPORTANT: The proposal for the metadata.xml file".
61 gentoo-dev mailing list, 2003-06-27,
62 @@ -529,6 +535,6 @@ References
63 Copyright
64 =========
65
66 -This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
67 -Unported License. To view a copy of this license, visit
68 -https://creativecommons.org/licenses/by-sa/3.0/.
69 +This work is licensed under the Creative Commons Attribution-ShareAlike 4.0
70 +International License. To view a copy of this license, visit
71 +https://creativecommons.org/licenses/by-sa/4.0/.
72 --
73 2.35.1