Update localization.js

* bug fix: parameter list for the translate function 
* improved format function
* removed localize.resourceFileLoaded = true;
	in getLocalizedString. It caused false action; acts as loaded 
    before the translations are fully loaded.
	But results in multiple r3equests to translation file!!! TODO