Why can I not use a class constant as text domain?
The value of a constant or variable can be evaluated by a PHP parser only. The tool that is used to extract the translatable strings is written in PHP, but is just a string parser. It doesn’t run your code, because that would be too slow and error prone. Here is an example for how … Read more