Removed redundant language loading code, and debug statements. Added direct call to i18n to set language type