Use i18n is a more KDE-like manner, other wise debug builds of kdelibs produce (I18N_ARGUMENT_MISSING)
BUG: 254
This commit is contained in:
committed by
craig.p.drummond
parent
7b7f35aa95
commit
f0bad94c9c
@@ -37,13 +37,13 @@ static int isIfaceType(const QNetworkInterface &iface, const QString &prefix)
|
||||
static QString displayName(const QNetworkInterface &iface)
|
||||
{
|
||||
if (iface.name()=="lo") {
|
||||
return i18n("Local loopback (%1)").arg(iface.name());
|
||||
return i18n("Local loopback (%1)", iface.name());
|
||||
}
|
||||
if (isIfaceType(iface, "eth")) {
|
||||
return i18n("Wired (%1)").arg(iface.name());
|
||||
return i18n("Wired (%1)", iface.name());
|
||||
}
|
||||
if (isIfaceType(iface, "wlan")) {
|
||||
return i18n("Wireless (%1)").arg(iface.name());
|
||||
return i18n("Wireless (%1)", iface.name());
|
||||
}
|
||||
return iface.name();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user