Localized strings with formatting are not doubled properly when using NSDoubleLocalizedStrings launch option
| Originator: | marcin.matczuk | ||
| Number: | rdar://35048589 | Date Originated: | 18/10/2017 |
| Status: | Open | Resolved: | No |
| Product: | iOS SDK (Foundation) | Product Version: | 11.0 |
| Classification: | UI/Usability | Reproducible: | Always |
Localized strings with formatting are not doubled properly when using NSDoubleLocalizedStrings launch option iOS+SDK (Foundation) Bug Summary: `NSDoubleLocalizedStrings` launch option fails to recognize localized strings with formatting leaving them not doubled properly. Steps to Reproduce: Note: see attached project and its code. 1. Use `NSDoubleLocalizedStrings` as app's launch option in the simulator. 2. Use localized string with formatting - in this example long date formatting is used for `NSDate` instance and resulting date-string is used with `NSLocalizedString` via string formatting. Expected Results: Note: see attached project and its code. 1. String on screen is doubled properly - i.e. "Date: October 18, 2017 Date: October 18, 2017". Actual Results: 1. String on screen is "Date @ Date: October 18, 2017". Version/Build: iOS SDK: - 11.0 for Xcode 9.0 (9A235) - 11.1 for Xcode 9.1 beta (9B37) Configuration: Xcode Version 9.0 (9A235) Xcode Version 9.1 beta (9B37) macOS 10.12.6 (16G29) iPhone 6 with iOS 10.3.3
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!