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:
parent
ff10696d76
commit
5be74d220a
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user