Commit b4c560db authored by Karl's avatar Karl
Browse files

Übersehen Punkt in kontakt.js übersetzt

parent dfc1d558
......@@ -2403,21 +2403,28 @@ 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"];
}
}
}
(function ($, undefined) {
......
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment