Bug 518289 - [Openconnect] translation of machine private key is missleading due to duplicate text strings
Summary: [Openconnect] translation of machine private key is missleading due to duplic...
Status: RESOLVED FIXED
Alias: None
Product: i18n
Classification: Translations
Component: general (other bugs)
Version First Reported In: unspecified
Platform: CachyOS Linux
: NOR minor
Target Milestone: ---
Assignee: Albert Astals Cid
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-03-29 08:59 UTC by assassintee
Modified: 2026-04-02 23:59 UTC (History)
4 users (show)

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


Attachments
Screenshot of network manager configuration of open connect (35.06 KB, image/png)
2026-03-29 08:59 UTC, assassintee
Details

Note You need to log in before you can comment on or make changes to this bug.
Description assassintee 2026-03-29 08:59:19 UTC
Created attachment 191104 [details]
Screenshot of network manager configuration of open connect

The german translation of machine private key is missleading, it contains the field for "Privater Schlüssel" twice (see attachment). This issue comes from https://gitlab.com/openconnect/openconnect-gui/-/work_items/421

Ideally the translation for the second key in the screenshot would be "Privater Maschinen-Schlüssel".

Forgive me if this is still the wrong place for the issue. If it is please lead me to the right place
Comment 1 AlexB 2026-03-29 21:36:09 UTC
There are two identical strings "Private Key:" in plasma-nm, see lines
https://invent.kde.org/plasma/plasma-nm/-/blob/master/vpn/openconnect/openconnectprop.ui?ref_type=heads#L261
and
https://invent.kde.org/plasma/plasma-nm/-/blob/master/vpn/openconnect/openconnectprop.ui?ref_type=heads#L299
with different meaning:
- first one belongs to machine (my assumption)
- second one belongs to user certificate (my assumption)
Those two identical strings are extracted as only one string into template file for translation:
https://invent.kde.org/localization/l10n-templates/-/blob/master/summit/messages/plasma-nm/plasmanetworkmanagement_openconnectui.pot?ref_type=heads#L337
This you could see in comment line
https://invent.kde.org/localization/l10n-templates/-/blob/master/summit/messages/plasma-nm/plasmanetworkmanagement_openconnectui.pot?ref_type=heads#L335
This issue affects all languages, because all are using same template file for translation.
Please rename strings
https://invent.kde.org/plasma/plasma-nm/-/blob/master/vpn/openconnect/openconnectprop.ui?ref_type=heads#L261
and
https://invent.kde.org/plasma/plasma-nm/-/blob/master/vpn/openconnect/openconnectprop.ui?ref_type=heads#L299
to make them unique, e. g. by adding "Machine" and "User" to those strings.
Comment 2 TraceyC 2026-03-31 17:11:20 UTC
Thanks for the bug report, and the detailed analysis.

Moving to the translations project
Comment 3 AlexB 2026-03-31 19:42:15 UTC
(In reply to AlexB from comment #1)
> There are two identical strings "Private Key:" in plasma-nm, see lines
> https://invent.kde.org/plasma/plasma-nm/-/blob/master/vpn/openconnect/
> openconnectprop.ui?ref_type=heads#L261
> and
> https://invent.kde.org/plasma/plasma-nm/-/blob/master/vpn/openconnect/
> openconnectprop.ui?ref_type=heads#L299
> with different meaning:
> - first one belongs to machine (my assumption)
> - second one belongs to user certificate (my assumption)
> Those two identical strings are extracted as only one string into template
> file for translation:
> https://invent.kde.org/localization/l10n-templates/-/blob/master/summit/
> messages/plasma-nm/plasmanetworkmanagement_openconnectui.
> pot?ref_type=heads#L337
> This you could see in comment line
> https://invent.kde.org/localization/l10n-templates/-/blob/master/summit/
> messages/plasma-nm/plasmanetworkmanagement_openconnectui.
> pot?ref_type=heads#L335
> This issue affects all languages, because all are using same template file
> for translation.
> Please rename strings
> https://invent.kde.org/plasma/plasma-nm/-/blob/master/vpn/openconnect/
> openconnectprop.ui?ref_type=heads#L261
> and
> https://invent.kde.org/plasma/plasma-nm/-/blob/master/vpn/openconnect/
> openconnectprop.ui?ref_type=heads#L299
> to make them unique, e. g. by adding "Machine" and "User" to those strings.

MR created: https://invent.kde.org/plasma/plasma-nm/-/merge_requests/549
Comment 4 AlexB 2026-03-31 22:13:38 UTC
Git commit ef4605710d6dd20f10f970a973e352877be0199a by Alexander Becker.
Committed on 31/03/2026 at 19:32.
Pushed by aacid into branch 'master'.

Make two identical strings from connect dialog distinguishable from each other

String "Private Key:" shown twice in OpenConnect dialog, see https://bugsfiles.kde.org/attachment.cgi?id=191104
Also during translation to other languages it cannot be differentiated, because both strings will be extracted to one single string,
see https://invent.kde.org/localization/l10n-templates/-/blob/master/summit/messages/plasma-nm/plasmanetworkmanagement_openconnectui.pot?ref_type=heads#L337
Only the comment in translation template shows where the string comes from: #: openconnectprop.ui:261 openconnectprop.ui:299
Current MR adds "Machine " respectively "User " to those strings to make clear to the user which field in the dialog is intended for which input.

M  +2    -2    vpn/openconnect/openconnectprop.ui

https://invent.kde.org/plasma/plasma-nm/-/commit/ef4605710d6dd20f10f970a973e352877be0199a