Shouldn't the result of getXMLstring be passed to entity_decode first? Something along the attached patch. Perhaps I'm not doing this as was planned (basically I'm running a regex-replace on the generate ui_XXX.h files to replace QApplication::translate calls with gettext ones, see [1]), but without entity_decode, the msgids of strings containing html markup does not match what is actually in the ui_XXX.h files, plus having all html-escaped characters in the po files is somewhat unplesant for translators.
Shouldn't the result of getXMLstring be passed to entity_decode first? Something along the attached patch. Perhaps I'm not doing this as was planned (basically I'm running a regex-replace on the generate ui_XXX.h files to replace QApplication: :translate calls with gettext ones, see [1]), but without entity_decode, the msgids of strings containing html markup does not match what is actually in the ui_XXX.h files, plus having all html-escaped characters in the po files is somewhat unplesant for translators.
[1] https:/ /github. com/manisandro/ gImageReader/ blob/master/ cmake/gettextiz eui.cmake