remove unnecessary .arg (+warnings)
This commit is contained in:
parent
b48ca728d2
commit
8181e17fa2
5 changed files with 9 additions and 9 deletions
|
@ -178,7 +178,7 @@ Item {
|
|||
Label {
|
||||
id: optionVoterPercentage
|
||||
font.pixelSize: Theme.fontSizeTiny
|
||||
text: qsTr("%Ln\%", "% of votes for option").arg(modelData.vote_percentage)
|
||||
text: qsTr("%Ln\%", "% of votes for option", modelData.vote_percentage)
|
||||
horizontalAlignment: Text.AlignRight
|
||||
anchors {
|
||||
right: parent.right
|
||||
|
@ -226,7 +226,7 @@ Item {
|
|||
id: totalVoterCount
|
||||
font.pixelSize: Theme.fontSizeTiny
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
text: qsTr("%Ln vote(s) total", "number of total votes", pollData.total_voter_count).arg(pollData.total_voter_count)
|
||||
text: qsTr("%Ln vote(s) total", "number of total votes", pollData.total_voter_count)
|
||||
width: contentWidth
|
||||
height: contentHeight
|
||||
horizontalAlignment: Text.AlignRight
|
||||
|
|
|
@ -67,7 +67,7 @@ Page {
|
|||
}
|
||||
PropertyChanges {
|
||||
target: chatStatusText
|
||||
text: qsTr("%Ln messages selected", "number of messages selected", chatPage.selectedMessages.length).arg(chatPage.selectedMessages.length)
|
||||
text: qsTr("%Ln messages selected", "number of messages selected", chatPage.selectedMessages.length)
|
||||
}
|
||||
PropertyChanges {
|
||||
target: selectedMessagesActions
|
||||
|
|
|
@ -193,7 +193,7 @@ Dialog {
|
|||
placeholderText: qsTr("Enter your question here")
|
||||
property int charactersLeft: 255 - text.length
|
||||
color: charactersLeft < 0 ? Theme.errorColor : Theme.highlightColor
|
||||
label: qsTr("Question (%Ln characters left)", "", charactersLeft).arg(charactersLeft)
|
||||
label: qsTr("Question (%Ln characters left)", "", charactersLeft)
|
||||
wrapMode: TextEdit.Wrap
|
||||
onFocusChanged: {
|
||||
validate();
|
||||
|
@ -253,7 +253,7 @@ Dialog {
|
|||
placeholderText: qsTr("Enter an answer here")
|
||||
property int charactersLeft: 100 - text.length
|
||||
color: charactersLeft < 0 ? Theme.errorColor : Theme.highlightColor
|
||||
label: qsTr("Answer (%Ln characters left)", "", charactersLeft).arg(charactersLeft)
|
||||
label: qsTr("Answer (%Ln characters left)", "", charactersLeft)
|
||||
property bool hasNextOption: index < pollCreationPage.options.count - 1
|
||||
EnterKey.onClicked: {
|
||||
if(hasNextOption) {
|
||||
|
|
|
@ -56,7 +56,7 @@ Page {
|
|||
PageHeader {
|
||||
id: pageHeader
|
||||
title: pollResultsPage.isQuiz ? qsTr("Quiz Results") : qsTr("Poll Results")
|
||||
description: qsTr("%Ln vote(s) total", "number of total votes", pollData.total_voter_count).arg(pollData.total_voter_count)
|
||||
description: qsTr("%Ln vote(s) total", "number of total votes", pollData.total_voter_count)
|
||||
leftMargin: headerPictureThumbnail.width + Theme.paddingLarge + Theme.horizontalPageMargin
|
||||
ProfileThumbnail {
|
||||
id: headerPictureThumbnail
|
||||
|
@ -205,7 +205,7 @@ Page {
|
|||
Label {
|
||||
id: optionVoterCount
|
||||
font.pixelSize: Theme.fontSizeTiny
|
||||
text: modelData.is_chosen ? qsTr("%Ln vote(s) including yours", "number of votes for option", modelData.voter_count).arg(modelData.voter_count) : qsTr("%Ln vote(s)", "number of votes for option", modelData.voter_count).arg(modelData.voter_count)
|
||||
text: modelData.is_chosen ? qsTr("%Ln vote(s) including yours", "number of votes for option", modelData.voter_count) : qsTr("%Ln vote(s)", "number of votes for option", modelData.voter_count)
|
||||
anchors {
|
||||
left: parent.left
|
||||
right: parent.horizontalCenter
|
||||
|
@ -216,7 +216,7 @@ Page {
|
|||
Label {
|
||||
id: optionVoterPercentage
|
||||
font.pixelSize: Theme.fontSizeTiny
|
||||
text: qsTr("%Ln\%", "% of votes for option").arg(modelData.vote_percentage)
|
||||
text: qsTr("%Ln\%", "% of votes for option", modelData.vote_percentage)
|
||||
horizontalAlignment: Text.AlignRight
|
||||
anchors {
|
||||
right: parent.right
|
||||
|
|
|
@ -371,7 +371,7 @@ void NotificationManager::publishNotification(const NotificationGroup *notificat
|
|||
} else {
|
||||
// Either we have more than one notification or we have no content to display
|
||||
LOG("Group" << notificationGroup->notificationGroupId << "has" << notificationGroup->totalCount << "notifications");
|
||||
notificationBody = tr("%Ln unread messages", "", notificationGroup->totalCount).arg(notificationGroup->totalCount);
|
||||
notificationBody = tr("%Ln unread messages", "", notificationGroup->totalCount);
|
||||
}
|
||||
|
||||
nemoNotification->setBody(notificationBody);
|
||||
|
|
Loading…
Reference in a new issue