Commit e274cd80 authored by Denis Chenu's avatar Denis Chenu

[fix] Lang string for type (to moment)

parent 960ea6bc
...@@ -118,8 +118,8 @@ class sendMailCron extends PluginBase ...@@ -118,8 +118,8 @@ class sendMailCron extends PluginBase
), ),
'cronTypes' => array( 'cronTypes' => array(
'type'=>'text', 'type'=>'text',
'label'=>"Cron/task type.", 'label'=>"Cron moment type.",
'help'=>"One type by line, use only alphanumeric caracter, you can use <code>,</code> or <code>;</code> as separator.", 'help'=>"One moment by line, use only alphanumeric caracter, you can use <code>,</code> or <code>;</code> as separator.",
'default'=>'', 'default'=>'',
), ),
'cronTypeNone' => array( 'cronTypeNone' => array(
...@@ -128,8 +128,8 @@ class sendMailCron extends PluginBase ...@@ -128,8 +128,8 @@ class sendMailCron extends PluginBase
'htmlOption'=>array( 'htmlOption'=>array(
'uncheckValue'=>0 'uncheckValue'=>0
), ),
'label'=>"Survey without cron type use empty cron type only.", 'label'=>"Survey without moment use empty moment or moment not set only.",
'help'=>"If a survey don't have type: you can choose if it sended for each cron or only if no type is set", 'help'=>"If a survey don't have type: you can choose if it sended for each cron or only if no moment is set",
'default'=>1, 'default'=>1,
), ),
); );
...@@ -300,7 +300,7 @@ class sendMailCron extends PluginBase ...@@ -300,7 +300,7 @@ class sendMailCron extends PluginBase
foreach($availCronTypes as $cronType){ foreach($availCronTypes as $cronType){
$cronTypesOtions[$cronType]=$cronType; $cronTypesOtions[$cronType]=$cronType;
} }
$emptyLabel=$this->get('cronTypeNone',null,null,$this->settings['cronTypeNone']['default']) ? $this->translate->gT("Only for no cron type") : $this->translate->gT("For all cron type"); $emptyLabel=$this->get('cronTypeNone',null,null,$this->settings['cronTypeNone']['default']) ? $this->translate->gT("Only if no moment is set") : $this->translate->gT("At all moment");
$aSettings['cronTypes']=array( $aSettings['cronTypes']=array(
'type'=>'select', 'type'=>'select',
'htmlOptions'=>array( 'htmlOptions'=>array(
...@@ -315,7 +315,7 @@ class sendMailCron extends PluginBase ...@@ -315,7 +315,7 @@ class sendMailCron extends PluginBase
'controlOptions'=>array( 'controlOptions'=>array(
'class'=>'search-100', 'class'=>'search-100',
), ),
'label'=>$this->translate->gT("Type of emailing"), 'label'=>$this->translate->gT("Moment for emailing"),
'options'=>$cronTypesOtions, 'options'=>$cronTypesOtions,
'current'=>$this->get('cronTypes', 'Survey', $iSurveyId,array()), 'current'=>$this->get('cronTypes', 'Survey', $iSurveyId,array()),
); );
...@@ -888,7 +888,6 @@ class sendMailCron extends PluginBase ...@@ -888,7 +888,6 @@ class sendMailCron extends PluginBase
} else { } else {
$this->cronType=$cronType; $this->cronType=$cronType;
} }
//$this->disable=boolval(substr($arg,strlen("sendMailCronDisable=")));
} }
} }
} }
......
...@@ -52,6 +52,9 @@ class sendMailCronTranslate ...@@ -52,6 +52,9 @@ class sendMailCronTranslate
"all participants"=>"Tous les participants", "all participants"=>"Tous les participants",
"participants who did not started survey."=>"aux participants qui n'ont pas démarré le questionaire", "participants who did not started survey."=>"aux participants qui n'ont pas démarré le questionaire",
"participants who started survey."=>"aux participants qui ont démarré le questionnaire", "participants who started survey."=>"aux participants qui ont démarré le questionnaire",
"Only if no moment is set"=>"Seulement si il n'y a pas de moment d'indiqué",
"At all moment"=>"Pour tous les moments",
"Moment for emailing"=>"Moment pour l'envoi des messages",
), ),
); );
/** /**
......
Markdown is supported
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