From 815e8d6d246d31d0916d8530506d4907c08be899 Mon Sep 17 00:00:00 2001 From: Ico Davids Date: Fri, 18 Sep 2020 14:29:47 +0200 Subject: [PATCH 1/4] Added Dutch translation --- .../src/main/javascript/translations/nl.json | 205 ++++++++++++++++++ .../src/main/javascript/utils/translation.js | 1 + .../behaviors-plugin/src/dist/static/index.js | 14 ++ .../packages-plugin/src/dist/static/index.js | 8 + 4 files changed, 228 insertions(+) create mode 100644 allure-generator/src/main/javascript/translations/nl.json diff --git a/allure-generator/src/main/javascript/translations/nl.json b/allure-generator/src/main/javascript/translations/nl.json new file mode 100644 index 000000000..b1d1754c5 --- /dev/null +++ b/allure-generator/src/main/javascript/translations/nl.json @@ -0,0 +1,205 @@ +{ + "status": { + "failed": "Gefaald", + "broken": "Kapot", + "passed": "Geslaagd", + "skipped": "Overgeslagen", + "unknown": "Onbekend", + "flaky": "Test is instabiel", + "newFailed": "Test is nieuw gefaald" + }, + "marks": { + "flaky": "Instabiel", + "newFailed": "Nieuw gefaald" + }, + "sorter": { + "order": "volgorde", + "name": "naam", + "duration": "duur", + "status": "status" + }, + "tab": { + "overview": { + "name": "Overzicht" + }, + "categories": { + "name": "Categorieën" + }, + "suites": { + "name": "Suites" + }, + "graph": { + "name": "Grafieken" + }, + "timeline": { + "name": "Tijdlijn", + "selected": "{{count}} test ({{percent}}%) geselecteerd met een duur van meer dan {{duration}}", + "selected_plural": "{{count}} tests ({{percent}}%) geselecteerd met een duur van meer dan {{duration}}" + } + }, + "widget": { + "summary": { + "aggregatedName": "Geaggregeerd rapport", + "launches": "start", + "launches_plural": "starts", + "testResults": "testgeval", + "testResults_plural": "testgevallen" + }, + "trend": { + "name": "Trend" + }, + "categoriesTrend": { + "name": "Trend categorieën" + }, + "durationTrend": { + "name": "Trend duur" + }, + "retryTrend": { + "name": "Trend nieuwe pogingen" + }, + "executors": { + "name": "Uitvoerders", + "unknown": "Onbekend", + "empty": "Er is geen informatie over testuitvoerders" + }, + "launches": { + "name": "Start", + "empty": "Er is geen informatie over starts" + }, + "environment": { + "name": "Omgeving", + "empty": "Er zijn geen omgevingsvariabelen", + "showAll": "Toon alle" + }, + "suites": { + "name": "Suites" + }, + "categories": { + "name": "Categorieën" + } + }, + "chart": { + "duration": { + "name": "Duur", + "empty": "Er is niets te tonen" + }, + "trend": { + "empty": "Er is niets te tonen" + }, + "severity": { + "name": "Ernst" + }, + "status": { + "name": "Status" + } + }, + "testResult": { + "status": { + "empty": "Lege statusdetails", + "trace": "Toon trace" + }, + "overview": { + "name": "Overzicht" + }, + "categories": { + "name": "Categorieën" + }, + "description": { + "name": "Omschrijving" + }, + "duration": { + "name": "Duur" + }, + "history": { + "name": "Historie", + "successRate": "Slagingsratio" + }, + "owner": { + "name": "Eigenaar" + }, + "retries": { + "name": "Nieuwe pogingen", + "empty": "Er is geen informatie over nieuwe testpogingen." + }, + "parameters": { + "name": "Parameters" + }, + "links": { + "name": "Links" + }, + "severity": { + "name": "Ernst" + }, + "execution": { + "name": "Uitvoering", + "setup": "Set up", + "teardown": "Tear down", + "body": "Test body" + }, + "stats": { + "count": { + "steps": "{{count}} substap", + "steps_plural": "{{count}} substappen", + "attachments": "{{count}} bijlage", + "attachments_plural": "{{count}} bijlagen", + "parameters": "{{count}} parameter", + "parameters_plural": "{{count}} parameters" + } + } + }, + "controls": { + "collapse": "Inklappen", + "expand": "Uitklappen", + "fullscreen": "Volledig scherm", + "language": "Taal wijzigen", + "clipboard": "Kopieer naar klembord", + "clipboardSuccess": "Gekopieerd naar klembord", + "clipboardError": "Kan niet kopiëren naar klembord. De browser lijkt deze functionaliteit niet te ondersteunen.", + "backto": "Terug naar" + }, + "errors": { + "missedAttachment": "Bijlage niet gevonden", + "notFound": "Niet gevonden" + }, + "component": { + "tree": { + "filter": "Status", + "filter-marks": "Markeringen", + "groups": "Groepsinformatie tonen/verbergen", + "download": "Download CSV", + "empty": "Er zijn geen items", + "time": { + "total" : { + "name": "Totaal", + "tooltip": "Duur van eerste test gestart tot laatste test beëindigd" + }, + "max": { + "name": "Langstdurend", + "tooltip": "Duur van de langste test" + }, + "sum": { + "name": "Som", + "tooltip": "Duur van alle tests opgeteld" + } + }, + "filtered": { + "total": "{{count}} testresultaat", + "total_plural": "{{count}} testresultaten", + "shown": "{{count}} getoond" + } + }, + "widgetStatus": { + "showAll": "Toon alles", + "total": "{{count}} item in totaal", + "total_plural": "{{count}} items in totaal" + }, + "statusToggle": { + "showCases": "Toon testresultaten met status ‘{{status}}’", + "hideCases": "Verberg testresultaten met status ’{{status}}’" + }, + "markToggle": { + "showCases": "Toon testresultaten gemarkeerd als ‘{{mark}}’", + "hideCases": "Verberg testresultaten gemarkeerd als ‘{{mark}}’" + } + } +} diff --git a/allure-generator/src/main/javascript/utils/translation.js b/allure-generator/src/main/javascript/utils/translation.js index e6dcbc66a..9160df9a5 100644 --- a/allure-generator/src/main/javascript/utils/translation.js +++ b/allure-generator/src/main/javascript/utils/translation.js @@ -6,6 +6,7 @@ export const LANGUAGES = [ {id: 'ru', title: 'Русский'}, {id: 'zh', title: '中文'}, {id: 'de', title: 'Deutsch'}, + {id: 'nl', title: 'Nederlands'}, {id: 'he', title: 'Hebrew'}, {id: 'br', title: 'Brazil'}, {id: 'pl', title: 'Polski'}, diff --git a/plugins/behaviors-plugin/src/dist/static/index.js b/plugins/behaviors-plugin/src/dist/static/index.js index b303bd924..8b35e3f14 100644 --- a/plugins/behaviors-plugin/src/dist/static/index.js +++ b/plugins/behaviors-plugin/src/dist/static/index.js @@ -56,6 +56,20 @@ allure.api.addTranslation('de', { } }); +allure.api.addTranslation('nl', { + tab: { + behaviors: { + name: 'Functionaliteit' + } + }, + widget: { + behaviors: { + name: 'Features en story’s', + showAll: 'Toon alle' + } + } +}); + allure.api.addTranslation('he', { tab: { behaviors: { diff --git a/plugins/packages-plugin/src/dist/static/index.js b/plugins/packages-plugin/src/dist/static/index.js index b89165614..db84e6897 100644 --- a/plugins/packages-plugin/src/dist/static/index.js +++ b/plugins/packages-plugin/src/dist/static/index.js @@ -32,6 +32,14 @@ allure.api.addTranslation('de', { } }); +allure.api.addTranslation('nl', { + tab: { + packages: { + name: 'Packages' + } + } +}); + allure.api.addTranslation('he', { tab: { packages: { From 68a2053f24e84dd5d3d7cb608287571d2ab1afbd Mon Sep 17 00:00:00 2001 From: Ico Davids Date: Mon, 5 Oct 2020 12:11:36 +0200 Subject: [PATCH 2/4] Expand language resources of the History and Retries tab. Provided English (default) and Dutch resources --- .../plugins/testresult-history/HistoryView.hbs | 8 ++++---- .../plugins/testresult-retries/RetriesView.hbs | 2 +- .../src/main/javascript/translations/en.json | 11 +++++++++-- .../src/main/javascript/translations/nl.json | 17 ++++++++++++----- 4 files changed, 26 insertions(+), 12 deletions(-) diff --git a/allure-generator/src/main/javascript/plugins/testresult-history/HistoryView.hbs b/allure-generator/src/main/javascript/plugins/testresult-history/HistoryView.hbs index 9f14182f4..e787c166d 100644 --- a/allure-generator/src/main/javascript/plugins/testresult-history/HistoryView.hbs +++ b/allure-generator/src/main/javascript/plugins/testresult-history/HistoryView.hbs @@ -3,7 +3,7 @@
{{t 'testResult.history.successRate'}} {{successRate}} {{#if history.statistic.total}} - ({{history.statistic.passed}} of {{history.statistic.total}}) + ({{t 'testResult.history.statistic' passed=history.statistic.passed total=history.statistic.total}}) {{/if}}
{{#each history.items}} @@ -11,17 +11,17 @@ {{else}}
{{status}} - {{date time.start}} at {{time time.start}} + {{t 'testResult.history.time' date=(date time.start) time=(time time.start)}}
{{/if}} {{/each}} {{else}} - No history information are available. + {{t 'testResult.history.empty'}} {{/if}} \ No newline at end of file diff --git a/allure-generator/src/main/javascript/plugins/testresult-retries/RetriesView.hbs b/allure-generator/src/main/javascript/plugins/testresult-retries/RetriesView.hbs index 8395e0ebd..7a8fdd708 100644 --- a/allure-generator/src/main/javascript/plugins/testresult-retries/RetriesView.hbs +++ b/allure-generator/src/main/javascript/plugins/testresult-retries/RetriesView.hbs @@ -3,7 +3,7 @@ {{#each retries}} {{status}} - {{date time.start}} at {{time time.start}} + {{t 'testResult.retries.time' time=(date time.start) date=(time time.start)}}
{{statusDetails}}
{{/each}} diff --git a/allure-generator/src/main/javascript/translations/en.json b/allure-generator/src/main/javascript/translations/en.json index a556efc8c..548261043 100644 --- a/allure-generator/src/main/javascript/translations/en.json +++ b/allure-generator/src/main/javascript/translations/en.json @@ -112,13 +112,17 @@ }, "history": { "name": "History", - "successRate": "Success rate" + "successRate": "Success rate", + "statistic": "{{passed}} of {{total}}", + "time": "{{date}} at {{time}}", + "empty": "No history information available." }, "owner": { "name": "Owner" }, "retries": { "name": "Retries", + "time": "{{date}} at {{time}}", "empty": "There is no information available about test retries" }, "parameters": { @@ -134,7 +138,10 @@ "name": "Execution", "setup": "Set up", "teardown": "Tear down", - "body": "Test body" + "body": "Test body", + "downloadAttachment": { + "tooltip": "Open attachment in new tab" + } }, "stats": { "count": { diff --git a/allure-generator/src/main/javascript/translations/nl.json b/allure-generator/src/main/javascript/translations/nl.json index b1d1754c5..ed61a6c9a 100644 --- a/allure-generator/src/main/javascript/translations/nl.json +++ b/allure-generator/src/main/javascript/translations/nl.json @@ -111,15 +111,19 @@ "name": "Duur" }, "history": { - "name": "Historie", - "successRate": "Slagingsratio" + "name": "Geschiedenis", + "successRate": "Slagingsratio", + "statistic": "{{passed}} van {{total}}", + "time": "{{date}} om {{time}}", + "empty": "Geen historische gegevens beschikbaar." }, "owner": { "name": "Eigenaar" }, "retries": { - "name": "Nieuwe pogingen", - "empty": "Er is geen informatie over nieuwe testpogingen." + "name": "Pogingen", + "time": "{{date}} om {{time}}", + "empty": "Geen informatie beschikbaar." }, "parameters": { "name": "Parameters" @@ -134,7 +138,10 @@ "name": "Uitvoering", "setup": "Set up", "teardown": "Tear down", - "body": "Test body" + "body": "Test body", + "downloadAttachment": { + "tooltip": "Bijlage in een nieuw tabblad openen" + } }, "stats": { "count": { From 36077b679ee77e25f41d79aa5a0f5008e48d3713 Mon Sep 17 00:00:00 2001 From: Ico Davids Date: Mon, 5 Oct 2020 12:12:27 +0200 Subject: [PATCH 3/4] Several updates/improvements to the Dutch language resources. --- .../src/main/javascript/translations/nl.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/allure-generator/src/main/javascript/translations/nl.json b/allure-generator/src/main/javascript/translations/nl.json index ed61a6c9a..3334518cb 100644 --- a/allure-generator/src/main/javascript/translations/nl.json +++ b/allure-generator/src/main/javascript/translations/nl.json @@ -1,8 +1,8 @@ { "status": { "failed": "Gefaald", - "broken": "Kapot", - "passed": "Geslaagd", + "broken": "Defect", + "passed": "Succes", "skipped": "Overgeslagen", "unknown": "Onbekend", "flaky": "Test is instabiel", @@ -69,7 +69,7 @@ "environment": { "name": "Omgeving", "empty": "Er zijn geen omgevingsvariabelen", - "showAll": "Toon alle" + "showAll": "Toon alles" }, "suites": { "name": "Suites" @@ -178,15 +178,15 @@ "time": { "total" : { "name": "Totaal", - "tooltip": "Duur van eerste test gestart tot laatste test beëindigd" + "tooltip": "Doorloop van eerste test gestart tot laatste test beëindigd" }, "max": { - "name": "Langstdurend", + "name": "Langste", "tooltip": "Duur van de langste test" }, "sum": { "name": "Som", - "tooltip": "Duur van alle tests opgeteld" + "tooltip": "Opgetelde duur van alle tests" } }, "filtered": { @@ -196,7 +196,7 @@ } }, "widgetStatus": { - "showAll": "Toon alles", + "showAll": "Toon alle", "total": "{{count}} item in totaal", "total_plural": "{{count}} items in totaal" }, From f30b49cfc916702030b88e0dfd10e21867969554 Mon Sep 17 00:00:00 2001 From: Ico Davids Date: Mon, 5 Oct 2020 12:12:55 +0200 Subject: [PATCH 4/4] Fixed a typographical error in the Dutch language resources --- allure-generator/src/main/javascript/translations/nl.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/allure-generator/src/main/javascript/translations/nl.json b/allure-generator/src/main/javascript/translations/nl.json index 3334518cb..dce53faac 100644 --- a/allure-generator/src/main/javascript/translations/nl.json +++ b/allure-generator/src/main/javascript/translations/nl.json @@ -202,7 +202,7 @@ }, "statusToggle": { "showCases": "Toon testresultaten met status ‘{{status}}’", - "hideCases": "Verberg testresultaten met status ’{{status}}’" + "hideCases": "Verberg testresultaten met status ‘{{status}}’" }, "markToggle": { "showCases": "Toon testresultaten gemarkeerd als ‘{{mark}}’",