Add command for invite,kick,ban and unban

This commit is contained in:
Nicolas Werner 2020-01-29 00:30:53 +01:00
parent 760d4ddef9
commit b0ff1baa1d
13 changed files with 877 additions and 145 deletions

View file

@ -333,7 +333,7 @@ if(USE_BUNDLED_MTXCLIENT)
FetchContent_Declare( FetchContent_Declare(
MatrixClient MatrixClient
GIT_REPOSITORY https://github.com/Nheko-Reborn/mtxclient.git GIT_REPOSITORY https://github.com/Nheko-Reborn/mtxclient.git
GIT_TAG 1fd59de2a37e6b547db8e5b52114f3f10171ef2f GIT_TAG 03b5008a05f895e91e3968de7b68db50f6c41b2a
) )
FetchContent_MakeAvailable(MatrixClient) FetchContent_MakeAvailable(MatrixClient)
else() else()

View file

@ -4,7 +4,53 @@
<context> <context>
<name>ChatPage</name> <name>ChatPage</name>
<message> <message>
<location filename="../../src/ChatPage.cpp" line="+328"/> <location filename="../../src/ChatPage.cpp" line="+211"/>
<source>Failed to invite user: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+4"/>
<location line="+84"/>
<source>Invited user: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="-6"/>
<source>Failed to invite %1 to %2: %3</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+20"/>
<source>Failed to kick %1 to %2: %3</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+6"/>
<source>Kicked user: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+14"/>
<source>Failed to ban %1 in %2: %3</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+6"/>
<source>Banned user: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+16"/>
<source>Failed to unban %1 in %2: %3</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+5"/>
<source>Unbanned user: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+50"/>
<source>Failed to upload media. Please try again.</source> <source>Failed to upload media. Please try again.</source>
<translation>Medienupload fehlgeschlagen. Bitte versuche es erneut.</translation> <translation>Medienupload fehlgeschlagen. Bitte versuche es erneut.</translation>
</message> </message>
@ -25,17 +71,37 @@
</message> </message>
<message> <message>
<location line="+51"/> <location line="+51"/>
<location line="+155"/> <location line="+154"/>
<source>Please try to login again: %1</source> <source>Please try to login again: %1</source>
<translation>Bitte melde dich erneut an: %1</translation> <translation>Bitte melde dich erneut an: %1</translation>
</message> </message>
<message> <message>
<location line="-47"/> <location line="-77"/>
<source>Failed to join room: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+5"/>
<source>You joined the room</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+6"/>
<source>Failed to remove invite: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+19"/>
<source>Room creation failed: %1</source> <source>Room creation failed: %1</source>
<translation>Raum konnte nicht erstellt werden: %1</translation> <translation>Raum konnte nicht erstellt werden: %1</translation>
</message> </message>
<message> <message>
<location line="+16"/> <location line="+5"/>
<source>Room %1 created</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+11"/>
<source>Failed to leave room: %1</source> <source>Failed to leave room: %1</source>
<translation>Konnte den Raum nicht verlassen: %1</translation> <translation>Konnte den Raum nicht verlassen: %1</translation>
</message> </message>
@ -385,7 +451,7 @@
<translation>Emoji</translation> <translation>Emoji</translation>
</message> </message>
<message> <message>
<location line="+73"/> <location line="+81"/>
<source>Select a file</source> <source>Select a file</source>
<translation>Datei auswählen</translation> <translation>Datei auswählen</translation>
</message> </message>
@ -403,7 +469,7 @@
<context> <context>
<name>TimelineModel</name> <name>TimelineModel</name>
<message> <message>
<location filename="../../src/timeline/TimelineModel.cpp" line="+698"/> <location filename="../../src/timeline/TimelineModel.cpp" line="+716"/>
<source>-- Encrypted Event (No keys found for decryption) --</source> <source>-- Encrypted Event (No keys found for decryption) --</source>
<comment>Placeholder, when the message was not decrypted yet or can&apos;t be decrypted</comment> <comment>Placeholder, when the message was not decrypted yet or can&apos;t be decrypted</comment>
<translation>-- verschlüsselter Event (keine Schlüssel zur Entschlüsselung gefunden) --</translation> <translation>-- verschlüsselter Event (keine Schlüssel zur Entschlüsselung gefunden) --</translation>
@ -646,42 +712,47 @@
<context> <context>
<name>UserSettingsPage</name> <name>UserSettingsPage</name>
<message> <message>
<location filename="../../src/UserSettingsPage.cpp" line="+172"/> <location filename="../../src/UserSettingsPage.cpp" line="+188"/>
<source>Minimize to tray</source> <source>Minimize to tray</source>
<translation>Ins Benachrichtigungsfeld minimieren</translation> <translation>Ins Benachrichtigungsfeld minimieren</translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+3"/>
<source>Start in tray</source> <source>Start in tray</source>
<translation>Im Benachrichtigungsfeld starten</translation> <translation>Im Benachrichtigungsfeld starten</translation>
</message> </message>
<message> <message>
<location line="+11"/> <location line="+5"/>
<source>Group&apos;s sidebar</source> <source>Group&apos;s sidebar</source>
<translation>Gruppen-Seitenleiste</translation> <translation>Gruppen-Seitenleiste</translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+3"/>
<source>Circular Avatars</source> <source>Circular Avatars</source>
<translation>Runde Profilbilder</translation> <translation>Runde Profilbilder</translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+3"/>
<source>Typing notifications</source> <source>Typing notifications</source>
<translation>Schreibbenachrichtigungen</translation> <translation>Schreibbenachrichtigungen</translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+3"/>
<source>Read receipts</source> <source>Read receipts</source>
<translation>Lesebestätigungen</translation> <translation>Lesebestätigungen</translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+3"/>
<source>Send messages as markdown</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+3"/>
<source>Desktop notifications</source> <source>Desktop notifications</source>
<translation>Desktopbenachrichtigungen</translation> <translation>Desktopbenachrichtigungen</translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+4"/>
<source>Scale factor</source> <source>Scale factor</source>
<translation>Skalierungsfaktor</translation> <translation>Skalierungsfaktor</translation>
</message> </message>
@ -741,7 +812,7 @@
<translation>ALLGEMEINES</translation> <translation>ALLGEMEINES</translation>
</message> </message>
<message> <message>
<location line="+161"/> <location line="+168"/>
<source>Open Sessions File</source> <source>Open Sessions File</source>
<translation>Öffne Sessions Datei</translation> <translation>Öffne Sessions Datei</translation>
</message> </message>

View file

@ -4,7 +4,53 @@
<context> <context>
<name>ChatPage</name> <name>ChatPage</name>
<message> <message>
<location filename="../../src/ChatPage.cpp" line="+328"/> <location filename="../../src/ChatPage.cpp" line="+211"/>
<source>Failed to invite user: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+4"/>
<location line="+84"/>
<source>Invited user: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="-6"/>
<source>Failed to invite %1 to %2: %3</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+20"/>
<source>Failed to kick %1 to %2: %3</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+6"/>
<source>Kicked user: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+14"/>
<source>Failed to ban %1 in %2: %3</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+6"/>
<source>Banned user: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+16"/>
<source>Failed to unban %1 in %2: %3</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+5"/>
<source>Unbanned user: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+50"/>
<source>Failed to upload media. Please try again.</source> <source>Failed to upload media. Please try again.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -25,17 +71,37 @@
</message> </message>
<message> <message>
<location line="+51"/> <location line="+51"/>
<location line="+155"/> <location line="+154"/>
<source>Please try to login again: %1</source> <source>Please try to login again: %1</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location line="-47"/> <location line="-77"/>
<source>Failed to join room: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+5"/>
<source>You joined the room</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+6"/>
<source>Failed to remove invite: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+19"/>
<source>Room creation failed: %1</source> <source>Room creation failed: %1</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location line="+16"/> <location line="+5"/>
<source>Room %1 created</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+11"/>
<source>Failed to leave room: %1</source> <source>Failed to leave room: %1</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -385,7 +451,7 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location line="+73"/> <location line="+81"/>
<source>Select a file</source> <source>Select a file</source>
<translation>Διάλεξε ένα αρχείο</translation> <translation>Διάλεξε ένα αρχείο</translation>
</message> </message>
@ -403,7 +469,7 @@
<context> <context>
<name>TimelineModel</name> <name>TimelineModel</name>
<message> <message>
<location filename="../../src/timeline/TimelineModel.cpp" line="+698"/> <location filename="../../src/timeline/TimelineModel.cpp" line="+716"/>
<source>-- Encrypted Event (No keys found for decryption) --</source> <source>-- Encrypted Event (No keys found for decryption) --</source>
<comment>Placeholder, when the message was not decrypted yet or can&apos;t be decrypted</comment> <comment>Placeholder, when the message was not decrypted yet or can&apos;t be decrypted</comment>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@ -646,42 +712,47 @@
<context> <context>
<name>UserSettingsPage</name> <name>UserSettingsPage</name>
<message> <message>
<location filename="../../src/UserSettingsPage.cpp" line="+172"/> <location filename="../../src/UserSettingsPage.cpp" line="+188"/>
<source>Minimize to tray</source> <source>Minimize to tray</source>
<translation>Ελαχιστοποίηση</translation> <translation>Ελαχιστοποίηση</translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+3"/>
<source>Start in tray</source> <source>Start in tray</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location line="+11"/> <location line="+5"/>
<source>Group&apos;s sidebar</source> <source>Group&apos;s sidebar</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+3"/>
<source>Circular Avatars</source> <source>Circular Avatars</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+3"/>
<source>Typing notifications</source> <source>Typing notifications</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+3"/>
<source>Read receipts</source> <source>Read receipts</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+3"/>
<source>Send messages as markdown</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+3"/>
<source>Desktop notifications</source> <source>Desktop notifications</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+4"/>
<source>Scale factor</source> <source>Scale factor</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -741,7 +812,7 @@
<translation>ΓΕΝΙΚΑ</translation> <translation>ΓΕΝΙΚΑ</translation>
</message> </message>
<message> <message>
<location line="+161"/> <location line="+168"/>
<source>Open Sessions File</source> <source>Open Sessions File</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>

View file

@ -4,7 +4,53 @@
<context> <context>
<name>ChatPage</name> <name>ChatPage</name>
<message> <message>
<location filename="../../src/ChatPage.cpp" line="+328"/> <location filename="../../src/ChatPage.cpp" line="+211"/>
<source>Failed to invite user: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+4"/>
<location line="+84"/>
<source>Invited user: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="-6"/>
<source>Failed to invite %1 to %2: %3</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+20"/>
<source>Failed to kick %1 to %2: %3</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+6"/>
<source>Kicked user: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+14"/>
<source>Failed to ban %1 in %2: %3</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+6"/>
<source>Banned user: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+16"/>
<source>Failed to unban %1 in %2: %3</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+5"/>
<source>Unbanned user: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+50"/>
<source>Failed to upload media. Please try again.</source> <source>Failed to upload media. Please try again.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -25,17 +71,37 @@
</message> </message>
<message> <message>
<location line="+51"/> <location line="+51"/>
<location line="+155"/> <location line="+154"/>
<source>Please try to login again: %1</source> <source>Please try to login again: %1</source>
<translation>Please try to login again: %1</translation> <translation>Please try to login again: %1</translation>
</message> </message>
<message> <message>
<location line="-47"/> <location line="-77"/>
<source>Failed to join room: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+5"/>
<source>You joined the room</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+6"/>
<source>Failed to remove invite: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+19"/>
<source>Room creation failed: %1</source> <source>Room creation failed: %1</source>
<translation>Room creation failed: %1</translation> <translation>Room creation failed: %1</translation>
</message> </message>
<message> <message>
<location line="+16"/> <location line="+5"/>
<source>Room %1 created</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+11"/>
<source>Failed to leave room: %1</source> <source>Failed to leave room: %1</source>
<translation>Failed to leave room: %1</translation> <translation>Failed to leave room: %1</translation>
</message> </message>
@ -385,7 +451,7 @@
<translation>Emoji</translation> <translation>Emoji</translation>
</message> </message>
<message> <message>
<location line="+73"/> <location line="+81"/>
<source>Select a file</source> <source>Select a file</source>
<translation>Select a file</translation> <translation>Select a file</translation>
</message> </message>
@ -403,7 +469,7 @@
<context> <context>
<name>TimelineModel</name> <name>TimelineModel</name>
<message> <message>
<location filename="../../src/timeline/TimelineModel.cpp" line="+698"/> <location filename="../../src/timeline/TimelineModel.cpp" line="+716"/>
<source>-- Encrypted Event (No keys found for decryption) --</source> <source>-- Encrypted Event (No keys found for decryption) --</source>
<comment>Placeholder, when the message was not decrypted yet or can&apos;t be decrypted</comment> <comment>Placeholder, when the message was not decrypted yet or can&apos;t be decrypted</comment>
<translation type="unfinished">-- Encrypted Event (No keys found for decryption) --</translation> <translation type="unfinished">-- Encrypted Event (No keys found for decryption) --</translation>
@ -646,42 +712,47 @@
<context> <context>
<name>UserSettingsPage</name> <name>UserSettingsPage</name>
<message> <message>
<location filename="../../src/UserSettingsPage.cpp" line="+172"/> <location filename="../../src/UserSettingsPage.cpp" line="+188"/>
<source>Minimize to tray</source> <source>Minimize to tray</source>
<translation>Minimize to tray</translation> <translation>Minimize to tray</translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+3"/>
<source>Start in tray</source> <source>Start in tray</source>
<translation>Start in tray</translation> <translation>Start in tray</translation>
</message> </message>
<message> <message>
<location line="+11"/> <location line="+5"/>
<source>Group&apos;s sidebar</source> <source>Group&apos;s sidebar</source>
<translation>Group&apos;s sidebar</translation> <translation>Group&apos;s sidebar</translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+3"/>
<source>Circular Avatars</source> <source>Circular Avatars</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+3"/>
<source>Typing notifications</source> <source>Typing notifications</source>
<translation>Typing notifications</translation> <translation>Typing notifications</translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+3"/>
<source>Read receipts</source> <source>Read receipts</source>
<translation>Read receipts</translation> <translation>Read receipts</translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+3"/>
<source>Send messages as markdown</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+3"/>
<source>Desktop notifications</source> <source>Desktop notifications</source>
<translation>Desktop notifications</translation> <translation>Desktop notifications</translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+4"/>
<source>Scale factor</source> <source>Scale factor</source>
<translation>Scale factor</translation> <translation>Scale factor</translation>
</message> </message>
@ -741,7 +812,7 @@
<translation>GENERAL</translation> <translation>GENERAL</translation>
</message> </message>
<message> <message>
<location line="+161"/> <location line="+168"/>
<source>Open Sessions File</source> <source>Open Sessions File</source>
<translation>Open Sessions File</translation> <translation>Open Sessions File</translation>
</message> </message>

View file

@ -4,7 +4,53 @@
<context> <context>
<name>ChatPage</name> <name>ChatPage</name>
<message> <message>
<location filename="../../src/ChatPage.cpp" line="+328"/> <location filename="../../src/ChatPage.cpp" line="+211"/>
<source>Failed to invite user: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+4"/>
<location line="+84"/>
<source>Invited user: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="-6"/>
<source>Failed to invite %1 to %2: %3</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+20"/>
<source>Failed to kick %1 to %2: %3</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+6"/>
<source>Kicked user: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+14"/>
<source>Failed to ban %1 in %2: %3</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+6"/>
<source>Banned user: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+16"/>
<source>Failed to unban %1 in %2: %3</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+5"/>
<source>Unbanned user: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+50"/>
<source>Failed to upload media. Please try again.</source> <source>Failed to upload media. Please try again.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -25,17 +71,37 @@
</message> </message>
<message> <message>
<location line="+51"/> <location line="+51"/>
<location line="+155"/> <location line="+154"/>
<source>Please try to login again: %1</source> <source>Please try to login again: %1</source>
<translation>Ole hyvä ja yritä kirjautua sisään uudelleen: %1</translation> <translation>Ole hyvä ja yritä kirjautua sisään uudelleen: %1</translation>
</message> </message>
<message> <message>
<location line="-47"/> <location line="-77"/>
<source>Failed to join room: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+5"/>
<source>You joined the room</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+6"/>
<source>Failed to remove invite: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+19"/>
<source>Room creation failed: %1</source> <source>Room creation failed: %1</source>
<translation>Huoneen luominen epäonnistui: %1</translation> <translation>Huoneen luominen epäonnistui: %1</translation>
</message> </message>
<message> <message>
<location line="+16"/> <location line="+5"/>
<source>Room %1 created</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+11"/>
<source>Failed to leave room: %1</source> <source>Failed to leave room: %1</source>
<translation>Huoneesta poistuminen epäonnistui: %1</translation> <translation>Huoneesta poistuminen epäonnistui: %1</translation>
</message> </message>
@ -385,7 +451,7 @@
<translation>Emoji</translation> <translation>Emoji</translation>
</message> </message>
<message> <message>
<location line="+73"/> <location line="+81"/>
<source>Select a file</source> <source>Select a file</source>
<translation>Valitse tiedosto</translation> <translation>Valitse tiedosto</translation>
</message> </message>
@ -403,7 +469,7 @@
<context> <context>
<name>TimelineModel</name> <name>TimelineModel</name>
<message> <message>
<location filename="../../src/timeline/TimelineModel.cpp" line="+698"/> <location filename="../../src/timeline/TimelineModel.cpp" line="+716"/>
<source>-- Encrypted Event (No keys found for decryption) --</source> <source>-- Encrypted Event (No keys found for decryption) --</source>
<comment>Placeholder, when the message was not decrypted yet or can&apos;t be decrypted</comment> <comment>Placeholder, when the message was not decrypted yet or can&apos;t be decrypted</comment>
<translation type="unfinished">-- Salattu viesti (salauksen purkuavaimia ei löydetty) --</translation> <translation type="unfinished">-- Salattu viesti (salauksen purkuavaimia ei löydetty) --</translation>
@ -646,42 +712,47 @@
<context> <context>
<name>UserSettingsPage</name> <name>UserSettingsPage</name>
<message> <message>
<location filename="../../src/UserSettingsPage.cpp" line="+172"/> <location filename="../../src/UserSettingsPage.cpp" line="+188"/>
<source>Minimize to tray</source> <source>Minimize to tray</source>
<translation>Pienennä ilmoitusalueelle</translation> <translation>Pienennä ilmoitusalueelle</translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+3"/>
<source>Start in tray</source> <source>Start in tray</source>
<translation>Aloita ilmoitusalueella</translation> <translation>Aloita ilmoitusalueella</translation>
</message> </message>
<message> <message>
<location line="+11"/> <location line="+5"/>
<source>Group&apos;s sidebar</source> <source>Group&apos;s sidebar</source>
<translation>Ryhmäsivupalkki</translation> <translation>Ryhmäsivupalkki</translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+3"/>
<source>Circular Avatars</source> <source>Circular Avatars</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+3"/>
<source>Typing notifications</source> <source>Typing notifications</source>
<translation>Kirjoitusilmoitukset</translation> <translation>Kirjoitusilmoitukset</translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+3"/>
<source>Read receipts</source> <source>Read receipts</source>
<translation>Lukukuittaukset</translation> <translation>Lukukuittaukset</translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+3"/>
<source>Send messages as markdown</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+3"/>
<source>Desktop notifications</source> <source>Desktop notifications</source>
<translation>Työpöytäilmoitukset</translation> <translation>Työpöytäilmoitukset</translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+4"/>
<source>Scale factor</source> <source>Scale factor</source>
<translation>Mittakerroin</translation> <translation>Mittakerroin</translation>
</message> </message>
@ -741,7 +812,7 @@
<translation>YLEISET ASETUKSET</translation> <translation>YLEISET ASETUKSET</translation>
</message> </message>
<message> <message>
<location line="+161"/> <location line="+168"/>
<source>Open Sessions File</source> <source>Open Sessions File</source>
<translation>Avaa Istuntoavaintiedosto</translation> <translation>Avaa Istuntoavaintiedosto</translation>
</message> </message>

