XLIFF files? identifying the sections that need to be translated
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
aehrenwo
11 - Bolide
‎05-03-2024
05:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Has anyone every parsed an XLIFF file? Here is a sample of the code --- based on XML formatting. I know there are vendors that can process these, but I am looking for a way to pull out what needs to be translated and put it back in using Alteryx. The file I have it way more complex as it as an export from a learning module tool.
<?xml version="1.0" encoding="UTF-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
<file datatype="plaintext" original="self" source-language="en" target-language="de">
<header>
<sxmd:metadata xmlns:sxmd="urn:x-sap:mlt:xliff12:metadata:1.0" xmlns="urn:x-sap:mlt:tsmetadata:1.0">
<object-name>tutorial1</object-name>
<collection>SHOPS</collection>
<domain>CA</domain>
<developer>A180987</developer>
<description>XLIFF file for shop app</description>
</sxmd:metadata>
</header>
<body>
<trans-unit id="hello_world" xmlns:sap="urn:x-sap:sls-mlt">
<source>Hello world!</source>
<target>Hallo Welt!</target>
</trans-unit>
<trans-unit id="file_menu" xmlns:sap="urn:x-sap:sls-mlt" restype="caption">
<source>File</source>
<target>Datei</target>
</trans-unit>
<trans-unit id="file_menu_new" xmlns:sap="urn:x-sap:sls-mlt" restype="menuitem">
<source>New</source>
<target>Neu</target>
</trans-unit>
<trans-unit id="file_menu_exit" xmlns:sap="urn:x-sap:sls-mlt" sap:sc="XMIT">
<source>Exit</source>
<target>Beenden</target>
</trans-unit>
</body>
</file>
</xliff>
Labels:
- Labels:
- Parse
1 REPLY 1
apathetichell
19 - Altair
‎05-03-2024
06:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
If your Alteryx is solid you can try to reverse engineer something like this:
https://github.com/locize/xliff
I don't know of anything out of the box. I usually go the reverse direction (Alteryx to XML/SOAP)
xliff2js and js2xliff converter xliff utils. Contribute to locize/xliff development by creating an account on GitHub.
