Previously, xgettext failed to resolve the dynamic call. Thanks to @JakubVanek for pointing this out.