Xcode should check consistency of localized format strings
| Originator: | twiomood | ||
| Number: | rdar://11806981 | Date Originated: | 04-Jul-2012 01:56 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode 4 |
| Classification: | Enhancement | Reproducible: | N/A |
Xcode should check consistency of localized format strings Steps to Reproduce: Add some localizable strings to your project Get localized variants back Expected Results: If there are typos in localized strings that break the format strings so that they would be interpreted with a different number of format specifiers, Xcode should produce an error If two different localization use different types for the same position (%1$s in one locale and %1$@ in another) Xcode should produce an error If there are multiple format specifiers, the localized variants should all have positional specifiers (since some locales may reverse the order) Actual Results: Xcode blithely accepts localized strings pairs that may produce gibberish or may cause application crashes Regression: N/A Notes: Our basic implementation of this is at https://github.com/omnigroup/ValidateLocalizedFormatStrings, but a built-in Xcode version could be more complete and better integrated
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!