improved the translation file reader