Added setlocate function to GettextAdapter + fixed bug in locale extraction script