Quote:
Originally Posted by Mark Nord
You sure noticed that I mixed up real-device and Sim
For the Sim it should read
define var L = _Core.lang.getLocalizer("Calendar");
in the startup-code (setView.js) and export it via
kbook.autoRunRoot.L = L;
default language is set in ebookSim\user.config
Regards
Mark
|
Hi Mark,
I tried the following in setView.js, but the Calendar app won't start.
Code:
case "Calendar" : {
kbook.autoRunRoot._icon = 22;
kbook.autoRunRoot._title = "Calendar";
kbook.autoRunRoot.getFileContent = _Core.io.getFileContent;
kbook.autoRunRoot.setSoValue = _Core.system.setSoValue;
kbook.autoRunRoot.startsWith = _Core.text.startsWith;
var L = _Core.lang.getLocalizer("Calendar");
kbook.autoRunRoot.L = L;
this.MAIN.EINK.VIEW.setURI("../addons/Calendar/calendar.xml");
break;
}
If I comment out "var L = _Core.lang.getLocalizer("Calendar");" the app starts, but obviously the localised strings don't work. Any thoughts?
Sincerely,
Ben.