Open kudalies opened 5 years ago
After more research on this NSStringVariableWidthRuleType
in conjunction with the pluralization string format;
They do not operate together on the same key, NSStringLocalizedFormatKey
always takes precedence and will be processed instead of NSStringVariableWidthRuleType
if both are present.
Therefore a stringsdict
entry can be either a pluralization format string or a variable width string.
Thinking the best solution for this is to provide a model that combines these two types together.
In the meantime, we can maybe just ignore NSStringVariableWidthRuleType
entries until we can support both.
Only apple dev doc on stringsdict
https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPInternational/StringsdictFileFormat/StringsdictFileFormat.html
It's old and outdated, and there is a related rdar for updating this doc: http://openradar.appspot.com/38627216
Support
.stringdict
files with string rule type:NSStringVariableWidthRuleType
See the example below which doesn't load during lint operation.