NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 642 - add support for reporting redundant language tags that are deprecated
add support for reporting redundant language tags that are deprecated
Status: RESOLVED FIXED
Product: Validator.nu
Classification: Unclassified
Component: Datatype library
HEAD
All All
: P2 enhancement
Assigned To: Michael[tm] Smith
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-09-05 21:56 CEST by Michael[tm] Smith
Modified: 2010-03-02 09:26 CET (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael[tm] Smith 2009-09-05 21:56:27 CEST
RFC 5646[1] defines a "redundant" tag as "a grandfathered registration whose individual subtags appear with the same semantic meaning in the registry" and further defines a "deprecated" state for tags and says that validating processors SHOULD NOT generate subtags that are deprecated.


The IANA language-tag registry[1] contains a number of records that have a Type field whose value is "redundant" and that are also marked with a Deprecated field.

Given that RFC 5646 states that validating processors should not generated deprecated tags, it would be useful for validator.nu to report the "redundant and deprecated" condition (as validator.nu already does for the "grandfathered and deprecated" condition -- e.g., but emitting "The redundant language tag FOO has been deprecated."


[1] http://tools.ietf.org/html/rfc5646
[2] http://www.iana.org/assignments/language-subtag-registry
Comment 1 Simon Pieters 2009-09-07 09:37:52 CEST
It would be useful if the message also said what the replacement is, i.e. "use BAR instead".
Comment 2 Michael[tm] Smith 2009-09-09 07:12:33 CEST
(In reply to comment #1)
> It would be useful if the message also said what the replacement is, i.e. "use
> BAR instead".

Yeah, agreed. That'd be useful for anything that's been deprecated -- which includes "grandfathered" tags as well as redundant ones.

But this whole bug is currently blocked by bug 643. When I get time to try to write up a patch for that (to add capability for validator.nu to emit datatype warnings, not just datatype errors), I'll add the "use BAR instead" stuff as well (if Henri doesn't beat me to it).
Comment 3 Michael[tm] Smith 2009-10-20 04:32:02 CEST
syntax 470
http://whattf.browse.cvsdude.com/syntax?view=rev&revision=470

reported as errors for now (not warnings).. will change to warnings after we get that support added