View Single Post
Old 09-19-2011, 02:39 PM   #543
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
Hello Ben,

as a matter of fact Core.lang.getLocalizer is available in the sim.
Calling getLocalizer: function (category, strings) with a set of localized strings should be possible.
If the resource-strings will be included in lang.ods then there might be a problem with passing the params to the "sandboxed" JS-code of calendar.
Kind regards
Mark
Hi Mark,

Hmmm, to be honest, I don't quite understand what to do!

I think the idea would be to put the strings into lang.ods so that it is easier for the translators. So would it be necessary, then, to do all the calls to Core.lang.getLocalizer in the Calendar.js (the calling code), putting the strings into variables which can then be used in the sandboxed code? But if that were the case, then I don't see how it would work in the Sim...

Sincerely,
Ben.
BenChen is offline   Reply With Quote