mozilla/kuma — pull request #161 by craigcook (2012-04-16 09:30:36+00:00)
Title: Bug 729657 - translate page

This isn't quite perfect, but it gets the page generally functional and not-completely-hideous.

One tricky thing we need to do that I couldn't figure out on my own: the JavaScript for the translate page is fairly different from that for regular edit pages, so I put it into its own .js file (/media/js/wiki_ckeditor_translate.js) but we'll need some kind of logic in the template to load different scripts on different pages. If you just merge this straight in the page looks wonky because it's not loading the proper JS, but switch to the translate script and it works better (and normal edit pages break instead).

Related note: it looks like EVERY script gets loaded on EVERY page, including scripts that aren't used on that page at all (like some effects for the home page that aren't even used on the home page any more). We should work on cleaning that up some time and make an easy mechanism to load only the needed scripts for a given page. Unless we're doing that already and I just have something set wrong on my end.