View Single Post
Old 09-21-2011, 05:42 AM   #552
BenChen
EPUB Metadata ******
BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.
 
Posts: 525
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
Quote:
Originally Posted by Mark Nord View Post
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.
BenChen is offline   Reply With Quote