View file

@ -4,7 +4,53 @@
<context> <context>
<name>ChatPage</name> <name>ChatPage</name>
<message> <message>
<location filename="../../src/ChatPage.cpp" line="+328"/> <location filename="../../src/ChatPage.cpp" line="+211"/>
<source>Failed to invite user: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+4"/>
<location line="+84"/>
<source>Invited user: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="-6"/>
<source>Failed to invite %1 to %2: %3</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+20"/>
<source>Failed to kick %1 to %2: %3</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+6"/>
<source>Kicked user: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+14"/>
<source>Failed to ban %1 in %2: %3</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+6"/>
<source>Banned user: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+16"/>
<source>Failed to unban %1 in %2: %3</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+5"/>
<source>Unbanned user: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+50"/>
<source>Failed to upload media. Please try again.</source> <source>Failed to upload media. Please try again.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -25,17 +71,37 @@
</message> </message>
<message> <message>
<location line="+51"/> <location line="+51"/>
<location line="+155"/> <location line="+154"/>
<source>Please try to login again: %1</source> <source>Please try to login again: %1</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location line="-47"/> <location line="-77"/>
<source>Failed to join room: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+5"/>
<source>You joined the room</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+6"/>
<source>Failed to remove invite: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+19"/>
<source>Room creation failed: %1</source> <source>Room creation failed: %1</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location line="+16"/> <location line="+5"/>
<source>Room %1 created</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+11"/>
<source>Failed to leave room: %1</source> <source>Failed to leave room: %1</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -386,7 +452,7 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location line="+73"/> <location line="+81"/>
<source>Select a file</source> <source>Select a file</source>
<translation>Sélectionnez un fichier</translation> <translation>Sélectionnez un fichier</translation>
</message> </message>
@ -404,7 +470,7 @@
<context> <context>
<name>TimelineModel</name> <name>TimelineModel</name>
<message> <message>
<location filename="../../src/timeline/TimelineModel.cpp" line="+698"/> <location filename="../../src/timeline/TimelineModel.cpp" line="+716"/>
<source>-- Encrypted Event (No keys found for decryption) --</source> <source>-- Encrypted Event (No keys found for decryption) --</source>
<comment>Placeholder, when the message was not decrypted yet or can&apos;t be decrypted</comment> <comment>Placeholder, when the message was not decrypted yet or can&apos;t be decrypted</comment>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@ -647,42 +713,47 @@
<context> <context>
<name>UserSettingsPage</name> <name>UserSettingsPage</name>
<message> <message>
<location filename="../../src/UserSettingsPage.cpp" line="+172"/> <location filename="../../src/UserSettingsPage.cpp" line="+188"/>
<source>Minimize to tray</source> <source>Minimize to tray</source>
<translation>Réduire à la barre des tâches</translation> <translation>Réduire à la barre des tâches</translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+3"/>
<source>Start in tray</source> <source>Start in tray</source>
<translation>Démarrer dans la barre des tâches</translation> <translation>Démarrer dans la barre des tâches</translation>
</message> </message>
<message> <message>
<location line="+11"/> <location line="+5"/>
<source>Group&apos;s sidebar</source> <source>Group&apos;s sidebar</source>
<translation>Barre latérale des groupes</translation> <translation>Barre latérale des groupes</translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+3"/>
<source>Circular Avatars</source> <source>Circular Avatars</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+3"/>
<source>Typing notifications</source> <source>Typing notifications</source>
<translation>Notifications d&apos;écriture</translation> <translation>Notifications d&apos;écriture</translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+3"/>
<source>Read receipts</source> <source>Read receipts</source>
<translation>Accusés de lecture</translation> <translation>Accusés de lecture</translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+3"/>
<source>Send messages as markdown</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+3"/>
<source>Desktop notifications</source> <source>Desktop notifications</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+4"/>
<source>Scale factor</source> <source>Scale factor</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -742,7 +813,7 @@
<translation>GÉNÉRAL</translation> <translation>GÉNÉRAL</translation>
</message> </message>
<message> <message>
<location line="+161"/> <location line="+168"/>
<source>Open Sessions File</source> <source>Open Sessions File</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>

