-
Notifications
You must be signed in to change notification settings - Fork 0
/
languages.js
118 lines (118 loc) · 6.54 KB
/
languages.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
function changeLanguage() {
browserLang = window.navigator.language;
browserLang = browserLang.slice(0, 2).toLowerCase();
if (window.fallback == false) {browserLang = ""};
if (browserLang == "de") {
//german
window.fallback = false;
strBtnPush = "Sende\nErinnerung";
strYear = "Jahre";
strMonth = "Monate";
strDay = "Tage";
strAddEvent = "Ereignis hinzufügen";
strChangeEventTitle = "Ereignis aktualisieren";
strBtnCancel = "Abbrechen";
strBtnSend = "Speichern & senden";
strBtnDelete = "Eintrag löschen";
strIptLabelE = "Ereignis";
strIptDate = "Zieldatum";
strWindowMsg = "Wollen Sie eine stille Nachricht in den aktuellen Chat senden? \n \n Oder wollen Sie eine normale Chatnachricht senden um eine Benachrichtigung auszulösen?";
strChatMsg = "Chat-Nachricht";
strSilentMsg = "Stille Nachricht";
strInfoMsgY = "%N möchte dich an das Ereignis \"%E\" in %Y Jahren, %M Monaten und %D Tagen erinnern.";
strInfoMsgM = "%N möchte dich an das Ereignis \"%E\" in %M Monaten und %D Tagen erinnern.";
strInfoMsgD = "%N möchte dich an das Ereignis \"%E\" in %D Tagen erinnern.";
strInfoMsgTM = "%N möchte dich an das Ereignis \"%E\" morgen erinnern.";
strInfoMsgTD = "%N möchte dich an das Ereignis \"%E\" heute erinnern.";
strInfoMsgO = "%N hat gerade festgestellt, dass das Ereignis \"%E\" bereits vorüber ist.";
strNewEvent = "%N hat einen neuen Countdown für das Event \"%E\" hinzugefügt.";
strChangeEvent = "%N hat gerade das Event \"%E\" geändert.";
strDeleteEvent = "Der Countdown für das Event \"%E\" wurde gerade durch %N entfernt.";
}
else if (browserLang == "fr") {
//french
window.fallback = false;
strBtnPush = "Envoyer\nun rappel";
strYear = "Années";
strMonth = "Mois";
strDay = "Jours";
strAddEvent = "Ajouter un évènement";
strChangeEventTitle = "Événement de mise à jour";
strBtnCancel = "Annuler";
strBtnSend = "Enregistrer & envoyer";
strBtnDelete = "Supprimer l'entrée";
strIptLabelE = "Evènement";
strIptDate = "Date cible";
strWindowMsg = "Voulez-vous envoyer un message silencieux dans le chat en cours?\n\nOu souhaitez-vous envoyer un message de chat normal pour déclencher une notification?";
strChatMsg = "Message de discussion";
strSilentMsg = "Message silencieux";
strInfoMsgY = "%N veut vous rappeler l'événement \"%E\" dans %Y années, %M mois et %D jours";
strInfoMsgM = "%N veut vous rappeler l'événement \"%E\" dans %M mois et %D jours.";
strInfoMsgD = "%N veut vous rappeler l'événement \"%E\" dans %D jours.";
strInfoMsgTM = "%N aimerait vous rappeler l'événement \"%E\" de demain.";
strInfoMsgTD = "%N aimerait vous rappeler l'événement \"%E\" d'aujourd'hui.";
strInfoMsgO = "%N vient de découvrir que l'événement \"%E\" est déjà passé.";
strNewEvent = "%N a ajouté un nouveau compte à rebours pour l'événement \"%E\".";
strChangeEvent = "%N vient de modifier l'événement \"%E\".";
strDeleteEvent = "Le compte à rebours de l'événement \"%E\" vient d'être supprimé par %N.";
}
else {
//fallback
strBtnPush = "Send\nReminder";
strYear = "Years";
strMonth = "Months";
strDay = "Days";
strAddEvent = "Add an Event";
strChangeEventTitle = "Update event";
strBtnCancel = "Cancel";
strBtnSend = "Save & send";
strBtnDelete = "Delete Entry";
strIptLabelE = "Event";
strIptDate = "Target date";
strWindowMsg = "Do you want to send a silent message in the current chat?\nOr do you want to send a normal chat message to trigger a notification?";
strChatMsg = "Chat message";
strSilentMsg = "Silent message";
strInfoMsgY = "%N wants to remind you of the event \"%E\" in %Y years, %M months and %D days.";
strInfoMsgM = "%N wants to remind you of the event \"%E\" in %M months and %D days.";
strInfoMsgD = "%N wants to remind you of the event \"%E\" in %D days.";
strInfoMsgTM = "%N would like to remind you of the event \"%E\" tomorrow.";
strInfoMsgTD = "%N would like to remind you of the event \"%E\" today.";
strInfoMsgO = "%N has just discovered that event \"%E\" has already passed.";
strNewEvent = "%N added a new countdown for the event \"%E\".";
strChangeEvent = "%N just modified event \"%E\".";
strDeleteEvent = "The countdown for event \"%E\" has just been removed by %N.";
}
if (infoSite == false) {
document.getElementById("inputlabel").innerHTML=strIptLabelE;
document.getElementById("datepickerlabel").innerHTML=strIptDate;
if (window.page=="index") {
const arrLang=[strYear, strMonth, strDay];
const arrLabel=["labelY", "labelM", "labelD"];
for (let i=0;i<arrLang.length;i++) {
string = arrLang[i];
labelID = arrLabel[i];
calcID = arrCalc[i];
for (let a=0;a<window.maxTable;a++) {
document.getElementById(labelID+a.toString()).innerHTML = string;
document.getElementById(calcID+a.toString()).innerHTML = "---";
document.getElementById(btnID+a.toString()).value=strBtnPush;
document.getElementById(eventLabelID+a.toString()).innerHTML = strAddEvent;
document.getElementById(labelDatelD+a.toString()).innerHTML="";
}
}
}
else {
document.getElementById('newEventTitle').innerHTML = strAddEvent;
document.getElementById('btnSave').value = strBtnSend;
document.getElementById('btnCancel').value = strBtnCancel;
document.getElementById('btnDelete').value = strBtnDelete;
}
}
else {
//translations for "chatmsg.html"
document.getElementById('infoTxt').innerHTML = strWindowMsg;
document.getElementById('btnChatMsg').value = strChatMsg;
document.getElementById('btnSilentMsg').value = strSilentMsg;
document.getElementById('cancel').value = strBtnCancel;
}
};