Skip to content
Snippets Groups Projects
Commit aa373816 authored by David Büchler's avatar David Büchler
Browse files

Nachritentexte wurden übersetzt

parent 96edfbc1
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,6 @@ import("system.vars");
import("system.neon");
var campaignParticipantsAmount = 0;
var informationText = translate.text("participants will be added to the selected campaign step");
var targetTable = vars.get("$param.dataSourceTableName_param");
var selectionRowIds = JSON.parse(vars.getString("$param.campaignParticipantsRowIds_param"));
......@@ -91,18 +90,21 @@ if(selectedCampaignId != '')
if(countValidParticipantsToAdd <= 0)
{
messageString = "Alle selektierten Teilnehmer befinden sich bereits in der Kampagne";
messageString = translate.text("All selected participants already are in the campaign");
}
else if(hasStepEnoughSlots(countValidParticipantsToAdd))
{
messageString = countValidParticipantsToAdd + "/" + countParticipantsToAdd + " " + informationText;
messageString = translate.text("#countValidParticipantsToAdd#/#countParticipantsToAdd# participant(s) will be added to the selected campaign step");
messageString = messageString.replace("#countValidParticipantsToAdd#", countValidParticipantsToAdd);
messageString = messageString.replace("#countParticipantsToAdd#", countParticipantsToAdd);
resultValue = "true";
}
else
{
messageString = "Nicht genug Teilnehmerplätze für "
+ countValidParticipantsToAdd + "/" + countParticipantsToAdd
+ " Teilnehmern vorhanden";
messageString = translate.text("Not enough slots for #countValidParticipantsToAdd#/#countParticipantsToAdd# participant(s)");
messageString = messageString.replace("#countValidParticipantsToAdd#", countValidParticipantsToAdd);
messageString = messageString.replace("#countParticipantsToAdd#", countParticipantsToAdd);
}
neon.setFieldValue("$field.campaignParticipantMessage", messageString);
result.string(resultValue);
......
......@@ -4260,6 +4260,24 @@
<entry>
<key>Header</key>
</entry>
<entry>
<key>Open admin view</key>
</entry>
<entry>
<key>All selected participants already are in the campaign</key>
</entry>
<entry>
<key>participant</key>
</entry>
<entry>
<key>will be added to the selected campaign step</key>
</entry>
<entry>
<key>Not enough slots for</key>
</entry>
<entry>
<key>participants</key>
</entry>
</keyValueMap>
<font name="Dialog" style="0" size="11" />
<sqlModels>
......
......@@ -5389,6 +5389,18 @@
<key>Urlaubsprüfung durch</key>
<value>Urlaubsprüfung durch</value>
</entry>
<entry>
<key>All selected participants already are in the campaign</key>
<value>Alle selektierten Teilnehmer sind bereits in der Kampagne</value>
</entry>
<entry>
<key>#countValidParticipantsToAdd#/#countParticipantsToAdd# participant(s) will be added to the selected campaign step</key>
<value>#countValidParticipantsToAdd#/#countParticipantsToAdd# Teilnehmer werden zur selektierten Kampagnenstufe hinzugefügt</value>
</entry>
<entry>
<key>Not enough slots for #countValidParticipantsToAdd#/#countParticipantsToAdd# participant(s)</key>
<value>Nicht genügend Teilnehmerplätze verfügbar für #countValidParticipantsToAdd#/#countParticipantsToAdd# Teilnehmer</value>
</entry>
</keyValueMap>
<font name="Dialog" style="0" size="11" />
</language>
......@@ -4309,6 +4309,18 @@
<entry>
<key>Header</key>
</entry>
<entry>
<key>Open admin view</key>
</entry>
<entry>
<key>All selected participants already are in the campaign</key>
</entry>
<entry>
<key>#countValidParticipantsToAdd#/#countParticipantsToAdd# participant(s) will be added to the selected campaign step</key>
</entry>
<entry>
<key>Not enough slots for #countValidParticipantsToAdd#/#countParticipantsToAdd# participant(s)</key>
</entry>
</keyValueMap>
<font name="Dialog" style="0" size="11" />
</language>
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