dschwen/wikiminiatlas — pull request #3 by Rillke (2013-06-18 14:27:28+00:00)
Title: i18n function; use mw.config.get to get wikiGlobals; exec RTL initit

Get a localized message:
_msg('key')

Using always mw.config.get() to access wikiGlobals listed at
http://www.mediawiki.org/wiki/Manual:Interface/JavaScript#mw.config

Only executing the RTL check once and then return the stored result instead.

Since wgDBname is used twice, make a local variable.

Setting .text() instead of html to prevent possible XSS when carelessly copying translations.

Let me know if you wish jshint validation; I would do it :-) (e.g. lastx is not defined and will pollute the global scope)