i18n the Survey Edit console. Button labels the dialog title bar. Fixes bug #11197
This commit is contained in:
parent
869ee404e7
commit
263cc56175
4 changed files with 65 additions and 35 deletions
|
|
@ -3,6 +3,7 @@
|
||||||
- fixed #11198: Typo in i18n
|
- fixed #11198: Typo in i18n
|
||||||
- fixed #11202: USPS driver does not log authentication errors
|
- fixed #11202: USPS driver does not log authentication errors
|
||||||
- fixed #10985: Survey: can't add multiple choice answer
|
- fixed #10985: Survey: can't add multiple choice answer
|
||||||
|
- fixed #11197: Survey Edit Console is not i18n'ed
|
||||||
|
|
||||||
7.8.3
|
7.8.3
|
||||||
- Rewrote Spectre's workflow queues to prevent it from "forgetting" about some workflows.
|
- Rewrote Spectre's workflow queues to prevent it from "forgetting" about some workflows.
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -923,37 +923,37 @@ directly inside the answer_loop for other types of questions.|,
|
||||||
context => q|Description of a template variable for a template Help page.|,
|
context => q|Description of a template variable for a template Help page.|,
|
||||||
lastUpdated => 1149654771,
|
lastUpdated => 1149654771,
|
||||||
},
|
},
|
||||||
|
|
||||||
response_feedback_url => {
|
response_feedback_url => {
|
||||||
message => q|The URL of the individual response feedback page.|,
|
message => q|The URL of the individual response feedback page.|,
|
||||||
context => q|Description of a template variable for a template Help page.|,
|
context => q|Description of a template variable for a template Help page.|,
|
||||||
lastUpdated => 0,
|
lastUpdated => 0,
|
||||||
},
|
},
|
||||||
|
|
||||||
response_id => {
|
response_id => {
|
||||||
message => q|The unique ID of the response.|,
|
message => q|The unique ID of the response.|,
|
||||||
context => q|Description of a template variable for a template Help page.|,
|
context => q|Description of a template variable for a template Help page.|,
|
||||||
lastUpdated => 0,
|
lastUpdated => 0,
|
||||||
},
|
},
|
||||||
|
|
||||||
response_userId => {
|
response_userId => {
|
||||||
message => q|The userId of the user that completed the response.|,
|
message => q|The userId of the user that completed the response.|,
|
||||||
context => q|Description of a template variable for a template Help page.|,
|
context => q|Description of a template variable for a template Help page.|,
|
||||||
lastUpdated => 0,
|
lastUpdated => 0,
|
||||||
},
|
},
|
||||||
|
|
||||||
response_ip => {
|
response_ip => {
|
||||||
message => q|The IP Address of the user that completed the response.|,
|
message => q|The IP Address of the user that completed the response.|,
|
||||||
context => q|Description of a template variable for a template Help page.|,
|
context => q|Description of a template variable for a template Help page.|,
|
||||||
lastUpdated => 0,
|
lastUpdated => 0,
|
||||||
},
|
},
|
||||||
|
|
||||||
response_startDate => {
|
response_startDate => {
|
||||||
message => q|The Start Date of the response.|,
|
message => q|The Start Date of the response.|,
|
||||||
context => q|Description of a template variable for a template Help page.|,
|
context => q|Description of a template variable for a template Help page.|,
|
||||||
lastUpdated => 0,
|
lastUpdated => 0,
|
||||||
},
|
},
|
||||||
|
|
||||||
response_endDate => {
|
response_endDate => {
|
||||||
message => q|The End Date of the response.|,
|
message => q|The End Date of the response.|,
|
||||||
context => q|Description of a template variable for a template Help page.|,
|
context => q|Description of a template variable for a template Help page.|,
|
||||||
|
|
@ -981,7 +981,7 @@ directly inside the answer_loop for other types of questions.|,
|
||||||
message => q|A boolean flag indicating whether the Survey Response completed|,
|
message => q|A boolean flag indicating whether the Survey Response completed|,
|
||||||
lastUpdated => 1242180657,
|
lastUpdated => 1242180657,
|
||||||
},
|
},
|
||||||
|
|
||||||
'responseId help' => {
|
'responseId help' => {
|
||||||
message => q|The unique GUID for the response|,
|
message => q|The unique GUID for the response|,
|
||||||
lastUpdated => 1242180657,
|
lastUpdated => 1242180657,
|
||||||
|
|
@ -1031,7 +1031,7 @@ directly inside the answer_loop for other types of questions.|,
|
||||||
message => q|All data tagged in survey expressions is also made available as template variables|,
|
message => q|All data tagged in survey expressions is also made available as template variables|,
|
||||||
lastUpdated => 1242180657,
|
lastUpdated => 1242180657,
|
||||||
},
|
},
|
||||||
|
|
||||||
'survey test results template title' => {
|
'survey test results template title' => {
|
||||||
message => q|Survey Test Results Template Variables|,
|
message => q|Survey Test Results Template Variables|,
|
||||||
lastUpdated => 1242256111,
|
lastUpdated => 1242256111,
|
||||||
|
|
@ -1579,117 +1579,132 @@ section/answer.|,
|
||||||
context => q|Finish button label on Take Survey page|,
|
context => q|Finish button label on Take Survey page|,
|
||||||
lastUpdated => 0,
|
lastUpdated => 0,
|
||||||
},
|
},
|
||||||
|
|
||||||
'add a test' => {
|
'add a test' => {
|
||||||
message => q{Add a test},
|
message => q{Add a test},
|
||||||
lastUpdated => 0,
|
lastUpdated => 0,
|
||||||
},
|
},
|
||||||
|
|
||||||
'confirm delete test' => {
|
'confirm delete test' => {
|
||||||
message => q{Are you sure you want to delete this test?},
|
message => q{Are you sure you want to delete this test?},
|
||||||
lastUpdated => 0,
|
lastUpdated => 0,
|
||||||
},
|
},
|
||||||
|
|
||||||
'test suite' => {
|
'test suite' => {
|
||||||
message => q{Test Suite},
|
message => q{Test Suite},
|
||||||
lastUpdated => 0,
|
lastUpdated => 0,
|
||||||
},
|
},
|
||||||
|
|
||||||
'edit test' => {
|
'edit test' => {
|
||||||
message => q{Edit Test},
|
message => q{Edit Test},
|
||||||
lastUpdated => 0,
|
lastUpdated => 0,
|
||||||
},
|
},
|
||||||
|
|
||||||
'run test' => {
|
'run test' => {
|
||||||
message => q{Run Test},
|
message => q{Run Test},
|
||||||
lastUpdated => 0,
|
lastUpdated => 0,
|
||||||
},
|
},
|
||||||
|
|
||||||
'test name' => {
|
'test name' => {
|
||||||
message => q{Test Name},
|
message => q{Test Name},
|
||||||
lastUpdated => 0,
|
lastUpdated => 0,
|
||||||
},
|
},
|
||||||
|
|
||||||
'tests run' => {
|
'tests run' => {
|
||||||
message => q{Tests Run},
|
message => q{Tests Run},
|
||||||
lastUpdated => 0,
|
lastUpdated => 0,
|
||||||
},
|
},
|
||||||
|
|
||||||
'test name help' => {
|
'test name help' => {
|
||||||
message => q{A descriptive name for this test},
|
message => q{A descriptive name for this test},
|
||||||
lastUpdated => 0,
|
lastUpdated => 0,
|
||||||
},
|
},
|
||||||
|
|
||||||
'test spec' => {
|
'test spec' => {
|
||||||
message => q{Test Spec},
|
message => q{Test Spec},
|
||||||
lastUpdated => 0,
|
lastUpdated => 0,
|
||||||
},
|
},
|
||||||
|
|
||||||
'test spec help' => {
|
'test spec help' => {
|
||||||
message => q{The JSON-encoded specification for your test(s)},
|
message => q{The JSON-encoded specification for your test(s)},
|
||||||
lastUpdated => 0,
|
lastUpdated => 0,
|
||||||
},
|
},
|
||||||
|
|
||||||
'run all tests' => {
|
'run all tests' => {
|
||||||
message => q{Run All Tests},
|
message => q{Run All Tests},
|
||||||
lastUpdated => 0,
|
lastUpdated => 0,
|
||||||
},
|
},
|
||||||
|
|
||||||
'pass' => {
|
'pass' => {
|
||||||
message => q{Pass},
|
message => q{Pass},
|
||||||
lastUpdated => 0,
|
lastUpdated => 0,
|
||||||
},
|
},
|
||||||
|
|
||||||
'fail' => {
|
'fail' => {
|
||||||
message => q{Fail},
|
message => q{Fail},
|
||||||
lastUpdated => 0,
|
lastUpdated => 0,
|
||||||
},
|
},
|
||||||
|
|
||||||
'test results template' => {
|
'test results template' => {
|
||||||
message => q{Test Results Template},
|
message => q{Test Results Template},
|
||||||
lastUpdated => 0,
|
lastUpdated => 0,
|
||||||
},
|
},
|
||||||
|
|
||||||
'test results template help' => {
|
'test results template help' => {
|
||||||
message => q{Template used to display individual test and aggregate test results},
|
message => q{Template used to display individual test and aggregate test results},
|
||||||
lastUpdated => 0,
|
lastUpdated => 0,
|
||||||
},
|
},
|
||||||
|
|
||||||
'test results' => {
|
'test results' => {
|
||||||
message => q{Test Results},
|
message => q{Test Results},
|
||||||
lastUpdated => 0,
|
lastUpdated => 0,
|
||||||
},
|
},
|
||||||
|
|
||||||
'test result' => {
|
'test result' => {
|
||||||
message => q{Test Result},
|
message => q{Test Result},
|
||||||
lastUpdated => 0,
|
lastUpdated => 0,
|
||||||
},
|
},
|
||||||
|
|
||||||
'details' => {
|
'details' => {
|
||||||
message => q{Details},
|
message => q{Details},
|
||||||
lastUpdated => 0,
|
lastUpdated => 0,
|
||||||
},
|
},
|
||||||
|
|
||||||
'tests passed' => {
|
'tests passed' => {
|
||||||
message => q{Tests Passed},
|
message => q{Tests Passed},
|
||||||
lastUpdated => 0,
|
lastUpdated => 0,
|
||||||
},
|
},
|
||||||
|
|
||||||
'tests failed' => {
|
'tests failed' => {
|
||||||
message => q{Tests Failed},
|
message => q{Tests Failed},
|
||||||
lastUpdated => 0,
|
lastUpdated => 0,
|
||||||
},
|
},
|
||||||
|
|
||||||
'start date' => {
|
'start date' => {
|
||||||
message => q{Start Date},
|
message => q{Start Date},
|
||||||
lastUpdated => 0,
|
lastUpdated => 0,
|
||||||
},
|
},
|
||||||
|
|
||||||
'end date' => {
|
'end date' => {
|
||||||
message => q{End Date},
|
message => q{End Date},
|
||||||
lastUpdated => 0,
|
lastUpdated => 0,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
'Add Question' => {
|
||||||
|
message => q{Add Question},
|
||||||
|
lastUpdated => 0,
|
||||||
|
},
|
||||||
|
|
||||||
|
'Add Answer' => {
|
||||||
|
message => q{Add Answer},
|
||||||
|
lastUpdated => 0,
|
||||||
|
},
|
||||||
|
|
||||||
|
'Survey Objects' => {
|
||||||
|
message => q{Survey Objects},
|
||||||
|
lastUpdated => 0,
|
||||||
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,7 @@ Survey.Data = (function(){
|
||||||
draggable: true
|
draggable: true
|
||||||
});
|
});
|
||||||
|
|
||||||
Survey.Data.ddContainer.setHeader("Survey Objects...");
|
Survey.Data.ddContainer.setHeader(Survey.i18n.get('Asset_Survey','Survey Objects');
|
||||||
Survey.Data.ddContainer.setBody(d.ddhtml);
|
Survey.Data.ddContainer.setBody(d.ddhtml);
|
||||||
Survey.Data.ddContainer.setFooter(document.getElementById("buttons"));
|
Survey.Data.ddContainer.setFooter(document.getElementById("buttons"));
|
||||||
Survey.Data.ddContainer.render();
|
Survey.Data.ddContainer.render();
|
||||||
|
|
@ -146,7 +146,7 @@ Survey.Data = (function(){
|
||||||
|
|
||||||
if (!sButton) {
|
if (!sButton) {
|
||||||
sButton = new YAHOO.widget.Button({
|
sButton = new YAHOO.widget.Button({
|
||||||
label: "Add Section",
|
label: Survey.i18n.get('Asset_Survey','Add Section'),
|
||||||
id: "addSection",
|
id: "addSection",
|
||||||
container: "addSection"
|
container: "addSection"
|
||||||
});
|
});
|
||||||
|
|
@ -155,7 +155,7 @@ Survey.Data = (function(){
|
||||||
|
|
||||||
if (!qButton) {
|
if (!qButton) {
|
||||||
qButton = new YAHOO.widget.Button({
|
qButton = new YAHOO.widget.Button({
|
||||||
label: "Add Question",
|
label: Survey.i18n.get('Asset_Survey', 'Add Question'),
|
||||||
id: "addQuestion",
|
id: "addQuestion",
|
||||||
container: "addQuestion"
|
container: "addQuestion"
|
||||||
});
|
});
|
||||||
|
|
@ -212,6 +212,20 @@ Survey.Data = (function(){
|
||||||
// Initialize survey
|
// Initialize survey
|
||||||
YAHOO.util.Event.onDOMReady(function(){
|
YAHOO.util.Event.onDOMReady(function(){
|
||||||
//var ddTarget = new YAHOO.util.DDTarget("sections", "sections");
|
//var ddTarget = new YAHOO.util.DDTarget("sections", "sections");
|
||||||
Survey.Comm.loadSurvey();
|
Survey.i18n = new WebGUI.i18n( {
|
||||||
Survey.ObjectTemplate.initObjectEditor();
|
'namespaces' : {
|
||||||
|
'Asset_Survey' : [
|
||||||
|
'Add Question',
|
||||||
|
'Add Answer',
|
||||||
|
'Add Section',
|
||||||
|
'Survey Objects'
|
||||||
|
]
|
||||||
|
},
|
||||||
|
onpreload : {
|
||||||
|
fn : function () {
|
||||||
|
Survey.Comm.loadSurvey();
|
||||||
|
Survey.ObjectTemplate.initObjectEditor();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} );
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue