XLIFF import - XLIFF target-language attribute missing

If I can get to WWDC this year, I'd really like the XCode XLIFF engineers to be there. This has been a disaster.


So…with the latest Xcode I am now getting this when importing the XLIFF.

xcodebuild: error: XLIFF target-language attribute missing


I am importing the same XLIFFs I have always been importing. They have a target language:

<?xml version="1.0" ?><xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 http://docs.oasis-open.org/xliff/v1.2/os/xliff-core-1.2-strict.xsd">

<file datatype="plaintext" original="AFAmazonS3Manager.strings" source-language="en" target-language="de">


Every single Xcode update I seem to have to deal with a *new* issue in XLIFF.

Oh boy - I just found an even bigger issue. After finally getting an import to work by massaging the XLIFFs given to me, I'm finding that Xcode has REMOVED any localization with a \n in the text. How dare it!? Seriously? I saw it in my "warnings", and I told it to import. Instead it simply REMOVES them from my existing localization files and doesn't import them!


They exist in my XLIFF files - but not in the end result.


This must be a result of my bug report to them where I showed them that a multi-line label wasn't getting exported or imported correctly (super simple project - create a new project from a template, type in multi-line label text in IB, then export XLIFF and then immediatlely import it - you used to get an error). So I guess I'll go through all my XLIFF stuff and see if putting in real carriage returns fixes it…but its just so unprofessional.

I generated an xliff file which I intended to send to a translator for localization. The translator wouldn't work with an xliff editor so I had to send the raw files with all the markup language. However, I noticed about 1/3rd of the translations were missing a target attribute so the translator would have to add it themselves with all the posslbe risks of messing up the syntax.


I am considering send the Localizable.strings files instead but that is creating it's own complications.


Apple devs, please improve thed localization process.

XLIFF import - XLIFF target-language attribute missing
 
 
Q