Skip to content

Commit

Permalink
feat(l10n): Danish localization (PR #302)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddfreiling authored Mar 31, 2020
1 parent 1bc9296 commit 40c66f0
Show file tree
Hide file tree
Showing 7 changed files with 197 additions and 4 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@
"test": "jest",
"watch": "yarn run build && node ./scripts/watch.js",
"i18n-sort": "node ./scripts/locales-sort.js",
"i18n-scan-ace-report": "node ./scripts/translate-scan.js \"packages/ace-report/src\" \"packages/ace-report/src/l10n/locales/temp.json\" && sync-i18n --files 'packages/ace-report/src/l10n/locales/*.json' --primary temp --languages en fr pt_BR es --space 4 --finalnewline --newkeysempty && rimraf \"packages/ace-report/src/l10n/locales/temp.json\"",
"i18n-scan-ace-report-axe": "node ./scripts/translate-scan.js \"packages/ace-report-axe/src\" \"packages/ace-report-axe/src/l10n/locales/temp.json\" && sync-i18n --files 'packages/ace-report-axe/src/l10n/locales/*.json' --primary temp --languages en fr pt_BR es --space 4 --finalnewline --newkeysempty && rimraf \"packages/ace-report-axe/src/l10n/locales/temp.json\"",
"i18n-scan-ace-core": "node ./scripts/translate-scan.js \"packages/ace-core/src\" \"packages/ace-core/src/l10n/locales/temp.json\" && sync-i18n --files 'packages/ace-core/src/l10n/locales/*.json' --primary temp --languages en fr pt_BR es --space 4 --finalnewline --newkeysempty && rimraf \"packages/ace-core/src/l10n/locales/temp.json\"",
"i18n-scan-ace-report": "node ./scripts/translate-scan.js \"packages/ace-report/src\" \"packages/ace-report/src/l10n/locales/temp.json\" && sync-i18n --files 'packages/ace-report/src/l10n/locales/*.json' --primary temp --languages en fr pt_BR es da --space 4 --finalnewline --newkeysempty && rimraf \"packages/ace-report/src/l10n/locales/temp.json\"",
"i18n-scan-ace-report-axe": "node ./scripts/translate-scan.js \"packages/ace-report-axe/src\" \"packages/ace-report-axe/src/l10n/locales/temp.json\" && sync-i18n --files 'packages/ace-report-axe/src/l10n/locales/*.json' --primary temp --languages en fr pt_BR es da --space 4 --finalnewline --newkeysempty && rimraf \"packages/ace-report-axe/src/l10n/locales/temp.json\"",
"i18n-scan-ace-core": "node ./scripts/translate-scan.js \"packages/ace-core/src\" \"packages/ace-core/src/l10n/locales/temp.json\" && sync-i18n --files 'packages/ace-core/src/l10n/locales/*.json' --primary temp --languages en fr pt_BR es da --space 4 --finalnewline --newkeysempty && rimraf \"packages/ace-core/src/l10n/locales/temp.json\"",
"i18n-scan": "npm run i18n-scan-ace-report && npm run i18n-scan-ace-report-axe && npm run i18n-scan-ace-core",
"i18n-check": "sync-i18n --files 'packages/**/src/l10n/locales/*.json' --primary en --languages fr pt_BR es --space 4 --finalnewline --newkeysempty"
"i18n-check": "sync-i18n --files 'packages/**/src/l10n/locales/*.json' --primary en --languages fr pt_BR es da --space 4 --finalnewline --newkeysempty"
},
"jest": {
"setupTestFrameworkScriptFile": "<rootDir>/tests/jest-setup.js",
Expand Down
49 changes: 49 additions & 0 deletions packages/ace-core/src/l10n/locales/da.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"axecheck": {
"matching-aria-role": {
"fail": "Elementet har ingen ARIA rolle, som matcher 'epub:type'",
"pass": "Elementet har en ARIA rolle, som matcher 'epub:type'"
}
},
"axerule": {
"epub-type-has-matching-role": {
"desc": "Sikrer at elementet har en ARIA rolle, som matcher 'epub:type'",
"help": "ARIA rolle skal være til stede og matche den angivne 'epub:type'"
},
"pagebreak-label": {
"desc": "Sikrer at sidemarkører har en tilgængelig etiket ('label')"
}
},
"checkepub": {
"metadatainvalid": {
"kbtitle": "Metadata for tilgængelighed fra Schema.org",
"resdesc": "Brug en af metadata-værdierne defineret af Schema.org",
"ruledesc": "'{{name}}' metadata-feltet skal have en tilladt værdi",
"testdesc": "Værdien '{{value}}' er ikke tilladt for '{{name}}' metadata-feltet"
},
"metadataprintpagenumbers": {
"kbtitle": "Metadata for tilgængelighed fra Schema.org",
"resdesc": "Tilføj en liste over sider til navigations-dokumentet",
"ruledesc": "Når tilgængeligheds-egenskaben 'printPageNumbers' bruges, bør navigations-dokumentet indeholde en liste over sider",
"testdesc": "Tilgængeligheds-egenskaben 'printPageNumbers' bruges, men ingen liste over sider er angivet"
},
"metadataviolation": {
"kbtitle": "Metadata for tilgængelighed fra Schema.org",
"resdesc": "Tilføj et '{{name}}' metadata-element til pakke-dokumentet",
"ruledesc": "Publikationen skal angive et '{{name}}' metadata-element",
"testdesc": "Sikrer at '{{name}}' metadata-elementet er til stede"
},
"pagesourceviolation": {
"kbtitle": "Sidenavigation",
"resdesc": "Tilføj et 'dc:source' metadata-element til pakke-dokumentet",
"ruledesc": "Publikationer med sideskift skal angive et 'dc:source' metadata-element",
"testdesc": "Sikrer at kilden til sideskift er identificeret"
},
"titleviolation": {
"kbtitle": "EPUB titel",
"resdesc": "Tilføj et 'dc:title' metadata-element til pakke-dokumentet",
"ruledesc": "Publikationer skal have en titel",
"testdesc": "Sikrer at EPUB'en har en titel"
}
}
}
5 changes: 5 additions & 0 deletions packages/ace-core/src/l10n/localize.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const enJson = require("./locales/en.json");
const frJson = require("./locales/fr.json");
const pt_BRJson = require("./locales/pt_BR.json");
const esJson = require("./locales/es.json");
const daJson = require("./locales/da.json");


