undo the translation functions in xtpl and implement them proper in a sepperate language library