XLIFF export developer comments: author attribute is missing from <note> element
| Originator: | markus | ||
| Number: | rdar://17393613 | Date Originated: | 20-Jun-2014 01:57 PM |
| Status: | Duplicate of 16993931 (Open) | Resolved: | |
| Product: | :Developer Tools | Product Version: | Xcode 6 |
| Classification: | Reproducible: | Always |
Summary:
Some translation tools like pootle http://pootle.translatehouse.org/ need to know where a note comes frome, as there are multiple sources for notes, for example the translators.
When using the NSLocalizedString(@"String, @"Comment") marco, the comment will be wrapped in <note>Comment</note> tags. According to the XLIFF 1.2 Specification (here http://docs.oasis-open.org/xliff/xliff-core/xliff-core.html ), this means the author is unspecified.
The author should be "developer":
<note from="developer">"Comment</note>
Steps to Reproduce:
1. Use localized string makro, for example NSLocalizedString(@"some string", @"some comment")
2. Export Localization to XLIFF
3. Open the XLIFF in any texteditor
Expected Results:
The comment should be wrapped in a note element with the string "developer" as attribute:
<trans-unit id="some string">
<source>some string</source>
<target></target>
<note from="developer">some comment</note>
</trans-unit>
Actual Results:
<trans-unit id="some string">
<source>some string</source>
<target></target>
<note>some comment</note>
</trans-unit>
the 'from="developer"' attribute is missing in the note element
Version:
Version 5.1.1 (5B1008)
Notes:
Configuration:
Attachments:
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
This seems to be fixed in Xcode 8