Bug 436508 - Krita Nightly Appimages do not load translation that is the same as the system's locale
Summary: Krita Nightly Appimages do not load translation that is the same as the syste...
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Translation (show other bugs)
Version: nightly build (please specify the git hash!)
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL: https://invent.kde.org/graphics/krita...
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-03 03:49 UTC by Tyson Tan
Modified: 2021-06-15 01:37 UTC (History)
3 users (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 Tyson Tan 2021-05-03 03:49:42 UTC
In the lastest Appimage krita-5.0.0-prealpha-c0b6649-x86_64.appimage (2021-05-03), all languages are now listed in Switch Application Language dialogue. However, for some reason, Krita does not load Simplified Chinese translation, and will only use English regardless of the settings. Other languages work fine.
Comment 1 Halla Rempt 2021-05-03 09:09:12 UTC
Weird, because that works here. What are your locale settings?
Comment 2 Tyson Tan 2021-05-03 09:16:47 UTC
The system's locale is Simplified Chinese (zh_CN.UTF-8), and that only.
Comment 3 Tyson Tan 2021-05-03 17:26:43 UTC
I've performed some tests, and found that: only the translation identical to the system's current locale would not be loaded.

For example, after I switched system locale to en_US.UTF-8, Simplified Chinese translation now works fine.
Comment 4 Tyson Tan 2021-05-03 17:29:07 UTC
Krita

 Version: 5.0.0-prealpha (git 91625c4)
 Languages: en_US, en
 Hidpi: true

Qt

  Version (compiled): 5.12.9
  Version (loaded): 5.12.9

OS Information

  Build ABI: x86_64-little_endian-lp64
  Build CPU: x86_64
  CPU: x86_64
  Kernel Type: linux
  Kernel Version: 5.11.16-arch1-1
  Pretty Productname: Arch Linux
  Product Type: arch
  Product Version: unknown
  Desktop: KDE
Comment 5 Tyson Tan 2021-05-03 17:45:09 UTC
It seems that Kdenlive's Jenkins Appimage factory hasn't apply the fix. All translation is missing in kdenlive-21.07.70-63bb283-x86_64.appimage
Comment 6 Tyson Tan 2021-05-03 17:46:25 UTC
(In reply to Tyson Tan from comment #5)
> It seems that Kdenlive's Jenkins Appimage factory hasn't apply the fix. All
> translation is missing in kdenlive-21.07.70-63bb283-x86_64.appimage

Sorry, wrong post. It was meant for Bug 434179.
Comment 7 Tyson Tan 2021-05-03 17:57:06 UTC
I switched system locale back to zh_CN.UTF-8. The nightly appimages of digiKam, Kate and Kdenlive can still load Simplified Chinese translation. All release appimages (including Krita) works too. It seems only Krita Night appimages has this issue.
Comment 8 Tyson Tan 2021-05-03 17:58:48 UTC
Krita system information for zh_CN.UTF-8:

Krita

 Version: 5.0.0-prealpha (git 91625c4)
 Languages: zh_CN, zh, zh_CN, zh
 Hidpi: true
Comment 9 Halla Rempt 2021-05-14 13:59:53 UTC
In general, it seems ki18n never loads the current language for us on Linux, not when it's selected as an override language and not when it's not...
Comment 10 Dmitry Kazakov 2021-06-14 08:35:16 UTC
This merge request should fix this bug: https://invent.kde.org/graphics/krita/-/merge_requests/897
Comment 11 Tyson Tan 2021-06-15 01:37:21 UTC
Yes, I can confirm it is indeed fixed today. Thank you Alvin and Dmitry!