From 25a6fc5e766991d33593a624b8da7feb8ad4cd0f Mon Sep 17 00:00:00 2001 From: Patrick Donelan Date: Wed, 11 Feb 2009 09:24:39 +0000 Subject: [PATCH] Added 'max responses per user' i18n and hoverhelp --- lib/WebGUI/Asset/Wobject/Survey.pm | 5 +++-- lib/WebGUI/i18n/English/Asset_Survey.pm | 10 ++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/lib/WebGUI/Asset/Wobject/Survey.pm b/lib/WebGUI/Asset/Wobject/Survey.pm index 5441660d1..3f0afc438 100644 --- a/lib/WebGUI/Asset/Wobject/Survey.pm +++ b/lib/WebGUI/Asset/Wobject/Survey.pm @@ -107,7 +107,8 @@ sub definition { maxResponsesPerUser => { fieldType => 'integer', defaultValue => 1, - label => 'Max user reponses', + label => $i18n->get('Max user responses'), + hoverHelp => $i18n->get('Max user responses help'), }, overviewTemplateId => { tab => 'display', @@ -185,7 +186,7 @@ sub definition { } ); return $class->SUPER::definition( $session, $definition ); -} ## end sub definition +} #------------------------------------------------------------------- diff --git a/lib/WebGUI/i18n/English/Asset_Survey.pm b/lib/WebGUI/i18n/English/Asset_Survey.pm index db4f29ad8..50aba4b29 100644 --- a/lib/WebGUI/i18n/English/Asset_Survey.pm +++ b/lib/WebGUI/i18n/English/Asset_Survey.pm @@ -530,6 +530,16 @@ the time limit for completing the survey. This message is in the 'take survey' t message => q|When the user finishes the surevey, they will be sent to this URL. Leave blank if no special forwarding is required. The gateway setting from the config file will be automatically added to the URL for you.|, lastUpdated => 1233714385, }, + + 'Max user responses' => { + message => q|Max user responses|, + lastUpdated => 0, + }, + + 'Max user responses help' => { + message => q|The maximum number of times an individual user is allowed to complete the Survey.|, + lastUpdated => 0, + }, 'percentage label' => { message => q|Percentage|,