fix config typo
refactor GetText class and move locale to i18n
refactor code blocks; includes should be required as it wont work without them