refactoring internationalization