},\r
\r
// Entry point to start the kiwi application\r
- start: function (opts, callback) {\r
+ init: function (opts, callback) {\r
- var continueStart, locale;\r
+ var continueStart, locale, igniteTextTheme, text_theme;\r
opts = opts || {};\r
\r
- continueStart = function (locale, s, xhr) {\r
+ continueInit = function (locale, s, xhr) {\r
if (locale) {\r
_kiwi.global.i18n = new Jed(locale);\r
} else {\r
\r
locale = _kiwi.global.settings.get('locale');\r
if (!locale) {\r
- $.getJSON(opts.base_path + '/assets/locales/magic.json', continueStart);\r
+ $.getJSON(opts.base_path + '/assets/locales/magic.json', continueInit);\r
} else {\r
- $.getJSON(opts.base_path + '/assets/locales/' + locale + '.json', continueStart);\r
+ $.getJSON(opts.base_path + '/assets/locales/' + locale + '.json', continueInit);\r
}\r
+\r
+ text_theme = opts.text_theme;\r
+ if (!text_theme) {\r
+ $.getJSON(opts.base_path + '/assets/text_themes/default.json', igniteTextTheme);\r
+ } else {\r
+ $.getJSON(opts.base_path + '/assets/text_themes/' + text_theme + '.json', igniteTextTheme);\r
+ }\r
+ },\r
+ \r
+ start: function() {\r
+ _kiwi.app.showStartup();\r
+ },\r
\r
- _kiwi.app.startup_applet_name = startup_applet_name;\r
+ // Allow plugins to change the startup applet\r
+ registerStartupApplet: function(startup_applet_name) {\r
++ _kiwi.app.startup_applet_name = startup_applet_name;
}\r
};\r
\r