Bug 391989 - UI is not translated
Summary: UI is not translated
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Translation (show other bugs)
Version: 4.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-18 10:54 UTC by Antonio Rojas
Modified: 2018-03-18 14:33 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Antonio Rojas 2018-03-18 10:54:28 UTC
In krita 4.0.0 the UI is always displayed in English. Translations are correctly installed in /usr/share/locale/*/LC_MESSAGES/krita.mo, running krita from the command line shows "Setting Krita's language to: QLocale(Spanish, Latin, Spain)
", but all the strings are in English. Tested with es_ES and fr_FR locales.
Comment 1 Halla Rempt 2018-03-18 13:03:01 UTC
Did you build Krita yourself? And was it built from a release tarball or from git? And could you add the complete terminal output from starting Krita until the main window appears?
Comment 2 Halla Rempt 2018-03-18 13:03:46 UTC
Oh, and the exact version of Qt and ki18n are also important.
Comment 3 Antonio Rojas 2018-03-18 13:39:41 UTC
Built from the release tarball. Tested with Qt 5.10.1 and 5.11 beta, ki18n 5.44

Terminal output:
> krita
>OpenGL Info 
  Vendor:  Intel Open Source Technology Center 
  Renderer:  "Mesa DRI Intel(R) Haswell Mobile " 
  Version:  "3.0 Mesa 17.3.6" 
  Shading language:  1.30 
  Requested format:  QSurfaceFormat(version 3.0, options QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::SwapBehavior(DoubleBuffer), swapInterval 0, colorSpace QSurfaceFormat::ColorSpace(DefaultColorSpace), profile  QSurfaceFormat::OpenGLContextProfile(CompatibilityProfile)) 
  Current format:    QSurfaceFormat(version 3.0, options QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 0, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::SwapBehavior(DoubleBuffer), swapInterval 0, colorSpace QSurfaceFormat::ColorSpace(DefaultColorSpace), profile  QSurfaceFormat::OpenGLContextProfile(NoProfile)) 
     Version: 3.0
     Supports deprecated functions true 
     is OpenGL ES: false 
krita has opengl true
Setting XDG_DATA_DIRS "/usr/bin/../share:/usr/share:/usr/share:/usr/local/share"
Available translations QSet("de", "uz@cyrillic", "ro", "sv", "zh_TW", "oc", "fa", "is", "cy", "zh_CN", "ko", "fi", "pa", "lv", "nb", "mai", "mr", "en_US", "br", "eu", "ca@valencia", "ja", "gl", "sq", "ca", "sl", "pt_BR", "hne", "he", "bs", "se", "uz", "fr", "ga", "ms", "hu", "th", "kk", "ta", "ru", "et", "ia", "tr", "en_GB", "sk", "it", "pt", "hr", "nds", "ar", "nn", "pl", "hi", "be", "ne", "vi", "wa", "xh", "af", "lt", "uk", "cs", "bg", "el", "nl", "eo", "km", "fy", "da", "mk", "ug", "tg", "es", "ast")                                                                                                            
Available domain translations QSet("de", "uz@cyrillic", "ro", "sv", "zh_TW", "oc", "fa", "is", "cy", "zh_CN", "ko", "fi", "pa", "lv", "nb", "mai", "mr", "en_US", "br", "eu", "ca@valencia", "ja", "gl", "sq", "ca", "sl", "pt_BR", "hne", "he", "bs", "se", "uz", "fr", "ga", "ms", "hu", "th", "kk", "ta", "ru", "et", "ia", "tr", "en_GB", "sk", "it", "pt", "hr", "nds", "ar", "nn", "pl", "hi", "be", "ne", "vi", "wa", "xh", "af", "lt", "uk", "cs", "bg", "el", "nl", "eo", "km", "fy", "da", "mk", "ug", "tg", "es", "ast")                                                                                                     
Override language: ""                                                                                                                                     
Setting Krita's language to: QLocale(Spanish, Latin, Spain)                                                                                               
Invalid profile :  "/usr/share/color/icc/colord/Crayons.icc" "Crayon Colors"                                                                              
Invalid profile :  "/usr/share/color/icc/colord/x11-colors.icc" "X11 Colors"                                                                              
Loading plugin "/usr/lib/kritaplugins/kritalutdocker.so" failed,  "No se puede cargar la biblioteca /usr/lib/kritaplugins/kritalutdocker.so: (libOpenColorIO.so.1: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio)"                                                       
input profiles were read from ' /usr/share/krita/input '.                                                                                                 
Loading Python plugin                                                                                                                                     
"/usr/lib/libpython3.6m.so.1.0" true
Creating s_pythonLibrary /usr/lib/libpython3.6m.so
Found krita-python-libs at "/usr/lib/krita-python-libs"
Setting python paths: "/home/antonio/.local/share/krita/:/usr/share/krita/:/home/antonio/.local/share/krita/pykrita/:/usr/share/krita/pykrita/:/usr/share/pykrita/:/usr/lib/krita-python-libs"
/usr/lib/krita-python-libs/krita added to PYTHONPATH
Button KoToolBoxButton(0x5579f92dd4d0, name="SvgTextTool") has a conflicting priority
krita.general: Could not find font QVariant(QString, "Source Sans Pro") with style QVariant(QString, "Regular")
krita.general: Could not find font QVariant(QString, "Source Sans Pro") with style QVariant(QString, "Bold")
krita.general: Could not find font QVariant(QString, "Source Sans Pro") with style QVariant(QString, "Regular")
krita.general: Could not find font QVariant(QString, "Source Sans Pro") with style QVariant(QString, "Regular")
krita.general: Could not find font QVariant(QString, "Source Sans Pro") with style QVariant(QString, "Regular")
krita.general: Could not find font QVariant(QString, "Source Sans Pro") with style QVariant(QString, "Light")
krita.general: Could not find font QVariant(QString, "Source Sans Pro") with style QVariant(QString, "Regular")
        falling back on QIcon::FromTheme: "edit-clear-locationbar-rtl"
file:///usr/lib/qt/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/preset-switcher
file:///usr/lib/qt/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/opacity-decrease
file:///usr/lib/qt/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/opacity-increase
file:///usr/lib/qt/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/lightness-increase
file:///usr/lib/qt/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/lightness-decrease
file:///usr/lib/qt/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/zoom-in
file:///usr/lib/qt/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/rotate-canvas-left
file:///usr/lib/qt/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/rotation-reset
file:///usr/lib/qt/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/rotate-canvas-right
file:///usr/lib/qt/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/zoom-out
file:///usr/lib/qt/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/brushsize-decrease
file:///usr/lib/qt/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/brushsize-increase
file:///usr/lib/qt/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/edit-clear
Comment 4 Halla Rempt 2018-03-18 13:47:52 UTC
Okay, so the translations are found. That's different from what I see with the appimage or on osx... Does it work to manually select the language in the settings/select language dialog?
Comment 5 Antonio Rojas 2018-03-18 13:56:34 UTC
Yes, it works when manually selecting the language
Comment 6 Halla Rempt 2018-03-18 14:05:00 UTC
Okay.
Comment 7 Halla Rempt 2018-03-18 14:28:34 UTC
Git commit dbd65ef7296f9cb1db4f985fa6c3b5d1eb9106ea by Boudewijn Rempt.
Committed on 18/03/2018 at 14:28.
Pushed by rempt into branch 'master'.

Only set the LANG variable if the system is not Windows

M  +8    -8    krita/main.cc

https://commits.kde.org/krita/dbd65ef7296f9cb1db4f985fa6c3b5d1eb9106ea
Comment 8 Halla Rempt 2018-03-18 14:33:28 UTC
Git commit 3d56e134325691588bec75925ce1da9b564ab05a by Boudewijn Rempt.
Committed on 18/03/2018 at 14:33.
Pushed by rempt into branch 'krita/4.0'.

Only set the LANG variable if the system is not Windows
(cherry picked from commit dbd65ef7296f9cb1db4f985fa6c3b5d1eb9106ea)

M  +8    -8    krita/main.cc

https://commits.kde.org/krita/3d56e134325691588bec75925ce1da9b564ab05a