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