View file

@ -4,7 +4,53 @@
<context> <context>
<name>ChatPage</name> <name>ChatPage</name>
<message> <message>
<location filename="../../src/ChatPage.cpp" line="+328"/> <location filename="../../src/ChatPage.cpp" line="+211"/>
<source>Failed to invite user: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+4"/>
<location line="+84"/>
<source>Invited user: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="-6"/>
<source>Failed to invite %1 to %2: %3</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+20"/>
<source>Failed to kick %1 to %2: %3</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+6"/>
<source>Kicked user: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+14"/>
<source>Failed to ban %1 in %2: %3</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+6"/>
<source>Banned user: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+16"/>
<source>Failed to unban %1 in %2: %3</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+5"/>
<source>Unbanned user: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+50"/>
<source>Failed to upload media. Please try again.</source> <source>Failed to upload media. Please try again.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -25,17 +71,37 @@
</message> </message>
<message> <message>
<location line="+51"/> <location line="+51"/>
<location line="+155"/> <location line="+154"/>
<source>Please try to login again: %1</source> <source>Please try to login again: %1</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location line="-47"/> <location line="-77"/>
<source>Failed to join room: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+5"/>
<source>You joined the room</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+6"/>
<source>Failed to remove invite: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+19"/>
<source>Room creation failed: %1</source> <source>Room creation failed: %1</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location line="+16"/> <location line="+5"/>
<source>Room %1 created</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+11"/>
<source>Failed to leave room: %1</source> <source>Failed to leave room: %1</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -385,7 +451,7 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location line="+73"/> <location line="+81"/>
<source>Select a file</source> <source>Select a file</source>
<translation>Kies een bestand</translation> <translation>Kies een bestand</translation>
</message> </message>
@ -403,7 +469,7 @@
<context> <context>
<name>TimelineModel</name> <name>TimelineModel</name>
<message> <message>
<location filename="../../src/timeline/TimelineModel.cpp" line="+698"/> <location filename="../../src/timeline/TimelineModel.cpp" line="+716"/>
<source>-- Encrypted Event (No keys found for decryption) --</source> <source>-- Encrypted Event (No keys found for decryption) --</source>
<comment>Placeholder, when the message was not decrypted yet or can&apos;t be decrypted</comment> <comment>Placeholder, when the message was not decrypted yet or can&apos;t be decrypted</comment>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@ -646,42 +712,47 @@
<context> <context>
<name>UserSettingsPage</name> <name>UserSettingsPage</name>
<message> <message>
<location filename="../../src/UserSettingsPage.cpp" line="+172"/> <location filename="../../src/UserSettingsPage.cpp" line="+188"/>
<source>Minimize to tray</source> <source>Minimize to tray</source>
<translation>Minimaliseren naar systeemvak</translation> <translation>Minimaliseren naar systeemvak</translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+3"/>
<source>Start in tray</source> <source>Start in tray</source>
<translation>Geminimaliseerd opstarten</translation> <translation>Geminimaliseerd opstarten</translation>
</message> </message>
<message> <message>
<location line="+11"/> <location line="+5"/>
<source>Group&apos;s sidebar</source> <source>Group&apos;s sidebar</source>
<translation>Zijbalk van groep</translation> <translation>Zijbalk van groep</translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+3"/>
<source>Circular Avatars</source> <source>Circular Avatars</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+3"/>
<source>Typing notifications</source> <source>Typing notifications</source>
<translation>Meldingen bij typen van berichten</translation> <translation>Meldingen bij typen van berichten</translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+3"/>
<source>Read receipts</source> <source>Read receipts</source>
<translation>Leesbevestigingen</translation> <translation>Leesbevestigingen</translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+3"/>
<source>Send messages as markdown</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+3"/>
<source>Desktop notifications</source> <source>Desktop notifications</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+4"/>
<source>Scale factor</source> <source>Scale factor</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -741,7 +812,7 @@
<translation>ALGEMEEN</translation> <translation>ALGEMEEN</translation>
</message> </message>
<message> <message>
<location line="+161"/> <location line="+168"/>
<source>Open Sessions File</source> <source>Open Sessions File</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>

View file

