Diffusion Krita 575912219f83

pykrita: expose the real i18n() function

Authored by pino on Jun 23 2018, 8:47 AM.

Description

pykrita: expose the real i18n() function

Summary:
Using QCoreApplication.translate() as i18n() function in pykrita does
not work, since the translations are not in Qt .qm files, but in
Gettext .po files.

Hence, create an helper krita_i18n() function in libkis, bind it with
SIP, and set it as builtin i18n() function for pykrita (and thus for
all the Python plugins). This fixes most of the lack of translations
in Python plugins.

Test Plan:
Builds fine, and Python plugins are translated properly
(mostly, since there are few more issues, but unrelated to this).

Reviewers: Krita, rempt

Reviewed By: Krita, rempt

Subscribers: rempt

Tags: Krita

Differential Revision: https://phabricator.kde.org/D13689

(cherry picked from commit b7b398897132c90cdcc30cf3a69394bb37f5b483)

Details

Committed
pinoJun 24 2018, 11:11 AM
Reviewer
Krita
Differential Revision
D13689: pykrita: expose the real i18n() function
Parents
R37:69fca1ebc6ea: i18n: use location for strings of palettes/brushes/etc
Branches
Unknown
Tags
Unknown