Bug 434822

Summary: Problem with dolphin translation
Product: [Applications] dolphin Reporter: Rockon <itskyzex>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: kfm-devel, luigi.toscano
Priority: NOR    
Version: 20.12.3   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Rockon 2021-03-23 08:00:37 UTC
SUMMARY
Hello! I encountered the problem of translation into Russian (and other translation languages as well as) of my Dolfin. 

STEPS TO REPRODUCE
1. set more than one languages in 'Settings -> Configure Language'
2. 
3. 

OBSERVED RESULT
Dolphin is partially translated
https://pastenow.ru/BY0KJ

EXPECTED RESULT


SOFTWARE/OS VERSIONS

Linux/KDE Plasma: ArchLinux
(available in About System)
KDE Plasma Version: 5.21.3
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
This problem is reproduced on different versions of Dolfin (18, 19, 20) 

~/.config/plasma-localerc
[Formats]
LANG=ru_RU.UTF-8
useDetailed=true

[Translations]
LANGUAGE=ru:en_US

 /bin/locale

LANG=ru_RU.UTF-8
LC_CTYPE="ru_RU.UTF-8"
LC_NUMERIC="ru_RU.UTF-8"
LC_TIME="ru_RU.UTF-8"
LC_COLLATE="ru_RU.UTF-8"
LC_MONETARY="ru_RU.UTF-8"
LC_MESSAGES="ru_RU.UTF-8"
LC_PAPER="ru_RU.UTF-8"
LC_NAME="ru_RU.UTF-8"
LC_ADDRESS="ru_RU.UTF-8"
LC_TELEPHONE="ru_RU.UTF-8"
LC_MEASUREMENT="ru_RU.UTF-8"
LC_IDENTIFICATION="ru_RU.UTF-8"
LC_ALL=


 /bin/locale -a
C
en_US.utf8
POSIX
ru_RU.utf8

 /bin/localectl
   System Locale: LANG=ru_RU.utf8
       VC Keymap: ru
      X11 Layout: ru

 /bin/locale-gen
Generating locales...
  en_US.UTF-8... done
  ru_RU.UTF-8... done
Generation complete.

As well as in the file "/usr/share/locale/ru/LC_MESSAGES/dolphin.mo" there is a Russian translation
Comment 1 Rockon 2021-03-23 08:09:00 UTC
SUMMARY
Hello! I encountered the problem of translation into Russian (and other translation languages as well as) of my Dolfin. 

STEPS TO REPRODUCE
1. set more than one languages in 'Settings -> Configure Language'
2. 
3. 

OBSERVED RESULT
Dolphin is partially translated
https://pastenow.ru/BY0KJ

EXPECTED RESULT


SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Manjaro
(available in About System)
KDE Plasma Version: 5.21.3
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
This problem is reproduced on different versions of Dolfin (18, 19, 20) 

~/.config/plasma-localerc
[Formats]
LANG=ru_RU.UTF-8
useDetailed=true

[Translations]
LANGUAGE=ru:en_US

 /bin/locale

LANG=ru_RU.UTF-8
LC_CTYPE="ru_RU.UTF-8"
LC_NUMERIC="ru_RU.UTF-8"
LC_TIME="ru_RU.UTF-8"
LC_COLLATE="ru_RU.UTF-8"
LC_MONETARY="ru_RU.UTF-8"
LC_MESSAGES="ru_RU.UTF-8"
LC_PAPER="ru_RU.UTF-8"
LC_NAME="ru_RU.UTF-8"
LC_ADDRESS="ru_RU.UTF-8"
LC_TELEPHONE="ru_RU.UTF-8"
LC_MEASUREMENT="ru_RU.UTF-8"
LC_IDENTIFICATION="ru_RU.UTF-8"
LC_ALL=


 /bin/locale -a
C
en_US.utf8
POSIX
ru_RU.utf8

 /bin/localectl
   System Locale: LANG=ru_RU.utf8
       VC Keymap: ru
      X11 Layout: ru

 /bin/locale-gen
Generating locales...
  en_US.UTF-8... done
  ru_RU.UTF-8... done
Generation complete.

