update German translation
authorWolfram Schneider <wosch@indexdata.dk>
Thu, 24 Sep 2015 15:12:59 +0000 (15:12 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Thu, 24 Sep 2015 15:12:59 +0000 (15:12 +0000)
test/spec-dev/translate.spec.js
test/spec/mkws-config.js
test/spec/mkws-pazpar2.js

index af7be83..13338af 100644 (file)
@@ -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&uuml;ck" => "Zurück"
     var M = function (string) {
@@ -98,47 +100,49 @@ describe("Check translations", function () {
 
     var locale_lang = {
         "de": {
-      "Authors": "Autoren",
-      "Subjects": "Schlagw&ouml;rter",
-      "Sources": "Daten und Quellen",
-      "source": "datenquelle",
-      "Facets": "Termlisten",
-      "Next": "Weiter",
-      "Prev": "Zur&uuml;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&auml;tze",
-      "Targets": "Datenbanken",
-      "relevance": "Relevanz",
-      "title": "Titel",
-      "newest": "Neueste",
-      "oldest": "&Auml;lteste",
-
-      "dummy": "dummy"
-        }};
+            "Authors": "Autoren",
+            "Subjects": "Schlagw&ouml;rter",
+            "Sources": "Daten und Quellen",
+            "source": "datenquelle",
+            "Facets": "Termlisten",
+            "Next": "Weiter",
+            "Prev": "Zur&uuml;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&auml;tze",
+            "Targets": "Datenbanken",
+            "relevance": "Relevanz",
+            "title": "Titel",
+            "newest": "Neueste",
+            "oldest": "&Auml;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);
index 6942142..37c9c0d 100644 (file)
@@ -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$/);
index 12cbfcf..ceecc5d 100644 (file)
@@ -629,7 +629,8 @@ describe("Check translations", function () {
       "Date": "Datum",
       "Subject": "Schlagwort",
       "subject": "schlagwort",
-      "Location": "Ort",
+      "Location": "Bestand",
+      "Locations": "Bestand",
       "Records": "Datens&auml;tze",
       "Targets": "Datenbanken",
       "relevance": "Relevanz",