-
Notifications
You must be signed in to change notification settings - Fork 459
Description
This is a copy of old ticket 318.
During extraction the results from an extractor plugin are used to create a message which is then added to the catalog. When the Message instance is created it can set the python-format
flag if the text matches a specific regular expression. That means that a text like this:
This is a text about 50% of all users.
will be flagged as a python-format string even it does not originate from python code, or from a piece of python code that will never use formatting. This is breaking our translations in a pretty bad way currently.
As far as I can see the extractor is the only thing that should decide the flags for a message. The Message class itself should never try to guess flags or force them upon plugins, especially since extractors have no way to override this behaviour.