Am Dienstag, 15. Oktober 2024, 09:46:53 MESZ schrieb Halla Rempt: > Hi, > > I'm porting Krita to KF6 now, and I'm running into an issue: i18n_noop no > longer exists. Both in Calligra and Krita, we have > > const char* KoZoomMode::modes[] = > { > I18N_NOOP("%1%"), > I18N_NOOP("Fit Page Width"), > I18N_NOOP("Fit Page"), > 0, > I18N_NOOP("Actual Pixels") > }; > > in KoZoomMode.cpp -- but I18N_NOOP no longer exists. What should we use > instead? Is there something that builds with both kf5 and kf6 or does it > need ifdeffery? >
I think you are looking kli18n and friends: https://api.kde.org/frameworks/ki18n/html/classKLazyLocalizedString.html It says since 5.89 David