diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-02-24 11:09:36 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-02-24 13:17:33 +0100 |
commit | f0cc9f10da408a142eea685f9991ffd3cbcb1501 (patch) | |
tree | 8bd5abe669edb5ffbc7c68546f29eaa1b3a73d66 /src/corelib/io/qstandardpaths_mac.mm | |
parent | ea1c35d5578e978b743350bc6ab7c61c50152ca6 (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.mm | 4 |
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) |