From f0cc9f10da408a142eea685f9991ffd3cbcb1501 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Wed, 24 Feb 2021 11:09:36 +0100 Subject: QStandardPaths: Add translation comment for macOS-specific item MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pick-to: 6.1 Change-Id: Idde81ee9badb41ff7893dcbdfd39ec4cb8db9742 Reviewed-by: Tor Arne Vestbø Reviewed-by: Oswald Buddenhagen --- src/corelib/io/qstandardpaths_mac.mm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/corelib/io/qstandardpaths_mac.mm') 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) -- cgit v1.2.3