Created attachment 98998 [details]
Fix the compile by moving the definition before the #ifdef.
The variable translation_found is defined in the else branch of the #ifdef _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS block in gettext.h before line 180, but used unconditionally in line 180.
The compile fails with
/var/tmp/portage/kde-frameworks/ki18n-5.22.0/work/ki18n-5.22.0/src/gettext.h:180:9: error: 'translation_found' was not declared in this scope
translation_found = !(translation == msg_ctxt_id || translation == msgid_plural);
Created attachment 98999 [details]
Patch v2: make the first use of translation_found the definition.
This was already fixed, but apparently a few hours too late for 5.22. I'll add release team to CC, if any remedy before 5.23 is in order.
sources/ki18n-5.22.1.tar.xz uploaded for packagers.