From ba6764065b70bb22eda9fb48414c2d2950864f0e Mon Sep 17 00:00:00 2001 From: Patrick Donelan Date: Wed, 11 Feb 2009 09:25:17 +0000 Subject: [PATCH] Added Survey Template i18n and hoverhelp --- lib/WebGUI/Asset/Wobject/Survey.pm | 67 +++++++-------- lib/WebGUI/i18n/English/Asset_Survey.pm | 104 ++++++++++++++++++------ 2 files changed, 114 insertions(+), 57 deletions(-) diff --git a/lib/WebGUI/Asset/Wobject/Survey.pm b/lib/WebGUI/Asset/Wobject/Survey.pm index 3f0afc438..0db07667e 100644 --- a/lib/WebGUI/Asset/Wobject/Survey.pm +++ b/lib/WebGUI/Asset/Wobject/Survey.pm @@ -110,69 +110,70 @@ sub definition { label => $i18n->get('Max user responses'), hoverHelp => $i18n->get('Max user responses help'), }, - overviewTemplateId => { - tab => 'display', - fieldType => 'template', - defaultValue => 'PBtmpl0000000000000063', - label => 'Overview template id', - namespace => 'Survey/Overview', - }, - gradebookTemplateId => { - tab => 'display', - fieldType => 'template', - label => 'Grabebook template id', - defaultValue => 'PBtmpl0000000000000062', - namespace => 'Survey/Gradebook', - }, - responseTemplateId => { - tab => 'display', - fieldType => 'template', - label => 'Response template id', - defaultValue => 'PBtmpl0000000000000064', - namespace => 'Survey/Response', - }, - surveyEditTemplateId => { - tab => 'display', - fieldType => 'template', - label => 'Survey edit template id', - defaultValue => 'GRUNFctldUgop-qRLuo_DA', - namespace => 'Survey/Edit', - }, surveyTakeTemplateId => { tab => 'display', fieldType => 'template', - label => 'Take survey template id', + label => $i18n->get('Take Survey Template'), + hoverHelp => $i18n->get('Take Survey Template help'), defaultValue => 'd8jMMMRddSQ7twP4l1ZSIw', namespace => 'Survey/Take', }, surveyQuestionsId => { tab => 'display', fieldType => 'template', - label => 'Questions template id', + label => $i18n->get('Questions Template'), + hoverHelp => $i18n->get('Questions Template help'), defaultValue => 'CxMpE_UPauZA3p8jdrOABw', namespace => 'Survey/Take', }, + surveyEditTemplateId => { + tab => 'display', + fieldType => 'template', + label => $i18n->get('Survey Edit Template'), + hoverHelp => $i18n->get('Survey Edit Template help'), + defaultValue => 'GRUNFctldUgop-qRLuo_DA', + namespace => 'Survey/Edit', + }, sectionEditTemplateId => { tab => 'display', fieldType => 'template', - label => 'Section Edit Tempalte', + label => $i18n->get('Section Edit Template'), + hoverHelp => $i18n->get('Section Edit Template help'), defaultValue => '1oBRscNIcFOI-pETrCOspA', namespace => 'Survey/Edit', }, questionEditTemplateId => { tab => 'display', fieldType => 'template', - label => 'Question Edit Tempalte', + label => $i18n->get('Question Edit Template'), + hoverHelp => $i18n->get('Question Edit Template help'), defaultValue => 'wAc4azJViVTpo-2NYOXWvg', namespace => 'Survey/Edit', }, answerEditTemplateId => { tab => 'display', fieldType => 'template', - label => 'Answer Edit Tempalte', + label => $i18n->get('Answer Edit Template'), + hoverHelp => $i18n->get('Answer Edit Template help'), defaultValue => 'AjhlNO3wZvN5k4i4qioWcg', namespace => 'Survey/Edit', }, + overviewTemplateId => { + tab => 'display', + fieldType => 'template', + defaultValue => 'PBtmpl0000000000000063', + label => $i18n->get('Overview Report Template'), + hoverHelp => $i18n->get('Overview Report Template help'), + namespace => 'Survey/Overview', + }, + gradebookTemplateId => { + tab => 'display', + fieldType => 'template', + label => $i18n->get('Grabebook Report Template'), + hoverHelp => $i18n->get('Grabebook Report Template help'), + defaultValue => 'PBtmpl0000000000000062', + namespace => 'Survey/Gradebook', + }, ); push( diff --git a/lib/WebGUI/i18n/English/Asset_Survey.pm b/lib/WebGUI/i18n/English/Asset_Survey.pm index 50aba4b29..233a9b58a 100644 --- a/lib/WebGUI/i18n/English/Asset_Survey.pm +++ b/lib/WebGUI/i18n/English/Asset_Survey.pm @@ -540,6 +540,86 @@ the time limit for completing the survey. This message is in the 'take survey' t message => q|The maximum number of times an individual user is allowed to complete the Survey.|, lastUpdated => 0, }, + + 'Overview Report Template' => { + message => q|Overview Report Template|, + lastUpdated => 0, + }, + + 'Overview Report Template help' => { + message => q|The template used to display the Overview Report.|, + lastUpdated => 0, + }, + + 'Grabebook Report Template' => { + message => q|Grabebook Report Template|, + lastUpdated => 0, + }, + + 'Grabebook Report Template help' => { + message => q|The template used to display the Gradebook Report|, + lastUpdated => 0, + }, + + 'Survey Edit Template' => { + message => q|Survey Edit Template|, + lastUpdated => 0, + }, + + 'Survey Edit Template help' => { + message => q|The template used to display the Survey Edit screen.|, + lastUpdated => 0, + }, + + 'Take Survey Template' => { + message => q|Take Survey Template|, + lastUpdated => 0, + }, + + 'Take Survey Template help' => { + message => q|The template used to control the initial Take Survey screen, from which responses are dynamically loaded into.|, + lastUpdated => 0, + }, + + 'Questions Template' => { + message => q|Questions Template|, + lastUpdated => 0, + }, + + 'Questions Template help' => { + message => q|The template used to display individual questions, which are dynamically loaded into the Take Survey page.|, + lastUpdated => 0, + }, + + 'Section Edit Template' => { + message => q|Section Edit Template|, + lastUpdated => 0, + }, + + 'Section Edit Template help' => { + message => q|The template used to display the Section Edit dialog on the Edit Survey page.|, + lastUpdated => 0, + }, + + 'Question Edit Template' => { + message => q|Question Edit Template|, + lastUpdated => 0, + }, + + 'Question Edit Template help' => { + message => q|The template used to display the Question Edit dialog on the Edit Survey page.|, + lastUpdated => 0, + }, + + 'Answer Edit Template' => { + message => q|Answer Edit Template|, + lastUpdated => 0, + }, + + 'Answer Edit Template help' => { + message => q|The template used to display the Answer Edit dialog on the Edit Survey page.|, + lastUpdated => 0, + }, 'percentage label' => { message => q|Percentage|, @@ -800,12 +880,6 @@ directly inside the answer_loop for other types of questions.|, lastUpdated => 0, }, - 'templateId' => { - message => q|The ID of the template to show the Survey.|, - context => q|Description of a template variable for a template Help page.|, - lastUpdated => 1168639537, - }, - 'groupToTakeSurvey' => { message => q|The ID of the group that is allowed to take the Survey.|, context => q|Description of a template variable for a template Help page.|, @@ -824,24 +898,6 @@ directly inside the answer_loop for other types of questions.|, lastUpdated => 1168643566, }, - 'overviewTemplateId' => { - message => q|The ID of the template used to show the overview screen.|, - context => q|Description of a template variable for a template Help page.|, - lastUpdated => 1168643669, - }, - - 'gradebookTemplateId' => { - message => q|The ID of the template used to show the gradebook screen.|, - context => q|Description of a template variable for a template Help page.|, - lastUpdated => 1168643669, - }, - - 'responseTemplateId' => { - message => q|The ID of the template used to show the Survey Response screen.|, - context => q|Description of a template variable for a template Help page.|, - lastUpdated => 1168643669, - }, - 'survey questions template title' => { message => q|Survey Questions Template|, context => q|The title of a template Help page.|,