More i18n fixes

* Use a separate mejsL10n object to pass a translation as an array of
strings.
* Make getLanguage() return just the language instead of the full locale
object.
Merge pull request #940 from SergeyBiryukov/master

More i18n fixes for compatibility with WordPress