From: Wolfram Schneider Date: Thu, 24 Sep 2015 15:12:59 +0000 (+0000) Subject: update German translation X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=94012a9c3fb4e26743b5b8617c10693f4906b703;p=mkws-moved-to-github.git update German translation --- diff --git a/test/spec-dev/translate.spec.js b/test/spec-dev/translate.spec.js index af7be83..13338af 100644 --- a/test/spec-dev/translate.spec.js +++ b/test/spec-dev/translate.spec.js @@ -80,7 +80,9 @@ describe("Init jasmine config", function () { // temporary disabled due records without an author, MKWS-400 describe("Check translations", function () { - var $ = function (string) { return string }; + var $ = function (string) { + return string + }; // handle html entities, "Zurück" => "Zurück" var M = function (string) { @@ -98,47 +100,49 @@ describe("Check translations", function () { var locale_lang = { "de": { - "Authors": "Autoren", - "Subjects": "Schlagwörter", - "Sources": "Daten und Quellen", - "source": "datenquelle", - "Facets": "Termlisten", - "Next": "Weiter", - "Prev": "Zurück", - "Search": "Suche", - "Sort by": "Sortieren nach", - "and show": "und zeige", - "per page": "pro Seite", - "Displaying": "Zeige", - "to": "von", - "of": "aus", - "found": "gefunden", - "Title": "Titel", - "Author": "Autor", - "author": "autor", - "Date": "Datum", - "Subject": "Schlagwort", - "subject": "schlagwort", - "Location": "Ort", - "Records": "Datensätze", - "Targets": "Datenbanken", - "relevance": "Relevanz", - "title": "Titel", - "newest": "Neueste", - "oldest": "Älteste", - - "dummy": "dummy" - }}; + "Authors": "Autoren", + "Subjects": "Schlagwörter", + "Sources": "Daten und Quellen", + "source": "datenquelle", + "Facets": "Termlisten", + "Next": "Weiter", + "Prev": "Zurück", + "Search": "Suche", + "Sort by": "Sortieren nach", + "and show": "und zeige", + "per page": "pro Seite", + "Displaying": "Zeige", + "to": "von", + "of": "aus", + "found": "gefunden", + "Title": "Titel", + "Author": "Autor", + "author": "autor", + "Date": "Datum", + "Subject": "Schlagwort", + "subject": "schlagwort", + "Location": "Bestand", + "Locations": "Bestand", + "Records": "Datensätze", + "Targets": "Datenbanken", + "relevance": "Relevanz", + "title": "Titel", + "newest": "Neueste", + "oldest": "Älteste", + + "dummy": "dummy" + } + }; function check_translation_list(keywords, list) { var errors = []; for (var i = 0; i < keywords.length; i++) { - if ($(list[i]).match("^" + M(keywords[i]) + ": ") ) { + if ($(list[i]).match("^" + M(keywords[i]) + ": ")) { debug("found: " + list[i] + " :: " + keywords[i]); - } else { + } else { debug("NOT found: " + list[i] + " :: " + keywords[i]); errors.push(keywords[i]) - } + } } expect(errors.length).not.toBeGreaterThan(1); } @@ -152,8 +156,8 @@ describe("Check translations", function () { check_translation_list(keywords, list); - for(var i = 0; i < keywords.length; i++ ) { - keywords_de.push(locale_lang["de"][keywords[i]]); + for (var i = 0; i < keywords.length; i++) { + keywords_de.push(locale_lang["de"][keywords[i]]); } debug(keywords_de); check_translation_list(keywords_de, list_de); diff --git a/test/spec/mkws-config.js b/test/spec/mkws-config.js index 6942142..37c9c0d 100644 --- a/test/spec/mkws-config.js +++ b/test/spec/mkws-config.js @@ -41,7 +41,7 @@ describe("Check mkws.config object", function () { it("mkws.config locale check German", function () { expect(mkws.locale_lang.de.Authors).toMatch(/^Autoren$/); - expect(mkws.locale_lang.de.Location).toMatch(/^Ort$/); + expect(mkws.locale_lang.de.Location).toMatch(/^Bestand$/); }); it("mkws.config locale check Danish", function () { expect(mkws.locale_lang.da.Authors).toMatch(/^Forfattere$/); diff --git a/test/spec/mkws-pazpar2.js b/test/spec/mkws-pazpar2.js index 12cbfcf..ceecc5d 100644 --- a/test/spec/mkws-pazpar2.js +++ b/test/spec/mkws-pazpar2.js @@ -629,7 +629,8 @@ describe("Check translations", function () { "Date": "Datum", "Subject": "Schlagwort", "subject": "schlagwort", - "Location": "Ort", + "Location": "Bestand", + "Locations": "Bestand", "Records": "Datensätze", "Targets": "Datenbanken", "relevance": "Relevanz",