Gentoo Archives: gentoo-dev

From: "Göktürk Yüksek" <gokturk@××××××××××.edu>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] [PATCH v1 2/4] metadata.dtd: set the lang attribute default value to "en" per GLEP 68
Date: Sun, 01 May 2016 06:06:54
Message-Id: 1462082744-29196-2-git-send-email-gokturk@binghamton.edu
In Reply to: [gentoo-dev] [PATCH v1 1/4] metadata.dtd: Remove obsolete element per GLEP 68 by "Göktürk Yüksek"
1 Also mention that the attribute value must be a valid ISO 639-1
2 language code.
3
4 Signed-off-by: Göktürk Yüksek <gokturk@××××××××××.edu>
5 ---
6 metadata.dtd | 18 +++++++++---------
7 1 file changed, 9 insertions(+), 9 deletions(-)
8
9 diff --git a/metadata.dtd b/metadata.dtd
10 index b608852..a3c06ff 100644
11 --- a/metadata.dtd
12 +++ b/metadata.dtd
13 @@ -42,7 +42,7 @@
14 <!ELEMENT changelog (#PCDATA)>
15 <!-- URL where the location of the upstream documentation can be found -->
16 <!ELEMENT doc (#PCDATA)>
17 - <!ATTLIST doc lang CDATA "C" >
18 + <!ATTLIST doc lang CDATA "en" >
19 <!-- location where to report bugs
20 (may also be an email address prefixed with mailto:) -->
21 <!ELEMENT bugs-to (#PCDATA)>
22 @@ -57,14 +57,14 @@
23
24 <!-- Common attributes -->
25
26 -<!-- the lang attribute, specifies the language of this tag. This is
27 - only useful for descriptions of various kinds. If a tag with this
28 - attribute is included there must be a description in the default
29 - language "C" or "en", which is equivalent -->
30 - <!ATTLIST description lang CDATA "C" >
31 - <!ATTLIST longdescription lang CDATA "C" >
32 - <!ATTLIST slots lang CDATA "C" >
33 - <!ATTLIST use lang CDATA "C" >
34 +<!-- the lang attribute, specifies the language of this tag in the
35 + form of a ISO 639-1 language code. This is only useful for
36 + descriptions of various kinds. If a tag with this attribute is
37 + included there must be a description in the default language "en" -->
38 + <!ATTLIST description lang CDATA "en" >
39 + <!ATTLIST longdescription lang CDATA "en" >
40 + <!ATTLIST slots lang CDATA "en" >
41 + <!ATTLIST use lang CDATA "en" >
42
43 <!-- The restrict attribute, this attribute specifies restrictions on
44 the applicability of tags on versions. The format of this attribute is
45 --
46 2.7.3