localizing submit message text in javascript using resource loader

follow-up patch to https://gerrit.wikimedia.org/r/#/c/67037/

bug 49162

Change-Id: I586646d6101e0f71dab2e60ed9ee08966fbd428a