Bug 511144 - Konsole .desktop file keywords don't include "cmd" in translation
Summary: Konsole .desktop file keywords don't include "cmd" in translation
Status: RESOLVED FIXED
Alias: None
Product: i18n
Classification: Translations
Component: fr (other bugs)
Version First Reported In: unspecified
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: KDE Francophone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-26 08:46 UTC by Thomas Bertels
Modified: 2025-11-02 18:51 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Bertels 2025-10-26 08:46:09 UTC
SUMMARY
Keywords=terminal;console;script;run;execute;command;command-line;commandline;cli;bash;sh;shell;zsh;cmd;command prompt
Keywords[fr]=terminal ; console ; script ; lancer ; exécuter ;commande ; commande en ligne ; cli ; bash ; sh ; shell ; zsh ; invite de commandes

cmd is missing in French.

STEPS TO REPRODUCE
1. Open Kickoff
2. Type cmd

OBSERVED RESULT
Konsole isn't shown

EXPECTED RESULT
Konsole should be shown

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: 6.3.6
KDE Frameworks Version: 6.18.0
Qt Version: 6.9.2

ADDITIONAL INFORMATION
For some reason, the French .desktop files translations are the only ones to have spaces around the ;
Comment 1 Jazeix Johnny 2025-10-26 09:05:28 UTC
Hi,
thanks for the report. I just fixed it in http://websvn.kde.org/?view=revision&revision=1721213.

@Xavier: for the spaces around, I think it's spotted by pology or automatically updated. Can you check if it can ignore the desktop files?
Comment 2 Xavier Besnard 2025-11-02 16:28:21 UTC
Hi.
Concerning the raised issue:
@Johnny: The generic rule is to put an unbreakable space before certain characters and a space after. This applies at least to ':', '?' and '';'

This point is documented in : https://community.kde.org/KDE_Localization/fr/grammaire
   * Les ponctuations fortes (dites aussi doubles) sont : ; ? ! qui nécessitent : un espace insécable avant et un espace après ;

Currently, all strings are subject to this rule and I check translations accordingly. 
May be, this point should be reviewed and the tool updated accordingly.

Waiting for further guidance or tool modifications.
Regards. Xavier
Comment 3 Jazeix Johnny 2025-11-02 18:51:36 UTC
(In reply to Xavier Besnard from comment #2)
> Hi.
> Concerning the raised issue:
> @Johnny: The generic rule is to put an unbreakable space before certain
> characters and a space after. This applies at least to ':', '?' and '';'
> 
> This point is documented in :
> https://community.kde.org/KDE_Localization/fr/grammaire
>    * Les ponctuations fortes (dites aussi doubles) sont : ; ? ! qui
> nécessitent : un espace insécable avant et un espace après ;
> 
> Currently, all strings are subject to this rule and I check translations
> accordingly. 
> May be, this point should be reviewed and the tool updated accordingly.
> 
> Waiting for further guidance or tool modifications.
> Regards. Xavier

From what I understand, in the desktop files, we have a list of keywords splitted by ";" which are used by different tools to be able to filter/search per keywords. If I take one file randomly: https://invent.kde.org/graphics/koko/-/blob/master/src/org.kde.koko.desktop?ref_type=heads#L121-152.
In this case, we don't need to have the extra spaces (it is not a sentence). I'm not sure how the different keyword parsers work, if the spaces are totally ignored (in which case, we should not care) or if they can cause misses when searching (in this case, we should remove them).
Logically, I would say parsers do a grep in the list elements so spaces should be ignored.