@ -4,7 +4,53 @@
<context> <context>
<name>ChatPage</name> <name>ChatPage</name>
<message> <message>
<location filename="../../src/ChatPage.cpp" line="+328"/> <location filename="../../src/ChatPage.cpp" line="+211"/>
<source>Failed to invite user: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+4"/>
<location line="+84"/>
<source>Invited user: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="-6"/>
<source>Failed to invite %1 to %2: %3</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+20"/>
<source>Failed to kick %1 to %2: %3</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+6"/>
<source>Kicked user: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+14"/>
<source>Failed to ban %1 in %2: %3</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+6"/>
<source>Banned user: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+16"/>
<source>Failed to unban %1 in %2: %3</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+5"/>
<source>Unbanned user: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+50"/>
<source>Failed to upload media. Please try again.</source> <source>Failed to upload media. Please try again.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -25,17 +71,37 @@
</message> </message>
<message> <message>
<location line="+51"/> <location line="+51"/>
<location line="+155"/> <location line="+154"/>
<source>Please try to login again: %1</source> <source>Please try to login again: %1</source>
<translation>Spróbuj zalogować się ponownie: %1</translation> <translation>Spróbuj zalogować się ponownie: %1</translation>
</message> </message>
<message> <message>
<location line="-47"/> <location line="-77"/>
<source>Failed to join room: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+5"/>
<source>You joined the room</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+6"/>
<source>Failed to remove invite: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+19"/>
<source>Room creation failed: %1</source> <source>Room creation failed: %1</source>
<translation>Tworzenie pokoju nie powiodło się: %1</translation> <translation>Tworzenie pokoju nie powiodło się: %1</translation>
</message> </message>
<message> <message>
<location line="+16"/> <location line="+5"/>
<source>Room %1 created</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+11"/>
<source>Failed to leave room: %1</source> <source>Failed to leave room: %1</source>
<translation>Nie udało się opuścić pokoju: %1</translation> <translation>Nie udało się opuścić pokoju: %1</translation>
</message> </message>
@ -385,7 +451,7 @@
<translation>Emoji</translation> <translation>Emoji</translation>
</message> </message>
<message> <message>
<location line="+73"/> <location line="+81"/>
<source>Select a file</source> <source>Select a file</source>
<translation>Wybierz plik</translation> <translation>Wybierz plik</translation>
</message> </message>
@ -403,7 +469,7 @@
<context> <context>
<name>TimelineModel</name> <name>TimelineModel</name>
<message> <message>
<location filename="../../src/timeline/TimelineModel.cpp" line="+698"/> <location filename="../../src/timeline/TimelineModel.cpp" line="+716"/>
<source>-- Encrypted Event (No keys found for decryption) --</source> <source>-- Encrypted Event (No keys found for decryption) --</source>
<comment>Placeholder, when the message was not decrypted yet or can&apos;t be decrypted</comment> <comment>Placeholder, when the message was not decrypted yet or can&apos;t be decrypted</comment>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@ -647,42 +713,47 @@
<context> <context>
<name>UserSettingsPage</name> <name>UserSettingsPage</name>
<message> <message>
<location filename="../../src/UserSettingsPage.cpp" line="+172"/> <location filename="../../src/UserSettingsPage.cpp" line="+188"/>
<source>Minimize to tray</source> <source>Minimize to tray</source>
<translation>Zminimalizuj do paska zadań</translation> <translation>Zminimalizuj do paska zadań</translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+3"/>
<source>Start in tray</source> <source>Start in tray</source>
<translation>Rozpocznij na pasku zadań</translation> <translation>Rozpocznij na pasku zadań</translation>
</message> </message>
<message> <message>
<location line="+11"/> <location line="+5"/>
<source>Group&apos;s sidebar</source> <source>Group&apos;s sidebar</source>
<translation>Pasek boczny grupy</translation> <translation>Pasek boczny grupy</translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+3"/>
<source>Circular Avatars</source> <source>Circular Avatars</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+3"/>
<source>Typing notifications</source> <source>Typing notifications</source>
<translation>Powiadomienia o pisaniu</translation> <translation>Powiadomienia o pisaniu</translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+3"/>
<source>Read receipts</source> <source>Read receipts</source>
<translation>Potwierdzenia przeczytania</translation> <translation>Potwierdzenia przeczytania</translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+3"/>
<source>Send messages as markdown</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+3"/>
<source>Desktop notifications</source> <source>Desktop notifications</source>
<translation>Powiadomienia na pulpicie</translation> <translation>Powiadomienia na pulpicie</translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+4"/>
<source>Scale factor</source> <source>Scale factor</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -742,7 +813,7 @@
<translation>OGÓLNE</translation> <translation>OGÓLNE</translation>
</message> </message>
<message> <message>
<location line="+161"/> <location line="+168"/>
<source>Open Sessions File</source> <source>Open Sessions File</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>

View file

@ -4,7 +4,53 @@
<context> <context>
<name>ChatPage</name> <name>ChatPage</name>
<message> <message>
<location filename="../../src/ChatPage.cpp" line="+328"/> <location filename="../../src/ChatPage.cpp" line="+211"/>
<source>Failed to invite user: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+4"/>
<location line="+84"/>
<source>Invited user: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="-6"/>
<source>Failed to invite %1 to %2: %3</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+20"/>
<source>Failed to kick %1 to %2: %3</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+6"/>
<source>Kicked user: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+14"/>
<source>Failed to ban %1 in %2: %3</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+6"/>
<source>Banned user: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+16"/>
<source>Failed to unban %1 in %2: %3</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+5"/>
<source>Unbanned user: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+50"/>
<source>Failed to upload media. Please try again.</source> <source>Failed to upload media. Please try again.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -25,17 +71,37 @@
</message> </message>
<message> <message>
<location line="+51"/> <location line="+51"/>
<location line="+155"/> <location line="+154"/>
<source>Please try to login again: %1</source> <source>Please try to login again: %1</source>
<translation>Повторите попытку входа: %1</translation> <translation>Повторите попытку входа: %1</translation>
</message> </message>
<message> <message>
<location line="-47"/> <location line="-77"/>
<source>Failed to join room: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+5"/>
<source>You joined the room</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+6"/>
<source>Failed to remove invite: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+19"/>
<source>Room creation failed: %1</source> <source>Room creation failed: %1</source>
<translation>Не удалось создать комнату: %1</translation> <translation>Не удалось создать комнату: %1</translation>
</message> </message>
<message> <message>
<location line="+16"/> <location line="+5"/>
<source>Room %1 created</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+11"/>
<source>Failed to leave room: %1</source> <source>Failed to leave room: %1</source>
<translation>Не удалось покинуть комнату: %1</translation> <translation>Не удалось покинуть комнату: %1</translation>
</message> </message>
@ -385,7 +451,7 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location line="+73"/> <location line="+81"/>
<source>Select a file</source> <source>Select a file</source>
<translation>Выберите файл</translation> <translation>Выберите файл</translation>
</message> </message>
@ -403,7 +469,7 @@
<context> <context>
<name>TimelineModel</name> <name>TimelineModel</name>
<message> <message>
<location filename="../../src/timeline/TimelineModel.cpp" line="+698"/> <location filename="../../src/timeline/TimelineModel.cpp" line="+716"/>
<source>-- Encrypted Event (No keys found for decryption) --</source> <source>-- Encrypted Event (No keys found for decryption) --</source>
<comment>Placeholder, when the message was not decrypted yet or can&apos;t be decrypted</comment> <comment>Placeholder, when the message was not decrypted yet or can&apos;t be decrypted</comment>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@ -647,42 +713,47 @@
<context> <context>
<name>UserSettingsPage</name> <name>UserSettingsPage</name>
<message> <message>
<location filename="../../src/UserSettingsPage.cpp" line="+172"/> <location filename="../../src/UserSettingsPage.cpp" line="+188"/>
<source>Minimize to tray</source> <source>Minimize to tray</source>
<translation>Сворачивать в системную панель</translation> <translation>Сворачивать в системную панель</translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+3"/>
<source>Start in tray</source> <source>Start in tray</source>
<translation>Запускать в системной панели</translation> <translation>Запускать в системной панели</translation>
</message> </message>
<message> <message>
<location line="+11"/> <location line="+5"/>
<source>Group&apos;s sidebar</source> <source>Group&apos;s sidebar</source>
<translation>Боковая панель групп</translation> <translation>Боковая панель групп</translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+3"/>
<source>Circular Avatars</source> <source>Circular Avatars</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+3"/>
<source>Typing notifications</source> <source>Typing notifications</source>
<translation>Сообщать о наборе сообщения</translation> <translation>Сообщать о наборе сообщения</translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+3"/>
<source>Read receipts</source> <source>Read receipts</source>
<translation>Подтверждать прочтение</translation> <translation>Подтверждать прочтение</translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+3"/>
<source>Send messages as markdown</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+3"/>
<source>Desktop notifications</source> <source>Desktop notifications</source>
<translation>Уведомления на рабочем столе</translation> <translation>Уведомления на рабочем столе</translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+4"/>
<source>Scale factor</source> <source>Scale factor</source>
<translation>Масштаб</translation> <translation>Масштаб</translation>
</message> </message>
@ -742,7 +813,7 @@
<translation>ГЛАВНОЕ</translation> <translation>ГЛАВНОЕ</translation>
</message> </message>
<message> <message>
<location line="+161"/> <location line="+168"/>
<source>Open Sessions File</source> <source>Open Sessions File</source>
<translation>Открыть файл сеансов</translation> <translation>Открыть файл сеансов</translation>
</message> </message>