export const localizer = newLocalizer({
Expand All @@ -24,4 +25,8 @@ export const localizer = newLocalizer({
name: "Español",
translation: esJson,
},
da: {
name: "Dansk",
translation: daJson,
},
});
57 changes: 57 additions & 0 deletions packages/ace-report-axe/src/l10n/locales/da.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"kb": {
"accesskeys": "Adgangsnøgler",
"area-alt": "Områdebeskrivelse",
"aria-allowed-attr": "ARIA",
"aria-hidden-body": "ARIA",
"aria-required-attr": "ARIA",
"aria-required-children": "ARIA",
"aria-required-parent": "ARIA",
"aria-roles": "ARIA",
"aria-valid-attr": "ARIA",
"aria-valid-attr-value": "ARIA",
"button-name": "Formularer",
"checkboxgroup": "Formularer",
"color-contrast": "Farve",
"definition-list": "Lister",
"dlitem": "Lister",
"document-title": "Sidens titel",
"duplicate-id": "Identifikator",
"empty-heading": "Overskrifter",
"epub-type-has-matching-role": "ARIA roller",
"frame-title": "Indsatte sider",
"frame-title-unique": "Indsatte sider",
"heading-order": "Overskrifter",
"href-no-hash": "Links",
"html-has-lang": "Sprog",
"html-lang-valid": "Sprog",
"image-alt": "Billeder",
"image-redundant-alt": "Billeder",
"input-image-alt": "Billeder",
"label": "Formularer",
"label-title-only": "Formularer",
"layout-table": "Tabeller",
"link-in-text-block": "Links",
"link-name": "Links",
"list": "Lister",
"listitem": "Lister",
"meta-refresh": "Meta",
"meta-viewport": "Meta",
"meta-viewport-large": "Meta",
"object-alt": "Objekt",
"p-as-heading": "Overskrifter",
"pagebreak-label": "Sideskift",
"radiogroup": "Formularer",
"scope-attr-valid": "Tabeller",
"server-side-image-map": "Billede-maps",
"table-duplicate-name": "Tabeller",
"table-fake-caption": "Tabeller",
"td-has-header": "Tabeller",
"td-headers-attr": "Tabeller",
"th-has-data-cells": "Tabeller",
"valid-lang": "Sprog",
"video-caption": "Video",
"video-description": "Video"
},
"nokb": "(ingen specifik side)"
}
5 changes: 5 additions & 0 deletions packages/ace-report-axe/src/l10n/localize.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const enJson = require("./locales/en.json");
const frJson = require("./locales/fr.json");
const pt_BRJson = require("./locales/pt_BR.json");
const esJson = require("./locales/es.json");
const daJson = require("./locales/da.json");

