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.
|
|
@ -1690,6 +1690,21 @@ section/answer.|,
|
||||||
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