Commit 6557c6b4 authored by Harald Sitter's avatar Harald Sitter 🏳🌈
Browse files

smb: fix wsdiscovery unknown device fallback string

Summary:
wasn't using xi18n so <resource> wasn't parsed as markup but rather used
verbatim. also was missing the argument for %1 so the host address wasn't
included

Test Plan: computer.clear() just prior now results in expected "Unknown device @ "::1"" names for the entries

Reviewers: ngraham

Reviewed By: ngraham

Subscribers: kde-frameworks-devel, kfm-devel

Tags: #dolphin, #frameworks

Differential Revision: https://phabricator.kde.org/D27900
parent 1eacae52
......@@ -165,8 +165,9 @@ public:
}
if (computer.isEmpty()) {
computer = i18nc("host entry when no pretty name is available. %1 likely is an IP address",
"Unknown Device @ <resource>%1</resource>");
computer = xi18nc("host entry when no pretty name is available. %1 likely is an IP address",
"Unknown Device @ <resource>%1</resource>",
m_endpointUrl.host());
}
m_discovery.reset(new WSDiscovery(computer, m_endpointUrl.host()));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment