QStandardPaths: Add translation comment for macOS-specific item

Change-Id: Idde81ee9badb41ff7893dcbdfd39ec4cb8db9742
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
(cherry picked from commit f0cc9f10da408a142eea685f9991ffd3cbcb1501)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Friedemann Kleint 2021-02-24 11:09:36 +01:00 committed by Qt Cherry-pick Bot
parent ff10696d76
commit 5be74d220a

View File

@ -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)