%n → %Ln; remove more .arg()

This commit is contained in:
John Gibbon 2020-11-19 09:42:28 +01:00
parent 8181e17fa2
commit 616658ab35
12 changed files with 185 additions and 121 deletions

View file

@ -1299,7 +1299,7 @@ Page {
}
onClicked: {
Clipboard.text = Functions.getMessagesArrayText(chatPage.selectedMessages);
appNotification.show(qsTr("%n messages have been copied", "", selectedMessages.length).arg(selectedMessages.length));
appNotification.show(qsTr("%Ln messages have been copied", "", selectedMessages.length));
chatPage.selectedMessages = [];
}
}
@ -1323,7 +1323,7 @@ Page {
var chatId = chatInformation.id
pageStack.push(Qt.resolvedUrl("../pages/ChatSelectionPage.qml"), {
myUserId: chatPage.myUserId,
headerDescription: qsTr("Forward %n messages", "dialog header", ids.length).arg(ids.length),
headerDescription: qsTr("Forward %Ln messages", "dialog header", ids.length),
payload: {fromChatId: chatId, messageIds:ids, neededPermissions: neededPermissions},
state: "forwardMessages"
})
@ -1347,7 +1347,7 @@ Page {
var ids = Functions.getMessagesArrayIds(selectedMessages);
var chatId = chatInformation.id
var wrapper = tdLibWrapper;
Remorse.popupAction(chatPage, qsTr("%n Messages deleted", "", ids.length).arg(ids.length), function() {
Remorse.popupAction(chatPage, qsTr("%Ln Messages deleted", "", ids.length), function() {
wrapper.deleteMessages(chatId, ids);
});
chatPage.selectedMessages = [];

View file

@ -334,25 +334,25 @@
<translation>Nachrichtenauswahl</translation>
</message>
<message numerus="yes">
<source>%n Messages deleted</source>
<source>%Ln Messages deleted</source>
<translation>
<numerusform>%n Nachrichten gelöscht</numerusform>
<numerusform>%Ln Nachrichten gelöscht</numerusform>
<numerusform></numerusform>
</translation>
</message>
<message numerus="yes">
<source>%n messages have been copied</source>
<source>%Ln messages have been copied</source>
<translation>
<numerusform>%n Nachrichten wurden kopiert</numerusform>
<numerusform>%Ln Nachrichten wurden kopiert</numerusform>
<numerusform></numerusform>
</translation>
</message>
<message numerus="yes">
<source>Forward %n messages</source>
<source>Forward %Ln messages</source>
<comment>dialog header</comment>
<translation>
<numerusform>%n Nachricht weiterleiten</numerusform>
<numerusform>%n Nachrichten weiterleiten</numerusform>
<numerusform>%Ln Nachricht weiterleiten</numerusform>
<numerusform>%Ln Nachrichten weiterleiten</numerusform>
</translation>
</message>
<message numerus="yes">
@ -1045,10 +1045,13 @@
</context>
<context>
<name>PollPreview</name>
<message>
<message numerus="yes">
<source>%Ln%</source>
<comment>% of votes for option</comment>
<translation>%Ln%</translation>
<translation>
<numerusform>%Ln%</numerusform>
<numerusform>%Ln%</numerusform>
</translation>
</message>
<message>
<source>Final Result:</source>
@ -1111,10 +1114,13 @@
<numerusform>%Ln Antworten</numerusform>
</translation>
</message>
<message>
<message numerus="yes">
<source>%Ln%</source>
<comment>% of votes for option</comment>
<translation>%Ln%</translation>
<translation>
<numerusform>%Ln%</numerusform>
<numerusform>%Ln%</numerusform>
</translation>
</message>
<message>
<source>Chosen by:</source>

View file

@ -334,25 +334,25 @@
<translation>Select Messages</translation>
</message>
<message numerus="yes">
<source>%n Messages deleted</source>
<source>%Ln Messages deleted</source>
<translation>
<numerusform>%n Message deleted</numerusform>
<numerusform>%n Messages deleted</numerusform>
<numerusform>%Ln Message deleted</numerusform>
<numerusform>%Ln Messages deleted</numerusform>
</translation>
</message>
<message numerus="yes">
<source>%n messages have been copied</source>
<source>%Ln messages have been copied</source>
<translation>
<numerusform>%n message has been copied</numerusform>
<numerusform>%n messages have been copied</numerusform>
<numerusform>%Ln message has been copied</numerusform>
<numerusform>%Ln messages have been copied</numerusform>
</translation>
</message>
<message numerus="yes">
<source>Forward %n messages</source>
<source>Forward %Ln messages</source>
<comment>dialog header</comment>
<translation>
<numerusform>Forward %n message</numerusform>
<numerusform>Forward %n messages</numerusform>
<numerusform>Forward %Ln message</numerusform>
<numerusform>Forward %Ln messages</numerusform>
</translation>
</message>
<message numerus="yes">
@ -1045,10 +1045,13 @@
</context>
<context>
<name>PollPreview</name>
<message>
<message numerus="yes">
<source>%Ln%</source>
<comment>% of votes for option</comment>
<translation>%Ln%</translation>
<translation>
<numerusform>%Ln%</numerusform>
<numerusform>%Ln%</numerusform>
</translation>
</message>
<message>
<source>Final Result:</source>
@ -1111,10 +1114,13 @@
<numerusform>%Ln votes</numerusform>
</translation>
</message>
<message>
<message numerus="yes">
<source>%Ln%</source>
<comment>% of votes for option</comment>
<translation>%Ln%</translation>
<translation>
<numerusform>%Ln%</numerusform>
<numerusform>%Ln%</numerusform>
</translation>
</message>
<message>
<source>Chosen by:</source>

View file

@ -329,22 +329,22 @@
<translation>Seleccionar mensajes</translation>
</message>
<message numerus="yes">
<source>%n Messages deleted</source>
<source>%Ln Messages deleted</source>
<translation>
<numerusform>%n Mensajes borrados</numerusform>
<numerusform>%Ln Mensajes borrados</numerusform>
</translation>
</message>
<message numerus="yes">
<source>%n messages have been copied</source>
<source>%Ln messages have been copied</source>
<translation>
<numerusform>%n se han copiado los mensajes</numerusform>
<numerusform>%Ln se han copiado los mensajes</numerusform>
</translation>
</message>
<message numerus="yes">
<source>Forward %n messages</source>
<source>Forward %Ln messages</source>
<comment>dialog header</comment>
<translation>
<numerusform>Reenviar %n mensajes</numerusform>
<numerusform>Reenviar %Ln mensajes</numerusform>
</translation>
</message>
<message numerus="yes">
@ -1032,10 +1032,12 @@
</context>
<context>
<name>PollPreview</name>
<message>
<message numerus="yes">
<source>%Ln%</source>
<comment>% of votes for option</comment>
<translation>%Ln%</translation>
<translation type="unfinished">
<numerusform>%Ln%</numerusform>
</translation>
</message>
<message>
<source>Final Result:</source>
@ -1095,10 +1097,12 @@
<numerusform>%Ln votos</numerusform>
</translation>
</message>
<message>
<message numerus="yes">
<source>%Ln%</source>
<comment>% of votes for option</comment>
<translation>%Ln%</translation>
<translation type="unfinished">
<numerusform>%Ln%</numerusform>
</translation>
</message>
<message>
<source>Chosen by:</source>

View file

@ -334,21 +334,21 @@
<translation type="unfinished"></translation>
</message>
<message numerus="yes">
<source>%n Messages deleted</source>
<source>%Ln Messages deleted</source>
<translation type="unfinished">
<numerusform></numerusform>
<numerusform></numerusform>
</translation>
</message>
<message numerus="yes">
<source>%n messages have been copied</source>
<source>%Ln messages have been copied</source>
<translation type="unfinished">
<numerusform></numerusform>
<numerusform></numerusform>
</translation>
</message>
<message numerus="yes">
<source>Forward %n messages</source>
<source>Forward %Ln messages</source>
<comment>dialog header</comment>
<translation type="unfinished">
<numerusform></numerusform>
@ -998,8 +998,8 @@
<message numerus="yes">
<source>Question (%Ln characters left)</source>
<translation>
<numerusform>Kysymys (%n merkki jäljellä)</numerusform>
<numerusform>Kysymys (%n merkkiä jäljellä)</numerusform>
<numerusform>Kysymys (%Ln merkki jäljellä)</numerusform>
<numerusform>Kysymys (%Ln merkkiä jäljellä)</numerusform>
</translation>
</message>
<message>
@ -1014,8 +1014,8 @@
<message numerus="yes">
<source>Answer (%Ln characters left)</source>
<translation>
<numerusform>Vastaus (%n merkki jäljellä)</numerusform>
<numerusform>Vastaus (%n merkkiä jäljellä)</numerusform>
<numerusform>Vastaus (%Ln merkki jäljellä)</numerusform>
<numerusform>Vastaus (%Ln merkkiä jäljellä)</numerusform>
</translation>
</message>
<message>
@ -1046,10 +1046,13 @@
</context>
<context>
<name>PollPreview</name>
<message>
<message numerus="yes">
<source>%Ln%</source>
<comment>% of votes for option</comment>
<translation>%Ln%</translation>
<translation type="unfinished">
<numerusform>%Ln%</numerusform>
<numerusform></numerusform>
</translation>
</message>
<message>
<source>Final Result:</source>
@ -1112,10 +1115,13 @@
<numerusform>%Ln ääntä</numerusform>
</translation>
</message>
<message>
<message numerus="yes">
<source>%Ln%</source>
<comment>% of votes for option</comment>
<translation>%Ln%</translation>
<translation type="unfinished">
<numerusform>%Ln%</numerusform>
<numerusform></numerusform>
</translation>
</message>
<message>
<source>Chosen by:</source>

View file

@ -329,19 +329,19 @@
<translation type="unfinished"></translation>
</message>
<message numerus="yes">
<source>%n Messages deleted</source>
<source>%Ln Messages deleted</source>
<translation type="unfinished">
<numerusform></numerusform>
</translation>
</message>
<message numerus="yes">
<source>%n messages have been copied</source>
<source>%Ln messages have been copied</source>
<translation type="unfinished">
<numerusform></numerusform>
</translation>
</message>
<message numerus="yes">
<source>Forward %n messages</source>
<source>Forward %Ln messages</source>
<comment>dialog header</comment>
<translation type="unfinished">
<numerusform></numerusform>
@ -1032,10 +1032,12 @@
</context>
<context>
<name>PollPreview</name>
<message>
<message numerus="yes">
<source>%Ln%</source>
<comment>% of votes for option</comment>
<translation type="unfinished"></translation>
<translation type="unfinished">
<numerusform></numerusform>
</translation>
</message>
<message>
<source>Final Result:</source>
@ -1095,10 +1097,12 @@
<numerusform></numerusform>
</translation>
</message>
<message>
<message numerus="yes">
<source>%Ln%</source>
<comment>% of votes for option</comment>
<translation type="unfinished"></translation>
<translation type="unfinished">
<numerusform></numerusform>
</translation>
</message>
<message>
<source>Chosen by:</source>

View file

@ -334,21 +334,21 @@
<translation type="unfinished"></translation>
</message>
<message numerus="yes">
<source>%n Messages deleted</source>
<source>%Ln Messages deleted</source>
<translation type="unfinished">
<numerusform></numerusform>
<numerusform></numerusform>
</translation>
</message>
<message numerus="yes">
<source>%n messages have been copied</source>
<source>%Ln messages have been copied</source>
<translation type="unfinished">
<numerusform></numerusform>
<numerusform></numerusform>
</translation>
</message>
<message numerus="yes">
<source>Forward %n messages</source>
<source>Forward %Ln messages</source>
<comment>dialog header</comment>
<translation type="unfinished">
<numerusform></numerusform>
@ -1045,10 +1045,13 @@
</context>
<context>
<name>PollPreview</name>
<message>
<message numerus="yes">
<source>%Ln%</source>
<comment>% of votes for option</comment>
<translation>%Ln%</translation>
<translation type="unfinished">
<numerusform>%Ln%</numerusform>
<numerusform></numerusform>
</translation>
</message>
<message>
<source>Final Result:</source>
@ -1111,10 +1114,13 @@
<numerusform>%Ln voti</numerusform>
</translation>
</message>
<message>
<message numerus="yes">
<source>%Ln%</source>
<comment>% of votes for option</comment>
<translation>%Ln%</translation>
<translation type="unfinished">
<numerusform>%Ln%</numerusform>
<numerusform></numerusform>
</translation>
</message>
<message>
<source>Chosen by:</source>

View file

@ -339,28 +339,28 @@
<translation>Wybierz wiadomości</translation>
</message>
<message numerus="yes">
<source>%n Messages deleted</source>
<source>%Ln Messages deleted</source>
<translation>
<numerusform>%n wiadomość została usunięta</numerusform>
<numerusform>%n wiadomości zostały usunięte</numerusform>
<numerusform>%n wiadomości zostało usunięte</numerusform>
<numerusform>%Ln wiadomość została usunięta</numerusform>
<numerusform>%Ln wiadomości zostały usunięte</numerusform>
<numerusform>%Ln wiadomości zostało usunięte</numerusform>
</translation>
</message>
<message numerus="yes">
<source>%n messages have been copied</source>
<source>%Ln messages have been copied</source>
<translation>
<numerusform>%n wiadomość została skopiowana</numerusform>
<numerusform>%n wiadomości zostały skopiowane</numerusform>
<numerusform>%n wiadomość zostało skopiowane</numerusform>
<numerusform>%Ln wiadomość została skopiowana</numerusform>
<numerusform>%Ln wiadomości zostały skopiowane</numerusform>
<numerusform>%Ln wiadomość zostało skopiowane</numerusform>
</translation>
</message>
<message numerus="yes">
<source>Forward %n messages</source>
<source>Forward %Ln messages</source>
<comment>dialog header</comment>
<translation>
<numerusform>Przekaż %n wiadomość</numerusform>
<numerusform>Przekaż %n wiadomości</numerusform>
<numerusform>Przekaż %n wiadomości</numerusform>
<numerusform>Przekaż %Ln wiadomość</numerusform>
<numerusform>Przekaż %Ln wiadomości</numerusform>
<numerusform>Przekaż %Ln wiadomości</numerusform>
</translation>
</message>
<message numerus="yes">
@ -1058,10 +1058,14 @@
</context>
<context>
<name>PollPreview</name>
<message>
<message numerus="yes">
<source>%Ln%</source>
<comment>% of votes for option</comment>
<translation>%Ln%</translation>
<translation type="unfinished">
<numerusform>%Ln%</numerusform>
<numerusform></numerusform>
<numerusform></numerusform>
</translation>
</message>
<message>
<source>Final Result:</source>
@ -1127,10 +1131,14 @@
<numerusform>%Ln głosów</numerusform>
</translation>
</message>
<message>
<message numerus="yes">
<source>%Ln%</source>
<comment>% of votes for option</comment>
<translation>%Ln%</translation>
<translation type="unfinished">
<numerusform>%Ln%</numerusform>
<numerusform></numerusform>
<numerusform></numerusform>
</translation>
</message>
<message>
<source>Chosen by:</source>

View file

@ -339,7 +339,7 @@
<translation type="unfinished"></translation>
</message>
<message numerus="yes">
<source>%n Messages deleted</source>
<source>%Ln Messages deleted</source>
<translation type="unfinished">
<numerusform></numerusform>
<numerusform></numerusform>
@ -347,7 +347,7 @@
</translation>
</message>
<message numerus="yes">
<source>%n messages have been copied</source>
<source>%Ln messages have been copied</source>
<translation type="unfinished">
<numerusform></numerusform>
<numerusform></numerusform>
@ -355,7 +355,7 @@
</translation>
</message>
<message numerus="yes">
<source>Forward %n messages</source>
<source>Forward %Ln messages</source>
<comment>dialog header</comment>
<translation type="unfinished">
<numerusform></numerusform>
@ -1058,10 +1058,14 @@
</context>
<context>
<name>PollPreview</name>
<message>
<message numerus="yes">
<source>%Ln%</source>
<comment>% of votes for option</comment>
<translation type="unfinished"></translation>
<translation type="unfinished">
<numerusform></numerusform>
<numerusform></numerusform>
<numerusform></numerusform>
</translation>
</message>
<message>
<source>Final Result:</source>
@ -1127,10 +1131,14 @@
<numerusform></numerusform>
</translation>
</message>
<message>
<message numerus="yes">
<source>%Ln%</source>
<comment>% of votes for option</comment>
<translation type="unfinished"></translation>
<translation type="unfinished">
<numerusform></numerusform>
<numerusform></numerusform>
<numerusform></numerusform>
</translation>
</message>
<message>
<source>Chosen by:</source>

View file

@ -334,25 +334,25 @@
<translation>Välj meddelanden</translation>
</message>
<message numerus="yes">
<source>%n Messages deleted</source>
<source>%Ln Messages deleted</source>
<translation>
<numerusform>%n meddelande borttaget</numerusform>
<numerusform>%n meddelanden borttagna</numerusform>
<numerusform>%Ln meddelande borttaget</numerusform>
<numerusform>%Ln meddelanden borttagna</numerusform>
</translation>
</message>
<message numerus="yes">
<source>%n messages have been copied</source>
<source>%Ln messages have been copied</source>
<translation>
<numerusform>%n meddelande har kopierats</numerusform>
<numerusform>%n meddelanden har kopierats</numerusform>
<numerusform>%Ln meddelande har kopierats</numerusform>
<numerusform>%Ln meddelanden har kopierats</numerusform>
</translation>
</message>
<message numerus="yes">
<source>Forward %n messages</source>
<source>Forward %Ln messages</source>
<comment>dialog header</comment>
<translation>
<numerusform>Vidarebefordra %n meddelande</numerusform>
<numerusform>Vidarebefordra %n meddelanden</numerusform>
<numerusform>Vidarebefordra %Ln meddelande</numerusform>
<numerusform>Vidarebefordra %Ln meddelanden</numerusform>
</translation>
</message>
<message numerus="yes">
@ -1053,10 +1053,13 @@
<source>Multiple Answers are allowed.</source>
<translation>Flera svarsalternativ tillåtna.</translation>
</message>
<message>
<message numerus="yes">
<source>%Ln%</source>
<comment>% of votes for option</comment>
<translation>%Ln%</translation>
<translation type="unfinished">
<numerusform>%Ln%</numerusform>
<numerusform></numerusform>
</translation>
</message>
<message numerus="yes">
<source>%Ln vote(s) total</source>
@ -1119,10 +1122,13 @@
<numerusform>%Ln röster</numerusform>
</translation>
</message>
<message>
<message numerus="yes">
<source>%Ln%</source>
<comment>% of votes for option</comment>
<translation>%Ln%</translation>
<translation type="unfinished">
<numerusform>%Ln%</numerusform>
<numerusform></numerusform>
</translation>
</message>
<message>
<source>Chosen by:</source>

View file

@ -329,22 +329,22 @@
<translation></translation>
</message>
<message numerus="yes">
<source>%n Messages deleted</source>
<source>%Ln Messages deleted</source>
<translation>
<numerusform> %n </numerusform>
<numerusform> %Ln </numerusform>
</translation>
</message>
<message numerus="yes">
<source>%n messages have been copied</source>
<source>%Ln messages have been copied</source>
<translation>
<numerusform> %n </numerusform>
<numerusform> %Ln </numerusform>
</translation>
</message>
<message numerus="yes">
<source>Forward %n messages</source>
<source>Forward %Ln messages</source>
<comment>dialog header</comment>
<translation>
<numerusform> %n </numerusform>
<numerusform> %Ln </numerusform>
</translation>
</message>
<message numerus="yes">
@ -1032,10 +1032,12 @@
</context>
<context>
<name>PollPreview</name>
<message>
<message numerus="yes">
<source>%Ln%</source>
<comment>% of votes for option</comment>
<translation>%Ln%</translation>
<translation type="unfinished">
<numerusform>%Ln%</numerusform>
</translation>
</message>
<message>
<source>Final Result:</source>
@ -1095,10 +1097,12 @@
<numerusform>%Ln </numerusform>
</translation>
</message>
<message>
<message numerus="yes">
<source>%Ln%</source>
<comment>% of votes for option</comment>
<translation>%Ln%</translation>
<translation type="unfinished">
<numerusform>%Ln%</numerusform>
</translation>
</message>
<message>
<source>Chosen by:</source>

View file

@ -334,25 +334,25 @@
<translation>Select Messages</translation>
</message>
<message numerus="yes">
<source>%n Messages deleted</source>
<source>%Ln Messages deleted</source>
<translation>
<numerusform>%n Message deleted</numerusform>
<numerusform>%n Messages deleted</numerusform>
<numerusform>%Ln Message deleted</numerusform>
<numerusform>%Ln Messages deleted</numerusform>
</translation>
</message>
<message numerus="yes">
<source>%n messages have been copied</source>
<source>%Ln messages have been copied</source>
<translation>
<numerusform>%n message has been copied</numerusform>
<numerusform>%n messages have been copied</numerusform>
<numerusform>%Ln message has been copied</numerusform>
<numerusform>%Ln messages have been copied</numerusform>
</translation>
</message>
<message numerus="yes">
<source>Forward %n messages</source>
<source>Forward %Ln messages</source>
<comment>dialog header</comment>
<translation>
<numerusform>Forward %n message</numerusform>
<numerusform>Forward %n messages</numerusform>
<numerusform>Forward %Ln message</numerusform>
<numerusform>Forward %Ln messages</numerusform>
</translation>
</message>
<message numerus="yes">
@ -1045,10 +1045,13 @@
</context>
<context>
<name>PollPreview</name>
<message>
<message numerus="yes">
<source>%Ln%</source>
<comment>% of votes for option</comment>
<translation>%Ln%</translation>
<translation>
<numerusform>%Ln%</numerusform>
<numerusform>%Ln%</numerusform>
</translation>
</message>
<message>
<source>Final Result:</source>
@ -1111,10 +1114,13 @@
<numerusform>%Ln votes</numerusform>
</translation>
</message>
<message>
<message numerus="yes">
<source>%Ln%</source>
<comment>% of votes for option</comment>
<translation>%Ln%</translation>
<translation>
<numerusform>%Ln%</numerusform>
<numerusform>%Ln%</numerusform>
</translation>
</message>
<message>
<source>Chosen by:</source>