mojira.dev

Language.UNSUPPORTED_FORMAT_PATTERN is intended to catch stray %d and %f placeholders in the translation resources and convert them to %s, since the translation component only supports this.

However, the regex is currently too broad – in particular it will also catch and convert %%dark and %%food (to %%sark and %%sood respectively), despite these being escaped.

This does not directly affect players, but it's a landmine waiting for mod developers and also your own dev team.

Comments 2

Affects resource packs in vanilla as well.

Simply fixed by checking if it's escaped or not, or by simply removing the converting since it has been deprecated for a ton of versions and vanilla is entirely converted.

Still exists in 1.21. Any content matching the following pattern will be replaced.

%(\d+\$)?[\d.]*[df]

Gavin Lambert

(Unassigned)

Community Consensus

Platform

Low

Internationalisation, Resource Packs

1.19.4, 1.21

Retrieved