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
Percent signs in translatable text should be escaped by using %% instead of %. The fact that the game does not complain loudly about the use of a single % does not mean it's good practice (as something like You have a %s % chance would not work -- the first %s would not be treated as a placeholder by the game. I suspect the game just gives up on formatting correctly when it encounters a single %), and in general we tend to be stricter than the game itself in our checking to encourage good practice and avoid common pitfalls.
I think one potential improvement we could make is to update the error message to mention the fact that literal percent signs should be escaped as %% though.
SPGoding
changed the title
Not all "%" in language files marks a variable
Add hint for percent escape in translatable values
Feb 11, 2025
In the above situation, the
%
is just a part of the text. This is accepted by the game, but Spyglass marks it as an error and expects a followings
.The text was updated successfully, but these errors were encountered: