i18n and hoverhelp for the definition

This commit is contained in:
Colin Kuskie 2009-01-23 05:34:27 +00:00
parent 16ce54bf4f
commit 4437c2704c
2 changed files with 100 additions and 27 deletions

View file

@ -31,119 +31,123 @@ sub definition {
tie %properties, 'Tie::IxHash';
%properties = (
templateId => {
fieldType => "template",
fieldType => 'template',
defaultValue => 'PBtmpl0000000000000061',
tab => "display",
namespace => "Survey",
hoverHelp => "A Survey System",
label => "Template ID"
tab => 'display',
namespace => 'Survey',
label => $i18n->get('survey template'),
hoverHelp => $i18n->get('survey template help'),
},
showProgress => {
fieldType => "yesNo",
fieldType => 'yesNo',
defaultValue => 0,
tab => 'properties',
label => "Show user their progress"
label => $i18n->get('Show user their progress'),
hoverHelp => $i18n->get('Show user their progress help'),
},
showTimeLimit => {
fieldType => "yesNo",
fieldType => 'yesNo',
defaultValue => 0,
tab => 'properties',
label => "Show user their time remaining"
label => $i18n->get('Show user their time remaining'),
hoverHelp => $i18n->get('Show user their time remaining'),
},
timeLimit => {
fieldType => 'integer',
defaultValue => 0,
tab => 'properties',
label => $i18n->get('timelimit'),
hoverHelp => $i18n->get('timelimit hoverHelp'),
label => $i18n->get('timelimit')
},
groupToEditSurvey => {
fieldType => 'group',
defaultValue => 4,
label => "Group to edit survey",
label => $i18n->get('Group to edit survey'),
hoverHelp => $i18n->get('Group to edit survey help'),
},
groupToTakeSurvey => {
fieldType => 'group',
defaultValue => 2,
label => "Group to take survey",
label => $i18n->get('Group to take survey'),
hoverHelp => $i18n->get('Group to take survey help'),
},
groupToViewReports => {
fieldType => 'group',
defaultValue => 4,
label => "Group to view reports",
label => $i18n->get('Group to view reports'),
hoverHelp => $i18n->get('Group to view reports help'),
},
exitURL => {
fieldType => 'text',
defaultValue => undef,
label => "Set the URL that the survey will exit to",
hoverHelp =>
"When the user finishes the survey, they will be sent to this URL. Leave blank if no forwarding required.",
label => $i18n->get('Survey Exit URL'),
hoverHelp => $i18n->get('Survey Exit URL help'),
},
maxResponsesPerUser => {
fieldType => 'integer',
defaultValue => 1,
label => "Max user reponses",
label => 'Max user reponses',
},
overviewTemplateId => {
tab => 'display',
fieldType => 'template',
defaultValue => 'PBtmpl0000000000000063',
label => "Overview template id",
label => 'Overview template id',
namespace => 'Survey/Overview',
},
gradebookTemplateId => {
tab => 'display',
fieldType => 'template',
label => "Grabebook template id",
label => 'Grabebook template id',
defaultValue => 'PBtmpl0000000000000062',
namespace => 'Survey/Gradebook',
},
responseTemplateId => {
tab => 'display',
fieldType => 'template',
label => "Response template id",
label => 'Response template id',
defaultValue => 'PBtmpl0000000000000064',
namespace => 'Survey/Response',
},
surveyEditTemplateId => {
tab => 'display',
fieldType => 'template',
label => "Survey edit template id",
label => 'Survey edit template id',
defaultValue => 'GRUNFctldUgop-qRLuo_DA',
namespace => 'Survey/Edit',
},
surveyTakeTemplateId => {
tab => 'display',
fieldType => 'template',
label => "Take survey template id",
label => 'Take survey template id',
defaultValue => 'd8jMMMRddSQ7twP4l1ZSIw',
namespace => 'Survey/Take',
},
surveyQuestionsId => {
tab => 'display',
fieldType => 'template',
label => "Questions template id",
label => 'Questions template id',
defaultValue => 'CxMpE_UPauZA3p8jdrOABw',
namespace => 'Survey/Take',
},
sectionEditTemplateId => {
tab => 'display',
fieldType => 'template',
label => "Section Edit Tempalte",
label => 'Section Edit Tempalte',
defaultValue => '1oBRscNIcFOI-pETrCOspA',
namespace => 'Survey/Edit',
},
questionEditTemplateId => {
tab => 'display',
fieldType => 'template',
label => "Question Edit Tempalte",
label => 'Question Edit Tempalte',
defaultValue => 'wAc4azJViVTpo-2NYOXWvg',
namespace => 'Survey/Edit',
},
answerEditTemplateId => {
tab => 'display',
fieldType => 'template',
label => "Answer Edit Tempalte",
label => 'Answer Edit Tempalte',
defaultValue => 'AjhlNO3wZvN5k4i4qioWcg',
namespace => 'Survey/Edit',
},

View file

@ -310,7 +310,76 @@ dialog.|,
message => q|How many minutes the user has to finish the survey from the moment they start. 0 means unlimited time.|,
lastUpdated => 1231193335,
},
'survey template' => {
message => q|Survey Template|,
lastUpdated => 0,
},
'survey template help' => {
message => q|The template to display the main page of the survey.|,
lastUpdated => 0,
},
'Show user their progress' => {
message => q|Show user their progress?|,
lastUpdated => 0,
},
'Show user their progress help' => {
message => q|Set to yes to display to the user how many questions they have answered, and how many they have left to go.|,
lastUpdated => 0,
},
'Show user their time remaining' => {
message => q|Show user their time remaining?|,
lastUpdated => 0,
},
'Show user their time remaining help' => {
message => q|Set to yes to display to the user how much time they have left to finish the survey.|,
lastUpdated => 0,
},
'Group to edit survey' => {
message => q|Group to edit the survey.|,
lastUpdated => 0,
},
'Group to edit survey help' => {
message => q|Select a group who can edit the survey.|,
lastUpdated => 0,
},
'Group to take survey' => {
message => q|Group to take the survey.|,
lastUpdated => 0,
},
'Group to take survey help' => {
message => q|Select a group who can take the survey.|,
lastUpdated => 0,
},
'Group to view reports' => {
message => q|Group to view reports.|,
lastUpdated => 0,
},
'Group to view reports help' => {
message => q|Select a group who can view reports.|,
lastUpdated => 0,
},
'Survey Exit URL' => {
message => q|Survey Exit URL|,
lastUpdated => 0,
},
'Survey Exit URL help' => {
message => q|When the user finishes the surevey, they will be sent to this URL. Leave blank if no special forwarding is required.|,
lastUpdated => 0,
},
};
1;