Skip to content

Commit

Permalink
QStandardPaths: Add translation comment for macOS-specific item
Browse files Browse the repository at this point in the history
Pick-to: 6.1
Change-Id: Idde81ee9badb41ff7893dcbdfd39ec4cb8db9742
Reviewed-by: Tor Arne Vestbø <[email protected]>
Reviewed-by: Oswald Buddenhagen <[email protected]>
  • Loading branch information
FriedemannKleint committed Feb 24, 2021
1 parent ea1c35d commit f0cc9f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/corelib/io/qstandardpaths_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,10 @@ static QString baseWritableLocation(QStandardPaths::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)
Expand Down

0 comments on commit f0cc9f1

Please sign in to comment.