View file

@ -4,7 +4,53 @@
<context> <context>
<name>ChatPage</name> <name>ChatPage</name>
<message> <message>
<location filename="../../src/ChatPage.cpp" line="+328"/> <location filename="../../src/ChatPage.cpp" line="+211"/>
<source>Failed to invite user: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+4"/>
<location line="+84"/>
<source>Invited user: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="-6"/>
<source>Failed to invite %1 to %2: %3</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+20"/>
<source>Failed to kick %1 to %2: %3</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+6"/>
<source>Kicked user: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+14"/>
<source>Failed to ban %1 in %2: %3</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+6"/>
<source>Banned user: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+16"/>
<source>Failed to unban %1 in %2: %3</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+5"/>
<source>Unbanned user: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+50"/>
<source>Failed to upload media. Please try again.</source> <source>Failed to upload media. Please try again.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -25,17 +71,37 @@
</message> </message>
<message> <message>
<location line="+51"/> <location line="+51"/>
<location line="+155"/> <location line="+154"/>
<source>Please try to login again: %1</source> <source>Please try to login again: %1</source>
<translation>%1</translation> <translation>%1</translation>
</message> </message>
<message> <message>
<location line="-47"/> <location line="-77"/>
<source>Failed to join room: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+5"/>
<source>You joined the room</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+6"/>
<source>Failed to remove invite: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+19"/>
<source>Room creation failed: %1</source> <source>Room creation failed: %1</source>
<translation>%1</translation> <translation>%1</translation>
</message> </message>
<message> <message>
<location line="+16"/> <location line="+5"/>
<source>Room %1 created</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+11"/>
<source>Failed to leave room: %1</source> <source>Failed to leave room: %1</source>
<translation>%1</translation> <translation>%1</translation>
</message> </message>
@ -385,7 +451,7 @@
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location line="+73"/> <location line="+81"/>
<source>Select a file</source> <source>Select a file</source>
<translation></translation> <translation></translation>
</message> </message>
@ -403,7 +469,7 @@
<context> <context>
<name>TimelineModel</name> <name>TimelineModel</name>
<message> <message>
<location filename="../../src/timeline/TimelineModel.cpp" line="+698"/> <location filename="../../src/timeline/TimelineModel.cpp" line="+716"/>
<source>-- Encrypted Event (No keys found for decryption) --</source> <source>-- Encrypted Event (No keys found for decryption) --</source>
<comment>Placeholder, when the message was not decrypted yet or can&apos;t be decrypted</comment> <comment>Placeholder, when the message was not decrypted yet or can&apos;t be decrypted</comment>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@ -645,42 +711,47 @@
<context> <context>
<name>UserSettingsPage</name> <name>UserSettingsPage</name>
<message> <message>
<location filename="../../src/UserSettingsPage.cpp" line="+172"/> <location filename="../../src/UserSettingsPage.cpp" line="+188"/>
<source>Minimize to tray</source> <source>Minimize to tray</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+3"/>
<source>Start in tray</source> <source>Start in tray</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location line="+11"/> <location line="+5"/>
<source>Group&apos;s sidebar</source> <source>Group&apos;s sidebar</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+3"/>
<source>Circular Avatars</source> <source>Circular Avatars</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+3"/>
<source>Typing notifications</source> <source>Typing notifications</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+3"/>
<source>Read receipts</source> <source>Read receipts</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+3"/>
<source>Send messages as markdown</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+3"/>
<source>Desktop notifications</source> <source>Desktop notifications</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location line="+9"/> <location line="+4"/>
<source>Scale factor</source> <source>Scale factor</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -740,7 +811,7 @@
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location line="+161"/> <location line="+168"/>
<source>Open Sessions File</source> <source>Open Sessions File</source>
<translation></translation> <translation></translation>
</message> </message>

View file

