1. A method in a data processing system having a program and a source code including a text element in a first language, the method comprising the steps performed by the program of: extracting the text element in the first language from the source code, the extracted text element including context information that identifies a location of the text element in the first language in the source code; obtaining a translation of the extracted text element in a second language; merging the translation of the text element in the second language into the source code at a merge location based on the context information; and generating a version of the source code in the first language and a version of the source code in the second language.