Skip to content

Localization of WCAG and EPUB versions #689

Open
@mickael-menu

Description

@mickael-menu

The EPUB and WCAG versions and level are currently localized individually in the JSON files:

{
        "conformance-details-epub-accessibility-1-0": {
            "compact": " EPUB Accessibility 1.0",
            "descriptive": " EPUB Accessibility 1.0"
        },
        "conformance-details-epub-accessibility-1-1": {
            "compact": " EPUB Accessibility 1.1",
            "descriptive": " EPUB Accessibility 1.1"
        },
        "conformance-details-level-a": {
            "compact": " Level A",
            "descriptive": " Level A"
        },
        "conformance-details-level-aa": {
            "compact": " Level AA",
            "descriptive": " Level AA"
        },
        "conformance-details-level-aaa": {
            "compact": " Level AAA",
            "descriptive": " Level AAA"
        },
        "conformance-details-wcag-2-0": {
            "compact": " WCAG 2.0",
            "descriptive": " Web Content Accessibility Guidelines (WCAG) 2.0"
        },
        "conformance-details-wcag-2-1": {
            "compact": " WCAG 2.1",
            "descriptive": " Web Content Accessibility Guidelines (WCAG) 2.1"
        },
        "conformance-details-wcag-2-2": {
            "compact": " WCAG 2.2",
            "descriptive": " Web Content Accessibility Guidelines (WCAG) 2.2"
        }
}

Does localizing "EPUB Accessibility" and "WCAG" even make sense? Do we expect a different translation in other languages even though these are English acronyms and "trademarks"?

My second suggestion is related to the maintenance. I suggest removing the version and level numbers/letters from the strings, and let the implementers interpolate it themselves. Having the versions hard-coded in the strings poses several issues:

  • What should a reading system do if it encounters a file with a more recent WCAG or EPUB version than what is supported by its embedded translation files?
  • Every time a new EPUB Accessibility or WCAG version is released, all the translations will need to be updated, and then all the reading systems to be able to present the latest conformance profiles.
{
        "conformance-details-epub-accessibility": {
            "compact": " EPUB Accessibility {version}",
            "descriptive": " EPUB Accessibility {version}"
        },
        "conformance-details-level": {
            "compact": " Level {level}",
            "descriptive": " Level {level}"
        },
        "conformance-details-wcag": {
            "compact": " WCAG {version}",
            "descriptive": " Web Content Accessibility Guidelines (WCAG) {version}"
        }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions