Bug 413900 - Untranslated placeholder "Search..." in Kirigami.SearchField on second run
Summary: Untranslated placeholder "Search..." in Kirigami.SearchField on second run
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kirigami
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: Master
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: Not decided
Assignee: Marco Martin
URL:
Keywords:
: 415753 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-11-07 01:36 UTC by Alexander Potashev
Modified: 2022-07-31 11:17 UTC (History)
6 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Potashev 2019-11-07 01:36:03 UTC
SUMMARY
Untranslated placeholder "Search..." in Kirigami.SearchField on second run.

STEPS TO REPRODUCE
1. Change Plasma system  language to Russian
2. Start new Plasma session
3. Run "kcmshell5 kcm_kwin_effects"
4. Notice that the search field placeholder "Search..." is translated as "Поиск...".
5. Close the dialog.
6. Run "kcmshell5 kcm_kwin_effects" again.

OBSERVED RESULT
Search field placeholder "Search..." is not translated into Russian.

EXPECTED RESULT
Search field placeholder "Search..." should use Russian translation.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 5.17.2
(available in About System)
KDE Plasma Version: 5.17.2
KDE Frameworks Version: 5.63.0
Qt Version: 5.14.0

ADDITIONAL INFORMATION
Comment 1 Alexander Potashev 2019-11-07 01:38:44 UTC
I guess that the search field is implemented with Kirigami.SearchField. The placeholder is translated into Russian in messages/frameworks/libkirigami2plugin_qt.po.
Comment 2 Alexander Potashev 2019-11-07 01:43:39 UTC
Yaroslav (CC'd) was able to reproduce after a few runs of the KCM.

I'm not sure if two attempts running the KCM is always enough to reproduce, it might depend on the system or software configuration.
Comment 3 Yaroslav Sidlovsky 2019-11-07 10:33:04 UTC
On 1 of my PC's I can reproduce this issue every time.
When I run `kcmshell5 kcm_kwin_effects` from console I see this warning (among others):

file:///usr/lib64/qt5/qml/org/kde/kirigami.2/SearchField.qml:47:9: QML Action: LayoutDirection attached property only works with Items and Windows

Maybe it gives some clues.
Comment 4 Yaroslav Sidlovsky 2019-11-07 10:35:49 UTC
Forgot to mention my software versions, here it is:

Operating System: Fedora 30
KDE Plasma Version: 5.17.2
KDE Frameworks Version: 5.63.0
Qt Version: 5.12.5
Kernel Version: 5.2.17-200.fc30.x86_64
OS Type: 64-bit
Comment 5 Méven Car 2019-11-07 12:57:36 UTC
I can reproduce it with French localization.

Operating System: Kubuntu 19.10
KDE Plasma Version: 5.17.2
KDE Frameworks Version: 5.62.0
Qt Version: 5.12.4

With warnings:

file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/SearchField.qml:47:9: QML Action: LayoutDirection attached property only works with Items and Windows
Constructing a KPluginInfo object from old style JSON. Please use kcoreaddons_desktop_to_json() for "/usr/lib/x86_64-linux-gnu/qt5/plugins/kwin/effects/configs/kcm_kwin4_genericscripted.so" instead of kservice_desktop_to_json() in your CMake code.
file:///usr/share/kpackage/kcms/kcm_kwin_effects/contents/ui/main.qml:96:19: QML SwipeListItem: Binding loop detected for property "implicitHeight"

I opened a PR to fix this : https://phabricator.kde.org/D25190
Comment 6 David Edmundson 2019-11-07 13:11:46 UTC
Moving to kirigami. If there is something we need to do in kwin to set the translation domain or whatever, please do move back.
Comment 7 Méven Car 2019-11-08 08:53:11 UTC
The string "Search..." is correctly present in https://websvn.kde.org/*checkout*/trunk/l10n-kf5/fr/messages/kde-workspace/kcm_kwin_effects.po
This hints towards an issue in kirigami/Qt qml translation propagation/loading.
Comment 8 Victor Ryzhykh 2019-11-08 15:54:34 UTC
(In reply to Méven Car from comment #7)
> The string "Search..." is correctly present in
> https://websvn.kde.org/*checkout*/trunk/l10n-kf5/fr/messages/kde-workspace/
> kcm_kwin_effects.po
> This hints towards an issue in kirigami/Qt qml translation
> propagation/loading.

This line is from the old plasma, and it is commented out

#~ msgid "Search..."
#~ msgstr "ChercherтАж"
Comment 9 Nate Graham 2020-01-01 23:06:11 UTC
*** Bug 415753 has been marked as a duplicate of this bug. ***
Comment 10 Felipe Kinoshita 2022-05-05 18:07:59 UTC
Is this still happening?
Comment 11 Nate Graham 2022-05-09 15:27:45 UTC
.
Comment 12 Yaroslav Sidlovsky 2022-05-09 15:49:57 UTC
Can't reproduce with plasma-5.24.5 & kf-5.93.0 on Fedora 35 and 36.
Can somebody confirm this bug can be reproduced?
Comment 13 Bug Janitor Service 2022-05-24 04:35:48 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 Bug Janitor Service 2022-06-08 04:35:46 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now 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

Thank you for helping us make KDE software even better for everyone!
Comment 15 Alexander Potashev 2022-07-31 11:17:14 UTC
Cannot reproduce with Plasma 5.24.4 on Fedora 35. Thank you!