-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Labels
Description
Text replacement should use enum values instead of magic integers. TextUtils parse the indices (the magic integers) from the strings and pass these to the text replacer. It would be incredibly helpful and easy to use enum values instead. The magic numbers seem to mean the same thing in all of the strings. And the way we currently do this is scattered to different handlers that know the context. Meaning of the magic integers are duplicated in all of those.
Some values we already have mapped in the code, and some would be helpful to extract from the translation files. These are usually simple enough to be deducted from the context.
Reactions are currently unavailable