Background of the issue:
I am trying to edit the target language in an XLIFF file for a translation from Dutch to English. I want to change the target language from 'NL-EN (US)' to 'NL-EN (GB)'.
Symptoms:
I am unsure how to change the target language in the XLIFF file.
Questions:
How can I change the target language in an XLIFF file from 'NL-EN (US)' to 'NL-EN (GB)'?
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+01:00)
Hi,
Yes, you can change the target language in an XLIFF file by modifying the `<target-language>` attribute and updating the `<target>` elements inside `<trans-unit>` sections. However, this may not work properly in WPML because WPML creates translation jobs based on language pairs. If a job for a specific language is missing, you might encounter an error message stating that the translation jobs do not exist.
You can do something like this:
- Use a text editor (e.g., Notepad++, VS Code, Sublime Text) or an XML editor.
- Locate the `<file>` element at the beginning of the file. It contains the `target-language` attribute.