genstrings with Swift file does not work with more than 2 parameters
Originator: | markus | ||
Number: | rdar://22817000 | Date Originated: | 23-Sep-2015 11:35 AM |
Status: | Duplicate of 19709395 (Open) | Resolved: | |
Product: | Developer Tools | Product Version: | Xcode 7 |
Classification: | Reproducible: | Always |
Summary: When running genstrings against a Swift file, if there are any NSLocalizedString calls that use more than the trivial case of "value" and "comment" parameters, genstrings errors out. Steps to Reproduce: 1. Create a new Xcode Project 2. Create some localized String with more than 2 parameters in a .swift File, e.g. let string NSLocalizedString("key", table:"table", value: "value", comment: "comment") 3. Run genstrings Expected Results: Genstring should generate the file `table.strings` with an entry /* comment */ "key" = "value" Actual Results: Genstrings creates an error: Bad entry in file ./Enduser/Controllers/ScratchFieldViewController.swift (line = 18): Argument is not a literal string. Version: Xcode: Version 7.0 (7A220) OSX: 10.10.5 (14F27) 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!