@ -208,12 +208,11 @@ ChatPage::ChatPage(QSharedPointer<UserSettings> userSettings, QWidget *parent)
mtx::http::RequestErr err) { mtx::http::RequestErr err) {
if (err) { if (err) {
emit showNotification( emit showNotification(
QString("Failed to invite user: %1").arg(user)); tr("Failed to invite user: %1").arg(user));
return; return;
} }
emit showNotification( emit showNotification(tr("Invited user: %1").arg(user));
QString("Invited user: %1").arg(user));
}); });
}); });
} }
@ -280,6 +279,89 @@ ChatPage::ChatPage(QSharedPointer<UserSettings> userSettings, QWidget *parent)
connect(text_input_, &TextInputWidget::sendJoinRoomRequest, this, &ChatPage::joinRoom); connect(text_input_, &TextInputWidget::sendJoinRoomRequest, this, &ChatPage::joinRoom);
// invites and bans via quick command
connect(text_input_,
&TextInputWidget::sendInviteRoomRequest,
this,
[this](QString userid, QString reason) {
http::client()->invite_user(
current_room_.toStdString(),
userid.toStdString(),
[this, userid, room = current_room_](const mtx::responses::Empty &,
mtx::http::RequestErr err) {
if (err) {
emit showNotification(tr("Failed to invite %1 to %2: %3")
.arg(userid)
.arg(room)
.arg(QString::fromStdString(
err->matrix_error.error)));
} else
emit showNotification(tr("Invited user: %1").arg(userid));
},
reason.trimmed().toStdString());
});
connect(text_input_,
&TextInputWidget::sendKickRoomRequest,
this,
[this](QString userid, QString reason) {
http::client()->kick_user(
current_room_.toStdString(),
userid.toStdString(),
[this, userid, room = current_room_](const mtx::responses::Empty &,
mtx::http::RequestErr err) {
if (err) {
emit showNotification(tr("Failed to kick %1 to %2: %3")
.arg(userid)
.arg(room)
.arg(QString::fromStdString(
err->matrix_error.error)));
} else
emit showNotification(tr("Kicked user: %1").arg(userid));
},
reason.trimmed().toStdString());
});
connect(text_input_,
&TextInputWidget::sendBanRoomRequest,
this,
[this](QString userid, QString reason) {
http::client()->ban_user(
current_room_.toStdString(),
userid.toStdString(),
[this, userid, room = current_room_](const mtx::responses::Empty &,
mtx::http::RequestErr err) {
if (err) {
emit showNotification(tr("Failed to ban %1 in %2: %3")
.arg(userid)
.arg(room)
.arg(QString::fromStdString(
err->matrix_error.error)));
} else
emit showNotification(tr("Banned user: %1").arg(userid));
},
reason.trimmed().toStdString());
});
connect(
text_input_,
&TextInputWidget::sendUnbanRoomRequest,
this,
[this](QString userid, QString reason) {
http::client()->unban_user(
current_room_.toStdString(),
userid.toStdString(),
[this, userid, room = current_room_](const mtx::responses::Empty &,
mtx::http::RequestErr err) {
if (err) {
emit showNotification(
tr("Failed to unban %1 in %2: %3")
.arg(userid)
.arg(room)
.arg(QString::fromStdString(err->matrix_error.error)));
} else
emit showNotification(tr("Unbanned user: %1").arg(userid));
},
reason.trimmed().toStdString());
});
connect( connect(
text_input_, text_input_,
&TextInputWidget::uploadMedia, &TextInputWidget::uploadMedia,
@ -998,19 +1080,18 @@ ChatPage::joinRoom(const QString &room)
room_id, [this, room_id](const nlohmann::json &, mtx::http::RequestErr err) { room_id, [this, room_id](const nlohmann::json &, mtx::http::RequestErr err) {
if (err) { if (err) {
emit showNotification( emit showNotification(
QString("Failed to join room: %1") tr("Failed to join room: %1")
.arg(QString::fromStdString(err->matrix_error.error))); .arg(QString::fromStdString(err->matrix_error.error)));
return; return;
} }
emit showNotification("You joined the room"); emit tr("You joined the room");
// We remove any invites with the same room_id. // We remove any invites with the same room_id.
try { try {
cache::removeInvite(room_id); cache::removeInvite(room_id);
} catch (const lmdb::error &e) { } catch (const lmdb::error &e) {
emit showNotification( emit showNotification(tr("Failed to remove invite: %1").arg(e.what()));
QString("Failed to remove invite: %1").arg(e.what()));
} }
}); });
} }
@ -1033,8 +1114,8 @@ ChatPage::createRoom(const mtx::requests::CreateRoom &req)
return; return;
} }
emit showNotification(QString("Room %1 created") emit showNotification(
.arg(QString::fromStdString(res.room_id.to_string()))); tr("Room %1 created").arg(QString::fromStdString(res.room_id.to_string())));
}); });
} }

View file

@ -605,6 +605,14 @@ TextInputWidget::command(QString command, QString args)
sendEmoteMessage(args, input_->related); sendEmoteMessage(args, input_->related);
} else if (command == "join") { } else if (command == "join") {
sendJoinRoomRequest(args); sendJoinRoomRequest(args);
} else if (command == "invite") {
sendInviteRoomRequest(args.section(' ', 0, 0), args.section(' ', 1, -1));
} else if (command == "kick") {
sendKickRoomRequest(args.section(' ', 0, 0), args.section(' ', 1, -1));
} else if (command == "ban") {
sendBanRoomRequest(args.section(' ', 0, 0), args.section(' ', 1, -1));
} else if (command == "unban") {
sendUnbanRoomRequest(args.section(' ', 0, 0), args.section(' ', 1, -1));
} else if (command == "shrug") { } else if (command == "shrug") {
sendTextMessage("¯\\_(ツ)_/¯", input_->related); sendTextMessage("¯\\_(ツ)_/¯", input_->related);
} else if (command == "fliptable") { } else if (command == "fliptable") {

View file

@ -183,6 +183,10 @@ signals:
const std::optional<RelatedInfo> &related); const std::optional<RelatedInfo> &related);
void sendJoinRoomRequest(const QString &room); void sendJoinRoomRequest(const QString &room);
void sendInviteRoomRequest(const QString &userid, const QString &reason);
void sendKickRoomRequest(const QString &userid, const QString &reason);
void sendBanRoomRequest(const QString &userid, const QString &reason);
void sendUnbanRoomRequest(const QString &userid, const QString &reason);
void startedTyping(); void startedTyping();
void stoppedTyping(); void stoppedTyping();