FAQ Database Discussion Community


perl libxml writing xliff in strings.xml

xml,perl,libxml2,xliff
I'm having difficulty writing to a strings.xml file that contains an XLIFF element using LibXML. Note that I'm trying to write a value that already exists (had no problem parsing the node while reading). I also need to use appendWellBalancedChunk as I write HTML elements sometimes. #!/usr/bin/env perl # #...

Xcode 6.1.1 import localisations error “XLIFF id attribute missing”

ios,xcode,localization,xliff
I recently exported XLIFF files using Xcode's Export for localisation tool. The files were translated and I then tried to import them but I keep getting the error "XLIFF id attribute missing". I thought maybe one of the translators messed up the file so as a test I re-exported the...

Validating xliff core sample with Okapi framework

xliff
I'm working with https://bitbucket.org/okapiframework and using 'core/valid/sample1.xlf' from this https://tools.oasis-open.org/version-control/browse/wsvn/xliff/trunk/xliff-20/test-suite/ I'm hitting an error net.sf.okapi.lib.xliff2.reader.XLIFFReaderException: Error systemId: file:/tmp/sample1.xlf; lineNumber: 7; columnNumber: 43; cvc-complex-type.3.2.2: Attribute 'gls:ref' is not allowed to appear in element 'gls:glossEntry' Any thoughts on if this is an issue with the example file or with the framework? Thanks...

Missing Strings from xib in XLIFF (Xcode Base Localization)

ios,localization,xcode6,missing-data,xliff
I am using base localization in Xcode 6 to handle localizing my app. When I go to Editor > Export for Localization, Xcode is supposed to put all strings from all nibs into an XLIFF file that I then send to translators. In a particular nib, I have about...

Localize Info.plist with XLIFF in Xcode 6

localization,xcode6,xliff,info-plist
Problem I cannot figure out how to localize the NSLocationWhenInUseUsageDescription key. During export of the base language XLIFF file, Xcode automatically includes CFBundleDisplayName, CFBundleName, CFBundleShortVersionString, and NSHumanReadableCopyright. How can I include additional Info.plist keys? When I try to edit the strings files directly, the added keys are not included in...