Bug 398703

Summary: Untranslatable strings in debug_console.ui
Product: [Plasma] kwin Reporter: Alexander Potashev <aspotashev>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: kde
Priority: NOR Flags: kde: ReviewRequest+
Version First Reported In: 5.13.4   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Alexander Potashev 2018-09-16 10:27:22 UTC
i18n strings are not extracted from debug_console.ui, thus they are untranslatable.
Comment 1 David Edmundson 2018-09-16 11:15:47 UTC
Debug console is not for end users, nor accessible from the ui.

Is it worth translators time?
Comment 2 Alexander Potashev 2018-09-16 11:53:57 UTC
It's accessible through KRunner if you type in "KWin debug console".

We already translate strings from debug_console.cpp (they are extracted into kwin.pot), these should be "citizens" of the same class.
Comment 3 David Edmundson 2018-09-16 14:02:18 UTC
I wrote a patch but phabricator is down.

If you want to review here:

diff --git a/Messages.sh b/Messages.sh
index 477aa7630..004d0af4b 100644
--- a/Messages.sh
+++ b/Messages.sh
@@ -1,3 +1,3 @@
 #! /usr/bin/env bash
-$EXTRACTRC *.kcfg >> rc.cpp
+$EXTRACTRC *.kcfg *.ui >> rc.cpp
Comment 4 Alexander Potashev 2018-09-16 15:39:36 UTC
(In reply to David Edmundson from comment #3)
> diff --git a/Messages.sh b/Messages.sh
> index 477aa7630..004d0af4b 100644
> --- a/Messages.sh
> +++ b/Messages.sh
> @@ -1,3 +1,3 @@
>  #! /usr/bin/env bash
> -$EXTRACTRC *.kcfg >> rc.cpp
> +$EXTRACTRC *.kcfg *.ui >> rc.cpp

This should work. Thanks!
Comment 5 David Edmundson 2018-09-17 09:40:08 UTC
Git commit 8bba7009bca27aff38136e52908326d179647a89 by David Edmundson.
Committed on 17/09/2018 at 09:39.
Pushed by davidedmundson into branch 'Plasma/5.14'.

Fix untranslatable strings in debug_console.ui shortcutdialog.ui
Review on bugzilla

M  +1    -1    Messages.sh

https://commits.kde.org/kwin/8bba7009bca27aff38136e52908326d179647a89