Skip to content
Snippets Groups Projects
Commit dfc1d558 authored by Karl's avatar Karl
Browse files

Übersehen Punkt in kontakt.js übersetzt

parent 28c9565e
No related branches found
No related tags found
1 merge request!1365Resolve "Filter Options for MetaGer"
......@@ -44,20 +44,27 @@ function encrypt() {
}
}
$(document).ready(function() {
if (isEnglish()) {
$(".encrypt-btn").html("encrypt and send");
} else {
$(".encrypt-btn").html("Verschlüsseln und senden");
switch (getLanguage()) {
case "de":
$(".encrypt-btn").html("Verschlüsseln und senden");
break;
case "en":
$(".encrypt-btn").html("encrypt and send");
break;
case "es":
// $(".encrypt-btn").html(""); TODO
break;
}
$(".contact").submit(function() {
return encrypt(this);
});
});
function isEnglish() {
if (window.location.href.indexOf('/en/') == -1) {
return false;
} else {
return true;
function getLanguage() {
var metaData = document.getElementsByTagName('meta');
for (var m in metaData) {
if (metaData[m]["httpEquiv"] == "language") {
return metaData[m]["content"];
}
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment