diff --git a/entity/CampaignAddParticipants_entity/entityfields/isoperationvalid/valueProcess.js b/entity/CampaignAddParticipants_entity/entityfields/isoperationvalid/valueProcess.js index 85fd13c8256b0266b3a65fca4adfa2dd2853c48f..0964b63d8d3cd49d05a560e82b366ac6948b077f 100644 --- a/entity/CampaignAddParticipants_entity/entityfields/isoperationvalid/valueProcess.js +++ b/entity/CampaignAddParticipants_entity/entityfields/isoperationvalid/valueProcess.js @@ -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); diff --git a/language/_____LANGUAGE_EXTRA/_____LANGUAGE_EXTRA.aod b/language/_____LANGUAGE_EXTRA/_____LANGUAGE_EXTRA.aod index 5a6d24c5ee8debb4667b4b247fe0544015a42c57..929895814d9427f1feb950924eee9db8d57e812e 100644 --- a/language/_____LANGUAGE_EXTRA/_____LANGUAGE_EXTRA.aod +++ b/language/_____LANGUAGE_EXTRA/_____LANGUAGE_EXTRA.aod @@ -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> diff --git a/language/_____LANGUAGE_de/_____LANGUAGE_de.aod b/language/_____LANGUAGE_de/_____LANGUAGE_de.aod index 1de19e936ce926c763fc38aa74ddfc7fe8514e85..2f04060f0b4553e52415651bd3d2d22b50b31493 100644 --- a/language/_____LANGUAGE_de/_____LANGUAGE_de.aod +++ b/language/_____LANGUAGE_de/_____LANGUAGE_de.aod @@ -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> diff --git a/language/_____LANGUAGE_en/_____LANGUAGE_en.aod b/language/_____LANGUAGE_en/_____LANGUAGE_en.aod index e83fcfb83e8b96a143af1a9c461b7b33947a144c..784956dd00696e0bcdc261e751b42ed1bb4c8af7 100644 --- a/language/_____LANGUAGE_en/_____LANGUAGE_en.aod +++ b/language/_____LANGUAGE_en/_____LANGUAGE_en.aod @@ -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>