Need help with i18n bug: translators' names don't show up in KAboutData

Albert Astals Cid aacid at kde.org
Sat Oct 17 20:56:56 UTC 2015


El Saturday 17 October 2015, a les 15:03:14, Michael Pyne va escriure:
> Hi all,
> 
> A few of our translators have reported that the list of translators does not
> show up in KF5-using applications, because KAboutData::translators().
> Apparently this is because the translation is done using a translation
> context... but kcoreaddons cannot use i18nc as a low-level component, and
> our translations are not compatible with Qt's context-dependent
> translations.
> 
> Or something like that. I'm not really sure what to do here, does anyone
> have ideas? The bug is 345320, https://bugs.kde.org/show_bug.cgi?id=345320

Since the documentation says you need to call setTranslator i suggest a 
Q_COREAPP_STARTUP_FUNCTION in kxmlgui (that as far as i can see is the main 
user of KAboutData::translators) that calls 
KAboutData::applicationData()::setTranslator(i18nc("NAME OF TRANSLATORS", 
"Your names"), i18nc("EMAIL OF TRANSLATORS", "Your emails"));

Cheers,
  Albert

> 
> Regards,
>  - Michael Pyne
> _______________________________________________
> Kde-frameworks-devel mailing list
> Kde-frameworks-devel at kde.org
> https://mail.kde.org/mailman/listinfo/kde-frameworks-devel



More information about the Kde-frameworks-devel mailing list