Issue #2868098 by martin107, joachim: Changed all methods for getting flag texts to take an $action parameter.