Bug 510873 - Conversions don't all work outside of English
Summary: Conversions don't all work outside of English
Status: RESOLVED FIXED
Alias: None
Product: krunner
Classification: Plasma
Component: converter (other bugs)
Version First Reported In: 6.4.5
Platform: Arch Linux Linux
: HI normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
: 518099 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-10-21 16:31 UTC by Xavier Lukhas
Modified: 2026-09-17 21:20 UTC (History)
6 users (show)

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


Attachments
Example of the issue (219.29 KB, image/png)
2025-10-21 16:31 UTC, Xavier Lukhas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Xavier Lukhas 2025-10-21 16:31:08 UTC
Created attachment 185967 [details]
Example of the issue

SUMMARY
Krunner Converter doesn't work consistently in French unless you use the "-> =" syntax, such as "62km -> mi =", in which case the calculator plugin takes over and does the conversion instead. It works for currencies regardless of whether I'm using English or French, but length, speed, weight/mass, etc are a no-go. It works fine overall for all units I've come across in English though.

STEPS TO REPRODUCE
1. Switch language to French ;
2. Run krunner with the converter plugin enabled ;
3. Type a string to convert such as "50km", "50km to mi" (English), or "50km en mi" (French).

OBSERVED RESULT
No output.

EXPECTED RESULT
Units to be converted.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: plasma-desktop 6.4.5-4
KDE Frameworks Version: frameworkintegration 6.19.0-1
KDE Addons version : kdeplasma-addons 6.4.5-1

ADDITIONAL INFORMATION
The "50km en mi" syntax is what is suggested on the wiki page.
https://userbase.kde.org/Plasma/Krunner/fr

I'm sure you're aware that it's not the only plugin that basically works only in English. The dictionary also only defines English words, even though the keyword for it is in the users language (like "définir" in French instead of "define"). Not sure if it's a bug or just unsupported overall, albeit a bit misleading for a new user who I suppose wouldn't expect that.

Also, happy 6.5 release day, you guys rock!
Comment 1 Nate Graham 2025-10-23 15:13:43 UTC
I can reproduce the issue. Some things do work though. For example "50 eur" shows currency conversions as expected.
Comment 2 Nate Graham 2026-09-01 17:39:43 UTC
*** Bug 518099 has been marked as a duplicate of this bug. ***
Comment 3 Tobias Fella 2026-09-14 12:17:49 UTC
This is specifically the french translations having a bug: there's a text that's supposed to be the french version of "in;to;as", which was turned into "dans ; vers ; en tant que" (note the spaces around the semicolons). The code was not prepared to handle that :)

https://invent.kde.org/plasma/kdeplasma-addons/-/merge_requests/1128 makes the translation clearer and handles the case of the spaces, so it should work in 6.8.

Also, "en" is not in that list (only "en tant que"). My french isn't good enough to judge whether it should be. If it should be there, please add it (or request it from the french translators). There can also be more than three variants in that list.
Comment 4 Xavier Lukhas 2026-09-14 12:50:11 UTC
(In reply to Tobias Fella from comment #3)
> This is specifically the french translations having a bug: there's a text
> that's supposed to be the french version of "in;to;as", which was turned
> into "dans ; vers ; en tant que" (note the spaces around the semicolons).
> The code was not prepared to handle that :)
> 
> https://invent.kde.org/plasma/kdeplasma-addons/-/merge_requests/1128 makes
> the translation clearer and handles the case of the spaces, so it should
> work in 6.8.
> 
> Also, "en" is not in that list (only "en tant que"). My french isn't good
> enough to judge whether it should be. If it should be there, please add it
> (or request it from the french translators). There can also be more than
> three variants in that list.

Hello,

Without context the translation makes sense... Which means it doesn't in context. "Dans" is more like "inside", "en tant que" would likely be followed by a role/person (ex. : "As a developer"/"en tant que développeur"), and "vers" translates a bit better to "towards" + a geographical direction. If there are official KDE French translators, perhaps I could redirect the request for verification to them. I'm unsure where I should ask however.
Comment 5 Tobias Fella 2026-09-15 11:51:40 UTC
Git commit 0e2ce8cdfed7c88f7af9e789510d57c854b86607 by Tobias Fella.
Committed on 15/09/2026 at 11:40.
Pushed by tfella into branch 'master'.

Work around french translations breaking the converter runner

And make the translation context more explicit to prevent this issue in the future.

M  +7    -2    runners/converter/converterrunner.cpp

https://invent.kde.org/plasma/kdeplasma-addons/-/commit/0e2ce8cdfed7c88f7af9e789510d57c854b86607