summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qstandardpaths_mac.mm
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2021-02-24 11:09:36 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2021-02-24 13:17:33 +0100
commitf0cc9f10da408a142eea685f9991ffd3cbcb1501 (patch)
tree8bd5abe669edb5ffbc7c68546f29eaa1b3a73d66 /src/corelib/io/qstandardpaths_mac.mm
parentea1c35d5578e978b743350bc6ab7c61c50152ca6 (diff)
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>
Diffstat (limited to 'src/corelib/io/qstandardpaths_mac.mm')
-rw-r--r--src/corelib/io/qstandardpaths_mac.mm4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/corelib/io/qstandardpaths_mac.mm b/src/corelib/io/qstandardpaths_mac.mm
index 11b5cc8c37..a95e6a3bb1 100644
--- a/src/corelib/io/qstandardpaths_mac.mm
+++ b/src/corelib/io/qstandardpaths_mac.mm
@@ -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)