Jdlrobson has uploaded a new change for review. Change subject: dynamically load languages (bug 42962) ......................................................................
dynamically load languages (bug 42962) Use Handlebars for templating Logic less templates are good To reduce markup templates are determined slightly differently from the normal handlebars way * Anything with class template is recognised as a template * the template name is derived from the element with class template's id ** prefixed with 'template-' * any template data attributes are taken and set as the innerHTML of that node * any other elements encountered are treated as plain text * script nodes with type text/template inside a .template element are recognised as additional parts of the template * anything with class template_ignore is thrown away Note the FIXME * we should show the language name rather than language code on the links 0a0be3e88a5ff533ee2f7bc3b35c9713123f6874 Change-Id: Ia84bf63c2a95807f590abdf1e301f907383c958f --- M .jshintrc M MobileFrontend.php M includes/skins/SkinMobile.php M javascripts/common/mf-application.js M javascripts/common/mf-history-plus.js A javascripts/externals/handlebars.js M javascripts/modules/mf-languages.js 7 files changed, 2,023 insertions(+), 4 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend refs/changes/44/42244/1 -- To view, visit https://gerrit.wikimedia.org/r/42244 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ia84bf63c2a95807f590abdf1e301f907383c958f Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/MobileFrontend Gerrit-Branch: master Gerrit-Owner: Jdlrobson <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
