function __(msg) {
	
	// load translations
	static var Translations;
	if (!Translations) {
		Translations = getTranslations();
	}
	
	// get the translations
	if (msg in Translations) {
		return Translations[msg];
	}
	
	return msg;
}

function getTranslations() {
	Translations = getAllTranslations();
	return Translations[language];
}
@@ -13,19 +13,16 @@
 msg) %7B%0D%0A
-%09%0D%0A
 %09// load
@@ -41,59 +41,61 @@
 s%0D%0A%09
-static var Translations;%0D%0A%09if (!Translations
+if ( typeof __.Translations == 'undefined' 
 ) %7B%0D%0A%09%09
+__.
 Tran
@@ -170,16 +170,19 @@
 (msg in 
+__.
 Translat
@@ -191,32 +191,35 @@
 ns) %7B%0D%0A%09%09return 
+__.
 Translations%5Bmsg

Fix js sintax