aboutsummaryrefslogtreecommitdiffstats
path: root/examples/core/permissions/Main.qml
diff options
context:
space:
mode:
authorJan Arve Sæther <jan-arve.saether@qt.io>2025-10-15 10:38:40 +0200
committerJan Arve Sæther <jan-arve.saether@qt.io>2025-10-27 10:17:37 +0200
commit1ee6bc3aa2b650b7120a53a4559515d53f13cc9f (patch)
treeab07fd94b5430857274aefce56b083711ce401f4 /examples/core/permissions/Main.qml
parent30b4419e112643775e788e51fd460fe267093707 (diff)
Don't use JS placeholders inside qsTr() calls
Using JS placeholders inside qsTr() is a bad practice, and makes translations impossible Change-Id: I08dffd1a718a7112a8e426a013419578ec2f16f0 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'examples/core/permissions/Main.qml')
-rw-r--r--examples/core/permissions/Main.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/core/permissions/Main.qml b/examples/core/permissions/Main.qml
index 5d2aeaa16f..4bc861312a 100644
--- a/examples/core/permissions/Main.qml
+++ b/examples/core/permissions/Main.qml
@@ -55,7 +55,7 @@ Window {
readonly property string statusAsString: locationPermission.status === Qt.Granted ? qsTr("Granted") :
locationPermission.status === Qt.Undetermined ? qsTr("Undetermined")
: qsTr("Denied")
- text: qsTr(`Location services, status: ${statusAsString}`)
+ text: qsTr("Location services, status: %1").arg(statusAsString)
font.bold: true
font.pointSize: 16