QStandardPaths: Add translation comment for macOS-specific item
Pick-to: 6.1 Change-Id: Idde81ee9badb41ff7893dcbdfd39ec4cb8db9742 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
This commit is contained in:
parent
ea1c35d557
commit
f0cc9f10da
@ -230,8 +230,10 @@ QString QStandardPaths::displayName(StandardLocation type)
|
||||
// The temporary directory returned by the old Carbon APIs is ~/Library/Caches/TemporaryItems,
|
||||
// the display name of which ("TemporaryItems") isn't translated by the system. The standard
|
||||
// temporary directory has no reasonable display name either, so use something more sensible.
|
||||
if (QStandardPaths::TempLocation == type)
|
||||
if (QStandardPaths::TempLocation == type) {
|
||||
//: macOS: Temporary directory
|
||||
return QCoreApplication::translate("QStandardPaths", "Temporary Items");
|
||||
}
|
||||
|
||||
// standardLocations() may return an empty list on some platforms
|
||||
if (QStandardPaths::ApplicationsLocation == type)
|
||||
|
Loading…
x
Reference in New Issue
Block a user