Asana / locheck

Validate iOS, Android, and Mac localizations. Find errors in .strings, .stringsdict, and strings.xml files.
MIT License
98 stars 12 forks source link

Fix assignment of implicit positions #14

Closed stevelandeyasana closed 3 years ago

stevelandeyasana commented 3 years ago

Fix #7. Implicit position assignment acts as if explicitly-positioned arguments were not there. I determined this experimentally.

I would be very surprised if Android had different behavior, since this all seems to be based on C printf() behavior.

stevelandeyasana commented 3 years ago

This revealed some incorrect unit tests which I'll correct tomorrow.

There is a new error we don't catch: when the same argument is used more than once with different specifiers.