Started vc integration in frontend
diff --git a/dev/js/src/app/de.js b/dev/js/src/app/de.js
index f5be5ec..6576051 100644
--- a/dev/js/src/app/de.js
+++ b/dev/js/src/app/de.js
@@ -9,6 +9,7 @@
loc.VC_title = 'Titel';
loc.VC_pubDate = 'Veröffentlichungsdatum';
loc.VC_pubPlace = 'Veröffentlichungsort';
+ loc.VC_allCorpora = 'allen Korpora';
// Date picker:
loc.WDAY = ['Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa', 'So'];
diff --git a/dev/js/src/init.js b/dev/js/src/init.js
index 7c403aa..09804ca 100644
--- a/dev/js/src/init.js
+++ b/dev/js/src/init.js
@@ -21,6 +21,10 @@
// Set hint array for hint helper
KorAP.hintArray = hintArray;
+ // Localization values
+ var loc = KorAP.Locale;
+ loc.VC_allCorpora = loc.VC_allCorpora || 'all Corpora';
+
// Override KorAP.log
window.alertify = alertifyClass;
KorAP.log = function (type, msg) {
@@ -48,7 +52,7 @@
vcname.setAttribute('id', 'vc-choose');
vcname.appendChild(
document.createTextNode(
- document.getElementById('vc-name').value
+ document.getElementById('vc-name').value || loc.VC_allCorpora
)
);
input.parentNode.insertBefore(vcname, input);