Bug 444374 - Exclusive UI language change is not applied.
Summary: Exclusive UI language change is not applied.
Status: REPORTED
Alias: None
Product: kmymoney
Classification: Applications
Component: translation (show other bugs)
Version: 5.1.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-25 15:34 UTC by t-ask
Modified: 2022-02-06 12:51 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
The selected language. (11.76 KB, image/png)
2021-10-27 08:31 UTC, t-ask
Details

Note You need to log in before you can comment on or make changes to this bug.
Description t-ask 2021-10-25 15:34:44 UTC
SUMMARY

Changing "Language" has no effect.


STEPS TO REPRODUCE
1. Open menu entry "Settings/Configure Language"
2. Select another language than Plasma's system language
3. Restart the app, nothing changed.

OBSERVED RESULT

The application is language will not change.

EXPECTED RESULT

The application is translated to the selected language.


SOFTWARE/OS VERSIONS

Operating System: Arch Linux
KDE Plasma Version: 5.23.1
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.2
Kernel Version: 5.14.13-208-tkg-pds (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 3800X 8-Core Processor
Memory: 47.0 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1070/PCIe/SSE2
ADDITIONAL INFORMATION
Comment 1 Thomas Baumgart 2021-10-25 20:11:25 UTC
How did you install the software (package, appimage, build from source)? It looks like you don't have the necessary translation files installed (this is reflected by the case that no menu entry is shown in the selected language).
Comment 2 t-ask 2021-10-26 10:50:52 UTC
(In reply to Thomas Baumgart from comment #1)
> How did you install the software (package, appimage, build from source)? 

I installed it via `pacman -S kmymoney`.

> It looks like you don't have the necessary translation files installed (this is
> reflected by the case that no menu entry is shown in the selected language).

There is a list of a lot of languages in the list (Settings/Configure Language). It is just selecting any doesn't change the UI language.

Which `translation files` am I missing?
Comment 3 Thomas Baumgart 2021-10-26 16:13:40 UTC
Looking at https://archlinux.org/packages/community/x86_64/kmymoney/files/ I see the kmymoney.mo files for some languages included. These files include the KMyMoney specific translations. For some strings you need the general KDE translation to be installed. Which language are you looking for?
Comment 4 t-ask 2021-10-26 22:43:18 UTC
(In reply to Thomas Baumgart from comment #3)
> Looking at https://archlinux.org/packages/community/x86_64/kmymoney/files/ I
> see the kmymoney.mo files for some languages included. These files include
> the KMyMoney specific translations. 

Yes, it seems they are installed on my system. Odd that they are not used here!? e.g.:

```
ls -al /usr/share/doc/HTML/de/kmymoney/
total 572
drwxr-xr-x   2 root root  4096 Oct 25 23:19 ./
drwxr-xr-x 159 root root  4096 Aug 15 15:01 ../
-rw-r--r--   1 root root  5749 Sep 10 21:50 credits.docbook
-rw-r--r--   1 root root 26046 Sep 10 21:50 details-accounts.docbook
-rw-r--r--   1 root root 17323 Sep 10 21:50 details-budgets.docbook
-rw-r--r--   1 root root  6023 Sep 10 21:50 details-categories.docbook
-rw-r--r--   1 root root  5926 Sep 10 21:50 details-currencies.docbook
-rw-r--r--   1 root root 20477 Sep 10 21:50 details-database.docbook
-rw-r--r--   1 root root  9089 Sep 10 21:50 details-forecast.docbook
...
```

> For some strings you need the general
> KDE translation to be installed. Which language are you looking for?

DE - I installed DE lang in "Regional Settings / Language" in Plasma as alternative, too.
Comment 5 t-ask 2021-10-27 08:31:52 UTC
Created attachment 142934 [details]
The selected language.
Comment 6 t-ask 2021-10-27 08:33:15 UTC
To complete the file list. This is `` on my system.

```
# ls -al /usr/share/locale/de/LC_MESSAGES/kmymoney.mo
-rw-r--r-- 1 root root 380226 Sep 10 21:50 /usr/share/locale/de/LC_MESSAGES/kmymoney.mo
```
Comment 7 Bug Janitor Service 2021-11-11 04:39:16 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 8 t-ask 2021-12-13 16:35:29 UTC
I'm not sure if there is more information needed. Does it work on other systems?
Comment 9 Jack 2021-12-13 18:03:11 UTC
It works fine for me under Artix Linux, a derivative of Arch Linux.  I'd suggest filing a bug against the Archlinux package.

What happens after you click OK on the dialog shown in the attachment of Comment #5?  I get a message saying the new language will be used after restarting KMyMoney.
Comment 10 Jack 2022-01-01 01:13:42 UTC
Can't do much without more feedback.  I don't see that any Archlinux bug has been filed.
Comment 11 t-ask 2022-01-03 10:38:40 UTC
(In reply to Jack from comment #9)
> What happens after you click OK on the dialog shown in the attachment of
> Comment #5?  I get a message saying the new language will be used after
> restarting KMyMoney.

Yes, I get this message, "The language for this application has been changed. The change will take effect the next time the application is started.", too. 

Additionally, I tried to change the default language order in Plasma settings "Regional Settings / Language / ..." but this has no effect for Plasma's desktop language, too. While I noticed some applications are now in "German" like KeePassXC - Version 2.6.6
Revision: 9c108b9, while Dolphin or most of the other applications stay English.

I suspect, something with language/locale settings is interfering with Plasma's "Regional" settings or not in this case.  Entering `locale` in Konsole prints:

```
$ locale
LANG=de_DE.UTF-8
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=C
```

and `~/.config/plasma-localerc` shows

```
$ cat ~/.config/plasma-localerc
[Formats]
LANG=de_DE.UTF-8
LC_MESSAGES=en_US.UTF-8

[Translations]
LANGUAGE=de:en_US
```
Comment 12 Jack 2022-01-05 23:51:12 UTC
I'm grabbing at straws here, but what is the content of (non comments) in /etc/locale.gen?  If you run the KDE systemsettings5, under Regional Settings, what is listed for Languages?
Comment 13 Bug Janitor Service 2022-01-20 04:36:52 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 14 t-ask 2022-01-29 12:38:06 UTC
(In reply to Jack from comment #12)
> I'm grabbing at straws here, but what is the content of (non comments) in
> /etc/locale.gen?  
The content of `/etc/locale.gen` is:

de_DE.UTF-8 UTF-8  
de_DE ISO-8859-1  
de_DE@euro ISO-8859-15  
en_US.UTF-8 UTF-8  
en_US ISO-8859-1

> If you run the KDE systemsettings5, under Regional
> Settings, what is listed for Languages?

In `Regional Settings / Language` it is (in that order):

1. Deutsch (default)
2. American English
Comment 15 Thomas Baumgart 2022-01-30 06:17:30 UTC
Here's an important piece of information that you mention in your comment #11:
> While I noticed some applications are now in "German" like KeePassXC - Version 2.6.6
> Revision: 9c108b9, while Dolphin or most of the other applications stay English.
Dolphin is a KDE application like KMyMoney. If it does not change its language to German when you switch, it seems a more general issue not related to any of the (KDE) applications. Since this is working for e.g openSUSE and other distros, I tend to see this as either a downstream (speak: repo) problem or a general local KDE issue of this user on your system.

KeePassXC on the other hand maintains its own translation system that is not compatible with KDE's (see https://github.com/keepassxreboot/keepassxc/blob/develop/share/translations/keepassxc_de.ts)
Comment 16 t-ask 2022-02-06 12:51:26 UTC
Are there any other configs or libs related to KDE applications language switching? Afaik, those settings I provided should work just fine. I wonder which other external dependencies do matter to language switching code.