fix: fix emptyChat text not being translated or translatable

This commit is contained in:
Jonathan Rainville 2020-10-26 11:56:48 -04:00
parent e6ae202510
commit 8ce51cfa7a
1 changed files with 12 additions and 8 deletions

View File

@ -18,14 +18,18 @@ Item {
}
StyledText {
//% "Share your chat key"
text: `<a href="shareKey" style="color:${Style.current.blue};text-decoration:none;">${qsTrId("share-your-chat-key")}</a>` +
//% "or"
` ${qsTrId("or")} ` +
//% "invite"
`<a href="invite" style="color:${Style.current.blue};text-decoration:none">${qsTrId("invite")}</a>`+
//% "friends to start messaging in Status"
` ${qsTrId("friends-to-start-messaging-in-status")}`
text: `<a href="shareKey" style="color:${Style.current.blue};text-decoration:none;">` +
//% "Share your chat key"
qsTrId("share-your-chat-key")
+ '</a> ' +
//% "or"
qsTrId("or")
+ ` <a href="invite" style="color:${Style.current.blue};text-decoration:none;">` +
//% "invite"
qsTrId("invite")
+ '</a> ' +
//% "friends to start messaging in Status"
qsTrId("friends-to-start-messaging-in-status")
textFormat: Text.RichText
wrapMode: Text.WordWrap
horizontalAlignment: Text.AlignHCenter