xml refactoring, improved translator fragment