Skip to content
Snippets Groups Projects

Issue # 3175963: Many changes to allow multilingual support and not to lose...

Files
129
+ 41
16
@@ -8,26 +8,51 @@ let renderCounter = 0;
const langCode = drupalSettings.path.currentLanguage;
fluid.uiOptions(".flc-prefsEditor-separatedPanel", {
auxiliarySchema: {
terms: {
"templatePrefix": modulePath + "/infusion/src/framework/preferences/html",
"messagePrefix": modulePath + "/infusion/src/framework/preferences/messages"
const translationsDir = drupalSettings.translationsDirectory;
if (translationsDir !== "") {
fluid.uiOptions(".flc-prefsEditor-separatedPanel", {
auxiliarySchema: {
terms: {
"templatePrefix": modulePath + "/infusion/src/framework/preferences/html",
"messagePrefix": translationsDir + langCode,
},
"fluid.prefs.tableOfContents": {
enactor: {
"tocTemplate": modulePath + "/infusion/src/components/tableOfContents/html/TableOfContents.html",
"tocMessage": modulePath + "/infusion/src/framework/preferences/messages/tableOfContents-enactor.json",
ignoreForToC: {
"overviewPanel": ".flc-overviewPanel"
}
}
}
},
"fluid.prefs.tableOfContents": {
enactor: {
"tocTemplate": modulePath + "/infusion/src/components/tableOfContents/html/TableOfContents.html",
"tocMessage": modulePath + "/infusion/src/framework/preferences/messages/tableOfContents-enactor.json",
ignoreForToC: {
"overviewPanel": ".flc-overviewPanel"
prefsEditorLoader: {
lazyLoad: true
}
});
} else {
fluid.uiOptions(".flc-prefsEditor-separatedPanel", {
auxiliarySchema: {
terms: {
"templatePrefix": modulePath + "/infusion/src/framework/preferences/html",
"messagePrefix": modulePath + "/infusion/src/framework/preferences/messages/" + langCode,
},
"fluid.prefs.tableOfContents": {
enactor: {
"tocTemplate": modulePath + "/infusion/src/components/tableOfContents/html/TableOfContents.html",
"tocMessage": modulePath + "/infusion/src/framework/preferences/messages/tableOfContents-enactor.json",
ignoreForToC: {
"overviewPanel": ".flc-overviewPanel"
}
}
}
},
prefsEditorLoader: {
lazyLoad: true
}
},
prefsEditorLoader: {
lazyLoad: true
}
});
});
}
renderCounter++;
}
Loading