From aa373816b0cce6f7f9379bbd98135cb3ea85591a Mon Sep 17 00:00:00 2001 From: "d.buechler" <d.buechler@adito.de> Date: Thu, 4 Jul 2019 11:05:59 +0200 Subject: [PATCH] =?UTF-8?q?Nachritentexte=20wurden=20=C3=BCbersetzt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../isoperationvalid/valueProcess.js | 14 ++++++++------ .../_____LANGUAGE_EXTRA.aod | 18 ++++++++++++++++++ language/_____LANGUAGE_de/_____LANGUAGE_de.aod | 12 ++++++++++++ language/_____LANGUAGE_en/_____LANGUAGE_en.aod | 12 ++++++++++++ 4 files changed, 50 insertions(+), 6 deletions(-) diff --git a/entity/CampaignAddParticipants_entity/entityfields/isoperationvalid/valueProcess.js b/entity/CampaignAddParticipants_entity/entityfields/isoperationvalid/valueProcess.js index 85fd13c825..0964b63d8d 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 5a6d24c5ee..929895814d 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 1de19e936c..2f04060f0b 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 e83fcfb83e..784956dd00 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> -- GitLab