forked from qt-creator/qt-creator
Utils: Tr::tr
Change-Id: Ic03e20993f05fb5b49a12c891d86afb2c8e18e08 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -827,14 +827,13 @@ QString FilePath::displayName(const QString &args) const
|
||||
if (deviceName.isEmpty())
|
||||
return fullPath;
|
||||
|
||||
return QCoreApplication::translate("Utils::FileUtils", "%1 on %2", "File on device")
|
||||
.arg(fullPath, deviceName);
|
||||
return Tr::tr("%1 on %2", "File on device").arg(fullPath, deviceName);
|
||||
}
|
||||
|
||||
if (deviceName.isEmpty())
|
||||
return fullPath + ' ' + args;
|
||||
|
||||
return QCoreApplication::translate("Utils::FileUtils", "%1 %2 on %3", "File and args on device")
|
||||
return Tr::tr("%1 %2 on %3", "File and args on device")
|
||||
.arg(fullPath, args, deviceName);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user