You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The simplest version of this might just check for matched braces for positional substitutions ({0}) in all the internationalization files, so for any { make sure it is followed by integer followed by close brace, and for any } verify it is proceeded by open brace plus integer.
An even better check would be that the number of used positional substitutions matches the number provided when they are used, but that is probably too complicated to be worth it.
The text was updated successfully, but these errors were encountered:
eharris
changed the title
Create check for valid variable substitution in internationalization strings
Check valid positional substitution in internationalization strings
Oct 9, 2019
The simplest version of this might just check for matched braces for positional substitutions (
{0}
) in all the internationalization files, so for any{
make sure it is followed by integer followed by close brace, and for any}
verify it is proceeded by open brace plus integer.An even better check would be that the number of used positional substitutions matches the number provided when they are used, but that is probably too complicated to be worth it.
This was recently discovered as a long standing problem in airsonic/airsonic#1298
The text was updated successfully, but these errors were encountered: