I’m afraid you only have three options:
- Write your own custom tool to extract strings from this sort of code.
- Realize you are using a gettext library that has certain ways of doing thing and use it as it was intended to be used, i.e. with some sane, simple function or macro instead of a verbose
Language::getText
method call. - Add support for this to
xgettext
and submit a patch to GNU gettext project.