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
|
|
@ -99,7 +99,7 @@ Survey.Data = (function(){
|
|||
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.setFooter(document.getElementById("buttons"));
|
||||
Survey.Data.ddContainer.render();
|
||||
|
|
@ -146,7 +146,7 @@ Survey.Data = (function(){
|
|||
|
||||
if (!sButton) {
|
||||
sButton = new YAHOO.widget.Button({
|
||||
label: "Add Section",
|
||||
label: Survey.i18n.get('Asset_Survey','Add Section'),
|
||||
id: "addSection",
|
||||
container: "addSection"
|
||||
});
|
||||
|
|
@ -155,7 +155,7 @@ Survey.Data = (function(){
|
|||
|
||||
if (!qButton) {
|
||||
qButton = new YAHOO.widget.Button({
|
||||
label: "Add Question",
|
||||
label: Survey.i18n.get('Asset_Survey', 'Add Question'),
|
||||
id: "addQuestion",
|
||||
container: "addQuestion"
|
||||
});
|
||||
|
|
@ -212,6 +212,20 @@ Survey.Data = (function(){
|
|||
// Initialize survey
|
||||
YAHOO.util.Event.onDOMReady(function(){
|
||||
//var ddTarget = new YAHOO.util.DDTarget("sections", "sections");
|
||||
Survey.Comm.loadSurvey();
|
||||
Survey.ObjectTemplate.initObjectEditor();
|
||||
Survey.i18n = new WebGUI.i18n( {
|
||||
'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