As well as in the file "/usr/share/locale/ru/LC_MESSAGES/dolphin.mo" there is a Russian translation
Comment 2 Luigi Toscano 2021-03-23 09:35:43 UTC
(In reply to Rockon from comment #1)
> SUMMARY
> Hello! I encountered the problem of translation into Russian (and other
> translation languages as well as) of my Dolfin. 
> 
> STEPS TO REPRODUCE
> 1. set more than one languages in 'Settings -> Configure Language'
> 2. 
> 3. 

Do you mean that if you don't set multiple languages dolphin is fully translated? Please note that you don't need to set the language in systemsettings if you want to use the system language.

Please make sure you also have Qt translations installed (depending on the packaging, they may be shipped as qt5-qttranslations, or qttranslations5-l10n, or something else).
Make also sure your distribution provides the translations of all other libraries required.

I've just tried on two systems (current Debian testing, current Fedora 33) with:
LANG=ru_RU.UTF-8 dolphin

and dolphin is fully translated.
Comment 3 Rockon 2021-03-23 13:37:52 UTC
(In reply to Luigi Toscano from comment #2)
> 
> Do you mean that if you don't set multiple languages dolphin is fully
> translated? Please note that you don't need to set the language in
> systemsettings if you want to use the system language.
> 
> Please make sure you also have Qt translations installed (depending on the
> packaging, they may be shipped as qt5-qttranslations, or
> qttranslations5-l10n, or something else).
> Make also sure your distribution provides the translations of all other
> libraries required.
> 
> I've just tried on two systems (current Debian testing, current Fedora 33)
> with:
> LANG=ru_RU.UTF-8 dolphin
> 
> and dolphin is fully translated.
Thanks for your reply.
In my system settings and in the settings, the dolphin installed the Russian language and also I have a package:

pacman -Q qt5-translations

qt5-translations 5.15.2-1

After your answer, I began to think that the problem is in some not installed packages. In my system in many KDE applications, half in Russian, half in English.
I put my system manually and 5.18 everything was fine, the problem appeared after the update by 5.20
Comment 4 Rockon 2021-03-23 15:38:41 UTC
In general, I think the problem is solved. In the repository of Manjaro faulty plasma (plasma-desktop-primex)
What did you do: 

pacman -Rdd karchive-git kauth-git kbookmarks-git kcmutils-git kcodecs-git kcompletion-git kconfig-git kconfigwidgets-git kcontacts-git kcoreaddons-git kcrash-git kdbusaddons-git kdeclarative-git kglobalaccel-git kguiaddons-git ki18n-git kiconthemes-git kio-git kirigami2-git kitemviews-git kjobwidgets-git knotifications-git kpackage-git kpeople-git kpeoplevcard-git kservice-git ktextwidgets-git kwallet-git kwayland-git kwidgetsaddons-git kwindowsystem-git kxmlgui-git plas

pacman -Sy karchive kauth kbookmarks kcmutils kcodecs kcompletion kconfig kconfigwidgets kcontacts kcoreaddons kcrash kdbusaddons kdeclarative kglobalaccel kguiaddons ki18n kiconthemes kio kirigami2 kitemviews kjobwidgets knotifications kpackage kpeople kpeoplevcard kservice ktextwidgets kwallet kwayland kwidgetsaddons kwindowsystem kxmlgui

As a result, the translation earned.
I apologize for concern
Comment 5 Rockon 2021-03-23 15:40:37 UTC
pacman -Rdd karchive-git kauth-git kbookmarks-git kcmutils-git kcodecs-git kcompletion-git kconfig-git kconfigwidgets-git kcontacts-git kcoreaddons-git kcrash-git kdbusaddons-git kdeclarative-git kglobalaccel-git kguiaddons-git ki18n-git kiconthemes-git kio-git kirigami2-git kitemviews-git kjobwidgets-git knotifications-git kpackage-git kpeople-git kpeoplevcard-git kservice-git ktextwidgets-git kwallet-git kwayland-git kwidgetsaddons-git kwindowsystem-git kxmlgui-git

pacman -Sy karchive kauth kbookmarks kcmutils kcodecs kcompletion kconfig kconfigwidgets kcontacts kcoreaddons kcrash kdbusaddons kdeclarative kglobalaccel kguiaddons ki18n kiconthemes kio kirigami2 kitemviews kjobwidgets knotifications kpackage kpeople kpeoplevcard kservice ktextwidgets kwallet kwayland kwidgetsaddons kwindowsystem kxmlgui
Comment 6 Luigi Toscano 2021-03-23 21:06:33 UTC
Thanks for the investigation.

It seems you were using packages whose code come from git, not from the tarballs, and if packagers don't configure their packaging scripts properly, packaging git code won't contain translations.

The packages you have installed now probably tracks the released tarballs, which include the messages.

In any case this was a packaging (distribution, so downstream) issue.