export const localizer = newLocalizer({
en: {
Expand All @@ -23,4 +24,8 @@ export const localizer = newLocalizer({
name: "Español",
translation: esJson,
},
da: {
name: "Dansk",
translation: daJson,
},
});
72 changes: 72 additions & 0 deletions packages/ace-report/src/l10n/locales/da.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"a11ymetadata": "Tilgængeligheds-metadata",
"a11ymetadatamissing": "Følgende metadata for tilgængelighed mangler:",
"a11ymetadatanotfound": "Ingen metadata for tilgængelighed blev fundet.",
"a11ymetadatapresent": "Følgende metadata for tilgængelighed findes:",
"ace-description": "DAISY Tilgængeligheds-tjekker til EPUB",
"all": "Alle",
"allmetadata": "Alt metadata",
"allviolations": "Alle overtrædelser",
"allviolationscaption": "Overtrædelser i EPUB'en, med referencer, angivelse af alvorlighed, samt guidelines og problemernes lokation.",
"bestpractice": "Best practice",
"critical": "Kritisk",
"dataTable_ariaSortAscending": ": aktivér for at sortere kolonnen i stigende rækkefølge",
"dataTable_ariaSortDescending": ": aktivér for at sortere kolonnen i faldende rækkefølge",
"dataTable_emptyTable": "Ingen data at vise i tabellen",
"dataTable_info": "Viser: _START_ - _END_ / _TOTAL_",
"dataTable_infoEmpty": "Viser: 0 - 0 / 0",
"dataTable_infoFiltered": "(filtreret fra _MAX_ totale rækker)",
"dataTable_lengthMenu": "Vis _MENU_ rækker per side",
"dataTable_loadingRecords": "Henter...",
"dataTable_paginateFirst": "Første",
"dataTable_paginateLast": "Sidste",
"dataTable_paginateNext": "Næste",
"dataTable_paginatePrevious": "Forrige",
"dataTable_processing": "Processerer...",
"dataTable_search": "Søg:",
"dataTable_zeroRecords": "Ingen rækker blev fundet",
"details": "Detaljer",
"doctitle": "Rapport over EPUB Tilgængelighed af DAISY Ace",
"doctopheading": "Rapport over EPUB Tilgængelighed",
"enablejavascript": "Slå venligst javascript til for den bedste oplevelse.",
"file": "Fil",
"generatedby": "Genereret af {{v1}} ({{v2}}), {{v3}}",
"goto": "Gå til:",
"headsoutline": "Overskrifter",
"htmloutline": "HTML",
"image": "Billede",
"images": "Billeder",
"imagescaption": "Billeder i EPUB'en, med deres beskrivelser",
"impact": "Påvirkningsgrad",
"learnmoreabout": "Læs mere:",
"location": "Lokation",
"metadata": "Metadata",
"minor": "Mindre",
"missingheading": "Manglende overskrift: h{{i}}",
"moderate": "Moderat",
"na": "-",
"name": "Navn",
"noMatchingViolations": "Ingen matchende overtrædelser fundet.",
"noimages": "Ingen billeder blev fundet i publikationen.",
"other": "Andre",
"outlines": "Struktur",
"pagenav": "Sidenavigation",
"pubmetadatacaption": "Publikationens metadata.",
"report-desc": "Rapport over automatiseret tjek af tilgængelighed i EPUB'en",
"report-title": "Ace Rapport",
"resetfilters": "Nulstil filtre",
"role": "Rolle",
"rule": "Regel",
"ruleset": "Regelsæt",
"serious": "Seriøs",
"snippet": "Stump:",
"summaryviolations": "Resumé af overtrædelser",
"summaryviolationscaption": "Antal overtrædelser, inddelt efter regelsæt og påvirkningsgrad.",
"title": "Titel:",
"tocoutline": "Indholdsfortegnelse",
"topsection": "Øverste sektion",
"total": "Total",
"value": "Værdi",
"via": "via",
"violations": "Overtrædelser"
}
5 changes: 5 additions & 0 deletions packages/ace-report/src/l10n/localize.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const enJson = require("./locales/en.json");
const frJson = require("./locales/fr.json");
const pt_BRJson = require("./locales/pt_BR.json");
const esJson = require("./locales/es.json");
const daJson = require("./locales/da.json");

export const localizer = newLocalizer({
en: {
Expand All @@ -23,4 +24,8 @@ export const localizer = newLocalizer({
name: "Español",
translation: esJson,
},
da: {
name: "Dansk",
translation: daJson,
},
});

0 comments on commit 40c66f0

Please sign in to comment.