Compare commits
43 Commits
v24.08.2
...
work/tobia
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5edb3e5145 | ||
|
|
a794420d3e | ||
|
|
8b606266c5 | ||
|
|
11e4329d5e | ||
|
|
68dfc6ca81 | ||
|
|
e0c8945431 | ||
|
|
fe60ee00fb | ||
|
|
5990e00577 | ||
|
|
358a699290 | ||
|
|
da6e4378d9 | ||
|
|
5edb0629b3 | ||
|
|
5170854a2c | ||
|
|
37d6033df4 | ||
|
|
ea2f891533 | ||
|
|
42cec7d5ba | ||
|
|
2df2e39d43 | ||
|
|
b34525a4d8 | ||
|
|
0a7bd64b0d | ||
|
|
11fd4f88ec | ||
|
|
4d9452b862 | ||
|
|
060e30e612 | ||
|
|
ade7270add | ||
|
|
338428b0c0 | ||
|
|
54574e4450 | ||
|
|
ae564451b8 | ||
|
|
9a4504ce61 | ||
|
|
80785a2ff3 | ||
|
|
cb8ed02e82 | ||
|
|
a64c1b8eab | ||
|
|
d43aa169c3 | ||
|
|
8ae7141851 | ||
|
|
d3908db2c9 | ||
|
|
55de838a55 | ||
|
|
4cdfc38b87 | ||
|
|
51197d7c1a | ||
|
|
2a2a2e0c05 | ||
|
|
07fee30cc0 | ||
|
|
83c6ce0ace | ||
|
|
fb7303efa0 | ||
|
|
ef5585d312 | ||
|
|
11475259a1 | ||
|
|
9df4cd6f13 | ||
|
|
c9583964c8 |
@@ -8,13 +8,13 @@ cmake_minimum_required(VERSION 3.16)
|
||||
|
||||
# KDE Applications version, managed by release script.
|
||||
set(RELEASE_SERVICE_VERSION_MAJOR "24")
|
||||
set(RELEASE_SERVICE_VERSION_MINOR "08")
|
||||
set(RELEASE_SERVICE_VERSION_MICRO "2")
|
||||
set(RELEASE_SERVICE_VERSION_MINOR "11")
|
||||
set(RELEASE_SERVICE_VERSION_MICRO "70")
|
||||
set(RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE_VERSION_MINOR}.${RELEASE_SERVICE_VERSION_MICRO}")
|
||||
|
||||
project(NeoChat VERSION ${RELEASE_SERVICE_VERSION})
|
||||
|
||||
set(KF_MIN_VERSION "6.0")
|
||||
set(KF_MIN_VERSION "6.4")
|
||||
set(QT_MIN_VERSION "6.5")
|
||||
|
||||
find_package(ECM ${KF_MIN_VERSION} REQUIRED NO_MODULE)
|
||||
@@ -38,7 +38,6 @@ include(KDEGitCommitHooks)
|
||||
include(ECMCheckOutboundLicense)
|
||||
include(ECMQtDeclareLoggingCategory)
|
||||
include(ECMAddAndroidApk)
|
||||
include(ECMQmlModule)
|
||||
if (NOT ANDROID)
|
||||
include(KDEClangFormat)
|
||||
endif()
|
||||
@@ -60,6 +59,7 @@ set_package_properties(Qt6 PROPERTIES
|
||||
PURPOSE "Basic application components"
|
||||
)
|
||||
|
||||
qt_policy(SET QTP0001 NEW)
|
||||
if (QT_KNOWN_POLICY_QTP0004)
|
||||
qt_policy(SET QTP0004 NEW)
|
||||
endif ()
|
||||
|
||||
@@ -274,6 +274,7 @@ void TextHandlerTest::receiveRichInPlainOut_data()
|
||||
QTest::newRow("ampersand") << QStringLiteral("a & b") << QStringLiteral("a & b");
|
||||
QTest::newRow("quote") << QStringLiteral(""a and b"") << QStringLiteral("\"a and b\"");
|
||||
QTest::newRow("new line") << QStringLiteral("new<br>line") << QStringLiteral("new\nline");
|
||||
QTest::newRow("unescape") << QStringLiteral("can't") << QStringLiteral("can't");
|
||||
}
|
||||
|
||||
void TextHandlerTest::receiveRichInPlainOut()
|
||||
|
||||
@@ -55,7 +55,6 @@
|
||||
<summary xml:lang="ca">Xategeu amb els vostres amics a Matrix</summary>
|
||||
<summary xml:lang="ca-valencia">Xategeu amb els vostres amics a Matrix</summary>
|
||||
<summary xml:lang="cs">Mluvte se svými přáteli na Matrixu</summary>
|
||||
<summary xml:lang="de">Mit den Freunden auf Matrix unterhalten</summary>
|
||||
<summary xml:lang="en-GB">Chat with your friends on matrix</summary>
|
||||
<summary xml:lang="eo">Babilu kun viaj amikoj sur matrix</summary>
|
||||
<summary xml:lang="es">Charle con sus amigos en matrix</summary>
|
||||
@@ -86,14 +85,12 @@
|
||||
<p xml:lang="ar">نيوتشات هو تطبيق دردشة يتيح لك الاستفادة الكاملة من شبكة Matrix. فهو يوفر لك طريقة آمنة لإرسال الرسائل النصية ومقاطع الفيديو والملفات الصوتية إلى عائلتك وزملائك وأصدقائك.</p>
|
||||
<p xml:lang="ca">El NeoChat és una aplicació de xat que us permet aprofitar plenament la xarxa Matrix. Proporciona una manera segura d'enviar missatges de text, vídeos i arxius d'àudio a la vostra família, companys i amics.</p>
|
||||
<p xml:lang="ca-valencia">NeoChat és una aplicació de xat que us permet aprofitar plenament la xarxa Matrix. Proporciona una manera segura d'enviar missatges de text, vídeos i arxius d'àudio a la vostra família, companys i amics.</p>
|
||||
<p xml:lang="de">NeoChat ist eine Anwendung für Unterhaltungen mit allen Vorteilen des Matrix-Netzwerkes. Sie bietet eine sichere Möglichkeit zum Versenden von Nachrichten, Videos und Audiodateien and die Familienmitglieder.</p>
|
||||
<p xml:lang="en-GB">NeoChat is a chat app that lets you take full advantage of the Matrix network. It provides you with a secure way to send text messages, videos and audio files to your family, colleagues and friends.</p>
|
||||
<p xml:lang="eo">NeoChat estas babilej-apo, kiu ebligas al vi plene profiti de la Matrix-reto. Ĝi provizas al vi sekuran manieron sendi tekstmesaĝojn, filmetojn kaj sondosierojn al via familio, kolegoj kaj amikoj.</p>
|
||||
<p xml:lang="es">NeoChat es una aplicación de chat que le permite aprovechar al máximo la red Matrix. Le proporciona un modo seguro de enviar mensajes de texto, vídeos y archivos de sonido a su familia, colegas y amigos.</p>
|
||||
<p xml:lang="eu">NeoChat, Matrix sarearen abantaila guztiei probetsua ateratzeko aukera ematen dizun berriketa aplikaizo bat da. Zure familiari, kideei eta lagunei testu mezuak, bideoak eta audio fitxategiak era seguruan bidaltzeko aukera ematen dizu.</p>
|
||||
<p xml:lang="fi">NeoChat on keskustelusovellus, jolla Matrix-verkosta saa täyden hyödyn. Se tarjoaa salatun kanavan lähettää perheelle, työkavereille ja ystäville tekstiviestejä sekä video- ja äänitiedostoja.</p>
|
||||
<p xml:lang="fr">NeoChat est une application de discussions vous permettant de profiter pleinement du réseau Matrix. Elle vous offre un moyen sécurisé d'envoyer des messages de texte, des vidéos et des fichiers audio à votre famille, vos collègues et vos ami(e)s.</p>
|
||||
<p xml:lang="gl">NeoChat é unha aplicación de conversa que lle permite usar todas as funcionalidades da rede Matrix. Fornece unha forma segura de enviar mensaxes de texto e ficheiros de vídeo e son a familiares, amizades ou no traballo.</p>
|
||||
<p xml:lang="he">NeoChat הוא יישום התכתבות שמאפשר לך לנצל את רשת Matrix במלואה. הוא מספק דרך מאובטחת לשליחת הודעות כתובות, סרטונים וקובצי שמע למשפחה, לעמיתים לעבודה ולחברים.</p>
|
||||
<p xml:lang="hu">A NeoChat egy olyan csevegőalkalmazás, amellyel teljes mértékben kihasználhatja a Matrix hálózatot. Biztonságos módot biztosít szöveges üzenetek, videók és hangfájlok küldéséhez családtagjainak, kollégáinak és barátainak.</p>
|
||||
<p xml:lang="ia">NeoChat es un app de conversation que te permitte prender avantage plen del rete Matrix. Il te forni un modo secur de inviar messages de texto, videos e files audio a tui familia, collegas e amicos.</p>
|
||||
@@ -113,7 +110,6 @@
|
||||
<p xml:lang="ar">يهدف نيوتشات إلى أن يكون تطبيقًا كامل الميزات لمواصفات ماتركس. على هذا النحو يتم دعم كل شيء في المواصفات المستقرة الحالية مع الاستثناءات الملحوظة لـ VoIP والخيوط وبعض جوانب التشفير من طرف إلى طرف. هناك عدد قليل من الإغفالات الصغيرة الأخرى بسبب حقيقة أن مواصفات ماتركس تتطور باستمرار ، ولكن يبقى الهدف توفير الدعم النهائي للمواصفات بأكملها.</p>
|
||||
<p xml:lang="ca">NeoChat pretén ser una aplicació amb totes les característiques per a l'especificació de Matrix. Com a tal, s'ha implementat tota l'especificació actual estable amb les notables excepcions de la VoIP, fils i alguns aspectes de l'encriptatge d'extrem a extrem. Hi ha algunes altres omissions més petites a causa del fet que l'especificació de Matrix està evolucionant constantment, però l'objectiu segueix sent proporcionar suport eventual per a tota l'especificació.</p>
|
||||
<p xml:lang="ca-valencia">NeoChat pretén ser una aplicació amb totes les característiques per a l'especificació de Matrix. Com a tal, s'ha implementat tota l'especificació actual estable amb les notables excepcions de la VoIP, fils i alguns aspectes de l'encriptació d'extrem a extrem. Hi ha algunes altres omissions més xicotetes a causa del fet que l'especificació de Matrix està evolucionant constantment, però l'objectiu seguix sent proporcionar suport eventual per a tota l'especificació.</p>
|
||||
<p xml:lang="de">NeoChat versucht eine vollumfängliche Anwendung für die Spezifikation von Matrix zu sein. Damit wird alles der aktuellen stabilen Spezifikation mit den erwähnenswerten Ausnahmen von VoIP, Diskussionsfäden und ein paar Teilen der Ende-zu-Ende-Verschlüsselung unterstützt. Zudem sind andere kleinere Auslassungen vorhanden, da sich die Matrixspezifikation ständig weiterentwickelt. Nichtsdestotrotz soll letztendlich die gesamte Spezifikation unterstützt werden.</p>
|
||||
<p xml:lang="en-GB">NeoChat aims to be a fully featured application for the Matrix specification. As such everything in the current stable specification with the notable exceptions of VoIP, threads and some aspects of End-to-End Encryption are supported. There are a few other smaller omissions due to the fact that the Matrix spec is constantly evolving but the aim remains to provide eventual support for the entire spec.</p>
|
||||
<p xml:lang="eo">NeoChat celas esti plene kapabla aplikaĵo por la Matrix-specifo. Kiel tia, ĉio en la nuna stabila specifo kun la rimarkindaj esceptoj de VoIP, fadenoj kaj kelkaj aspektoj de Fin-al-Fina Ĉifrado estas subtenataj. Estas kelkaj aliaj pli malgrandaj preterlasoj pro la fakto, ke la Matrix-speco konstante evoluas, sed la celo restas provizi finfine subtenon por la tuta specifaĵo.</p>
|
||||
<p xml:lang="es">NeoChat pretende ser una aplicación con todas las funciones para la especificación de Matrix. Como tal, admite todo en la especificación estable actual, con las notables excepciones de VoIP, subprocesos y algunas funciones de cifrado de extremo a extremo. Existen algunas omisiones menos importantes debido al hecho de que la especificación de Matrix está en constante evolución, pero el objetivo sigue siendo brindar compatibilidad final con toda la especificación.</p>
|
||||
@@ -143,7 +139,6 @@
|
||||
<p xml:lang="ar">نظرًا لطبيعة تطوير مواصفات ماتركس، يدعم نيوتشات أيضًا العديد من الميزات غير المستقرة وهي:</p>
|
||||
<p xml:lang="ca">A causa de la naturalesa del desenvolupament de l'especificació de Matrix, el NeoChat també implementa nombroses característiques inestables. Actualment són:</p>
|
||||
<p xml:lang="ca-valencia">A causa de la naturalea del desenvolupament de l'especificació de Matrix, NeoChat també implementa nombroses característiques inestables. Actualment són:</p>
|
||||
<p xml:lang="de">Durch die Weiterentwicklung der Matrix-Spezifikation unterstützt auch NeoChat einige als noch instabil gekennzeichnete Funktionen. Derzeit sind das:</p>
|
||||
<p xml:lang="en-GB">Due to the nature of the Matrix specification development NeoChat also supports numerous unstable features. Currently these are:</p>
|
||||
<p xml:lang="eo">Pro la naturo de la Matrix-specifevoluo NeoChat ankaŭ subtenas multajn malstabilajn funkciojn. Nuntempe ĉi tiuj estas:</p>
|
||||
<p xml:lang="es">Debido a la naturaleza del desarrollo de la especificación de Matrix, NeoChat también permite numerosas funciones no estables, como:</p>
|
||||
@@ -298,7 +293,6 @@
|
||||
<caption xml:lang="ar">العرض الرئيسة مع قائمة الغرف والدردشات و معلومات الغرفة</caption>
|
||||
<caption xml:lang="ca">Vista principal amb la llista de sales, xats i informació de les sales</caption>
|
||||
<caption xml:lang="ca-valencia">Vista principal amb la llista de sales, xats i informació de les sales</caption>
|
||||
<caption xml:lang="de">Hauptansicht mit Raumliste, Unterhaltung und Raum-Informationen</caption>
|
||||
<caption xml:lang="en-GB">Main view with room list, chat, and room information</caption>
|
||||
<caption xml:lang="eo">Ĉefa vido kun ĉambra listo, babilejo kaj ĉambra informo</caption>
|
||||
<caption xml:lang="es">Vista principal con la lista de salas, chat e información de la sala</caption>
|
||||
@@ -332,14 +326,12 @@
|
||||
<caption xml:lang="ar">اكتشف مجتمعات جديدة مع فضاءات ماتركس</caption>
|
||||
<caption xml:lang="ca">Descobriu comunitats noves amb els espais de Matrix</caption>
|
||||
<caption xml:lang="ca-valencia">Descobriu comunitats noves amb els espais de Matrix</caption>
|
||||
<caption xml:lang="de">Neue Gemeinschaften mit den Umgebungen von Matrix erkunden</caption>
|
||||
<caption xml:lang="en-GB">Discover new communities with Matrix Spaces</caption>
|
||||
<caption xml:lang="eo">Malkovru novajn komunumojn per Matrix Spaces</caption>
|
||||
<caption xml:lang="es">Descubra nuevas comunidades con los espacios de Matrix</caption>
|
||||
<caption xml:lang="eu">Ezagutu komunitate berriak Matrixeko Tokiak erabiliz</caption>
|
||||
<caption xml:lang="fi">Löydä uusia yhteisöjä Matrix Spacesillä</caption>
|
||||
<caption xml:lang="fr">Découvrez de nouvelles communautés avec les espaces sous Matrix</caption>
|
||||
<caption xml:lang="gl">Descubra novas comunidades dos espazos de Matrix.</caption>
|
||||
<caption xml:lang="he">אפשר להיחשף לקהילות חדשות דרך Matrix Spaces</caption>
|
||||
<caption xml:lang="hu">Fedezzen fel új közösségeket a Matrix Terek segítségével</caption>
|
||||
<caption xml:lang="ia">Discoperi nove communitate con Matrix Spaces (Spatios de Matrix)</caption>
|
||||
@@ -369,7 +361,6 @@
|
||||
<caption xml:lang="ar">العرض الرئيسة مع قائمة الغرف والدردشات و معلومات الغرفة</caption>
|
||||
<caption xml:lang="ca">Vista principal amb la llista de sales, xats i informació de les sales</caption>
|
||||
<caption xml:lang="ca-valencia">Vista principal amb la llista de sales, xats i informació de les sales</caption>
|
||||
<caption xml:lang="de">Hauptansicht mit Raumliste, Unterhaltung und Raum-Informationen</caption>
|
||||
<caption xml:lang="en-GB">Main view with room list, chat, and room information</caption>
|
||||
<caption xml:lang="eo">Ĉefa vido kun ĉambra listo, babilejo kaj ĉambra informo</caption>
|
||||
<caption xml:lang="es">Vista principal con la lista de salas, chat e información de la sala</caption>
|
||||
@@ -404,7 +395,6 @@
|
||||
<caption xml:lang="ca">Pantalla d'inici de sessió</caption>
|
||||
<caption xml:lang="ca-valencia">Pantalla d'inici de sessió</caption>
|
||||
<caption xml:lang="cs">Přihlašovací obrazovka</caption>
|
||||
<caption xml:lang="de">Anmeldebildschirm</caption>
|
||||
<caption xml:lang="en-GB">Login screen</caption>
|
||||
<caption xml:lang="eo">Ensaluta ekrano</caption>
|
||||
<caption xml:lang="es">Pantalla de inicio de sesión</caption>
|
||||
@@ -437,9 +427,6 @@
|
||||
<content_attribute id="social-chat">intense</content_attribute>
|
||||
</content_rating>
|
||||
<releases>
|
||||
<release version="24.08.2" date="2024-10-10"/>
|
||||
<release version="24.08.1" date="2024-09-12"/>
|
||||
<release version="24.08.0" date="2024-08-22"/>
|
||||
<release version="24.05.2" date="2024-07-04"/>
|
||||
<release version="24.05.1" date="2024-06-13"/>
|
||||
<release version="24.05.0" date="2024-05-23"/>
|
||||
|
||||
426
po/ar/neochat.po
426
po/ar/neochat.po
File diff suppressed because it is too large
Load Diff
@@ -6,7 +6,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: neochat\n"
|
||||
"Report-Msgid-Bugs-To: https://bugs.kde.org\n"
|
||||
"POT-Creation-Date: 2024-10-07 02:28+0000\n"
|
||||
"POT-Creation-Date: 2024-08-07 00:40+0000\n"
|
||||
"PO-Revision-Date: 2023-12-12 01:02+0100\n"
|
||||
"Last-Translator: Enol P. <enolp@softastur.org>\n"
|
||||
"Language-Team: Asturian <alministradores@softastur.org>\n"
|
||||
@@ -88,7 +88,7 @@ msgctxt "@action:button"
|
||||
msgid "Cancel reply"
|
||||
msgstr ""
|
||||
|
||||
#: src/controller.cpp:136
|
||||
#: src/controller.cpp:132
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"The reason for using push notifications, as in: '[Push notifications are "
|
||||
@@ -96,47 +96,47 @@ msgctxt ""
|
||||
msgid "Receiving notifications for new messages"
|
||||
msgstr ""
|
||||
|
||||
#: src/controller.cpp:229
|
||||
#: src/controller.cpp:211
|
||||
#, kde-format
|
||||
msgid "Network Error: %1"
|
||||
msgstr ""
|
||||
|
||||
#: src/controller.cpp:255
|
||||
#: src/controller.cpp:233
|
||||
#, kde-format
|
||||
msgid "Access token wasn't found"
|
||||
msgstr ""
|
||||
|
||||
#: src/controller.cpp:255
|
||||
#: src/controller.cpp:233
|
||||
#, kde-format
|
||||
msgid "Maybe it was deleted?"
|
||||
msgstr ""
|
||||
|
||||
#: src/controller.cpp:259
|
||||
#: src/controller.cpp:237
|
||||
#, kde-format
|
||||
msgid "Access to keychain was denied."
|
||||
msgstr ""
|
||||
|
||||
#: src/controller.cpp:259
|
||||
#: src/controller.cpp:237
|
||||
#, kde-format
|
||||
msgid "Please allow NeoChat to read the access token"
|
||||
msgstr ""
|
||||
|
||||
#: src/controller.cpp:262
|
||||
#: src/controller.cpp:240
|
||||
#, kde-format
|
||||
msgid "No keychain available."
|
||||
msgstr ""
|
||||
|
||||
#: src/controller.cpp:262
|
||||
#: src/controller.cpp:240
|
||||
#, kde-format
|
||||
msgid "Please install a keychain, e.g. KWallet or GNOME keyring on Linux"
|
||||
msgstr ""
|
||||
|
||||
#: src/controller.cpp:265
|
||||
#: src/controller.cpp:243
|
||||
#, kde-format
|
||||
msgid "Unable to read access token"
|
||||
msgstr ""
|
||||
|
||||
#: src/controller.cpp:357
|
||||
#: src/controller.cpp:339
|
||||
#, kde-format
|
||||
msgid "Receiving push notifications"
|
||||
msgstr ""
|
||||
@@ -363,7 +363,7 @@ msgid "Custom"
|
||||
msgstr ""
|
||||
|
||||
#: src/enums/powerlevel.cpp:88 src/models/permissionsmodel.cpp:162
|
||||
#: src/models/userlistmodel.cpp:118
|
||||
#: src/models/userlistmodel.cpp:114
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"%1 is the name of the power level, e.g. admin and %2 is the value that "
|
||||
@@ -372,11 +372,13 @@ msgid "%1 (%2)"
|
||||
msgstr ""
|
||||
|
||||
#: src/eventhandler.cpp:297 src/eventhandler.cpp:505
|
||||
#: src/models/messagecontentmodel.cpp:236 src/models/messageeventmodel.cpp:440
|
||||
#, kde-format
|
||||
msgid "<i>[This message was deleted]</i>"
|
||||
msgstr ""
|
||||
|
||||
#: src/eventhandler.cpp:297
|
||||
#: src/eventhandler.cpp:297 src/models/messagecontentmodel.cpp:237
|
||||
#: src/models/messageeventmodel.cpp:441
|
||||
#, kde-format
|
||||
msgid "<i>[This message was deleted: %1]</i>"
|
||||
msgstr ""
|
||||
@@ -736,12 +738,12 @@ msgctxt "The location being downloaded to"
|
||||
msgid "Destination"
|
||||
msgstr ""
|
||||
|
||||
#: src/login.cpp:88 src/login.cpp:103
|
||||
#: src/login.cpp:90 src/login.cpp:105
|
||||
#, kde-format
|
||||
msgid "Network Error"
|
||||
msgstr ""
|
||||
|
||||
#: src/login.cpp:96
|
||||
#: src/login.cpp:98
|
||||
#, kde-format
|
||||
msgid "Login Failed: %1"
|
||||
msgstr ""
|
||||
@@ -810,7 +812,7 @@ msgid "Loading…"
|
||||
msgstr ""
|
||||
|
||||
#: src/login/Login.qml:38 src/login/WelcomePage.qml:198
|
||||
#: src/settings/ThreePIdCard.qml:181
|
||||
#: src/settings/ThreePIdCard.qml:183
|
||||
#, kde-format
|
||||
msgctxt "@action:button"
|
||||
msgid "Continue"
|
||||
@@ -851,7 +853,7 @@ msgstr ""
|
||||
msgid "Password:"
|
||||
msgstr ""
|
||||
|
||||
#: src/login/Password.qml:32 src/settings/AccountEditorPage.qml:149
|
||||
#: src/login/Password.qml:32 src/settings/AccountEditorPage.qml:152
|
||||
#: src/settings/NetworkProxyPage.qml:95
|
||||
#, kde-format
|
||||
msgid "Password"
|
||||
@@ -1455,7 +1457,7 @@ msgctxt "As in 'The user's own emojis"
|
||||
msgid "Own Emojis"
|
||||
msgstr ""
|
||||
|
||||
#: src/models/messagecontentmodel.cpp:223
|
||||
#: src/models/messagecontentmodel.cpp:229
|
||||
#: src/timeline/LinkPreviewLoadComponent.qml:66
|
||||
#, kde-format
|
||||
msgid "Loading reply"
|
||||
@@ -1690,13 +1692,13 @@ msgctxt "Notification type"
|
||||
msgid "Call invitation"
|
||||
msgstr ""
|
||||
|
||||
#: src/models/reactionmodel.cpp:64
|
||||
#: src/models/reactionmodel.cpp:69
|
||||
#, kde-format
|
||||
msgctxt "Separate the usernames of users"
|
||||
msgid " and "
|
||||
msgstr ""
|
||||
|
||||
#: src/models/reactionmodel.cpp:71
|
||||
#: src/models/reactionmodel.cpp:76
|
||||
#, kde-format
|
||||
msgctxt "%1 is the number of other users"
|
||||
msgid " and %1 other"
|
||||
@@ -1704,7 +1706,7 @@ msgid_plural " and %1 others"
|
||||
msgstr[0] ""
|
||||
msgstr[1] ""
|
||||
|
||||
#: src/models/reactionmodel.cpp:75
|
||||
#: src/models/reactionmodel.cpp:80
|
||||
#, kde-format
|
||||
msgctxt "%2 is the users who reacted and %3 the emoji that was given"
|
||||
msgid "%2 reacted with %3"
|
||||
@@ -1757,133 +1759,139 @@ msgstr ""
|
||||
msgid "Space creation failed: %1"
|
||||
msgstr ""
|
||||
|
||||
#: src/neochatroom.cpp:1439
|
||||
#: src/neochatroom.cpp:1403
|
||||
#, kde-format
|
||||
msgid "Report sent successfully."
|
||||
msgstr ""
|
||||
|
||||
#: src/neochatroom.cpp:1764 src/neochatroom.cpp:1772
|
||||
#: src/neochatroom.cpp:1724 src/neochatroom.cpp:1732
|
||||
#, kde-format
|
||||
msgctxt "'Lat' and 'Lon' as in Latitude and Longitude"
|
||||
msgid "Lat: %1, Lon: %2"
|
||||
msgstr ""
|
||||
|
||||
#: src/notificationsmanager.cpp:126 src/notificationsmanager.cpp:334
|
||||
#: src/notificationsmanager.cpp:126 src/notificationsmanager.cpp:330
|
||||
#, kde-format
|
||||
msgid "Encrypted Message"
|
||||
msgstr ""
|
||||
|
||||
#: src/notificationsmanager.cpp:214 src/qml/Main.qml:279
|
||||
#: src/notificationsmanager.cpp:210 src/qml/Main.qml:279
|
||||
#, kde-format
|
||||
msgid "%1: %2"
|
||||
msgstr ""
|
||||
|
||||
#: src/notificationsmanager.cpp:220
|
||||
#: src/notificationsmanager.cpp:216
|
||||
#, kde-format
|
||||
msgid "Open NeoChat in this room"
|
||||
msgstr ""
|
||||
|
||||
#: src/notificationsmanager.cpp:233 src/qml/DelegateContextMenu.qml:98
|
||||
#: src/notificationsmanager.cpp:229 src/qml/DelegateContextMenu.qml:98
|
||||
#: src/qml/HoverActions.qml:111
|
||||
#, kde-format
|
||||
msgid "Reply"
|
||||
msgstr ""
|
||||
|
||||
#: src/notificationsmanager.cpp:234
|
||||
#: src/notificationsmanager.cpp:230
|
||||
#, kde-format
|
||||
msgid "Reply..."
|
||||
msgstr ""
|
||||
|
||||
#: src/notificationsmanager.cpp:253
|
||||
#: src/notificationsmanager.cpp:249
|
||||
#, kde-format
|
||||
msgid "%1 invited you to a room"
|
||||
msgstr ""
|
||||
|
||||
#: src/notificationsmanager.cpp:256
|
||||
#: src/notificationsmanager.cpp:252
|
||||
#, kde-format
|
||||
msgid "Open this invitation in NeoChat"
|
||||
msgstr ""
|
||||
|
||||
#: src/notificationsmanager.cpp:266
|
||||
#: src/notificationsmanager.cpp:262
|
||||
#, kde-format
|
||||
msgctxt "@action:button The thing being accepted is an invitation to chat"
|
||||
msgid "Accept"
|
||||
msgstr ""
|
||||
|
||||
#: src/notificationsmanager.cpp:267
|
||||
#: src/notificationsmanager.cpp:263
|
||||
#, kde-format
|
||||
msgctxt "@action:button The thing being rejected is an invitation to chat"
|
||||
msgid "Reject"
|
||||
msgstr ""
|
||||
|
||||
#: src/notificationsmanager.cpp:268
|
||||
#: src/notificationsmanager.cpp:264
|
||||
#, kde-format
|
||||
msgctxt "@action:button The thing being rejected is an invitation to chat"
|
||||
msgid "Reject and Ignore User"
|
||||
msgstr ""
|
||||
|
||||
#: src/notificationsmanager.cpp:327
|
||||
#: src/notificationsmanager.cpp:323
|
||||
#, kde-format
|
||||
msgid "%1 (%2)"
|
||||
msgstr ""
|
||||
|
||||
#: src/notificationsmanager.cpp:338
|
||||
#: src/notificationsmanager.cpp:334
|
||||
#, kde-format
|
||||
msgid "Open NeoChat"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/AccountMenu.qml:23 src/qml/UserInfo.qml:46
|
||||
#: src/qml/AccountMenu.qml:23
|
||||
#, kde-format
|
||||
msgctxt "@action:button"
|
||||
msgid "Show QR code"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/AccountMenu.qml:39 src/qml/UserInfo.qml:46
|
||||
#, kde-format
|
||||
msgid "Edit this account"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/AccountMenu.qml:28 src/settings/AccountsPage.qml:34
|
||||
#: src/qml/AccountMenu.qml:44 src/settings/AccountsPage.qml:34
|
||||
#: src/settings/AccountsPage.qml:51
|
||||
#, kde-format
|
||||
msgid "Account editor"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/AccountMenu.qml:32
|
||||
#: src/qml/AccountMenu.qml:48
|
||||
#, kde-format
|
||||
msgid "Notification settings"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/AccountMenu.qml:39 src/settings/DevicesPage.qml:17
|
||||
#: src/qml/AccountMenu.qml:55 src/settings/DevicesPage.qml:17
|
||||
#: src/settings/NeoChatSettingsView.qml:85
|
||||
#, kde-format
|
||||
msgid "Devices"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/AccountMenu.qml:46 src/settings/NeoChatGeneralPage.qml:241
|
||||
#: src/qml/AccountMenu.qml:62 src/settings/NeoChatGeneralPage.qml:241
|
||||
#, kde-format
|
||||
msgid "Open developer tools"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/AccountMenu.qml:52
|
||||
#: src/qml/AccountMenu.qml:68
|
||||
#, kde-format
|
||||
msgctxt "@title:window"
|
||||
msgid "Developer Tools"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/AccountMenu.qml:58
|
||||
#: src/qml/AccountMenu.qml:74
|
||||
#, kde-format
|
||||
msgctxt "@action:inmenu"
|
||||
msgid "Open Secret Backup"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/AccountMenu.qml:62
|
||||
#: src/qml/AccountMenu.qml:78
|
||||
#, kde-format
|
||||
msgctxt "@title:window"
|
||||
msgid "Open Key Backup"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/AccountMenu.qml:66
|
||||
#: src/qml/AccountMenu.qml:82
|
||||
#, kde-format
|
||||
msgctxt "@action:inmenu"
|
||||
msgid "Verify this Device"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/AccountMenu.qml:72 src/settings/AccountsPage.qml:88
|
||||
#: src/qml/AccountMenu.qml:88 src/settings/AccountsPage.qml:88
|
||||
#, kde-format
|
||||
msgid "Logout"
|
||||
msgstr ""
|
||||
@@ -2186,8 +2194,8 @@ msgstr ""
|
||||
|
||||
#: src/qml/CreateRoomDialog.qml:30 src/qml/ExploreComponent.qml:64
|
||||
#: src/qml/ExploreComponent.qml:66 src/qml/ExploreComponentMobile.qml:162
|
||||
#: src/qml/ExploreComponentMobile.qml:164 src/qml/SpaceDrawer.qml:294
|
||||
#: src/qml/SpaceDrawer.qml:296
|
||||
#: src/qml/ExploreComponentMobile.qml:164 src/qml/SpaceDrawer.qml:272
|
||||
#: src/qml/SpaceDrawer.qml:274
|
||||
#, kde-format
|
||||
msgctxt "@title"
|
||||
msgid "Create a Space"
|
||||
@@ -2220,7 +2228,7 @@ msgstr ""
|
||||
msgid "Space"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/CreateRoomDialog.qml:77 src/settings/AccountEditorPage.qml:106
|
||||
#: src/qml/CreateRoomDialog.qml:77
|
||||
#, kde-format
|
||||
msgid "Name:"
|
||||
msgstr ""
|
||||
@@ -2858,13 +2866,13 @@ msgstr ""
|
||||
msgid "Send this location"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/LocationsPage.qml:16 src/qml/RoomInformation.qml:127
|
||||
#: src/qml/LocationsPage.qml:16 src/qml/RoomInformation.qml:125
|
||||
#, kde-format
|
||||
msgctxt "Locations on a map"
|
||||
msgid "Locations"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/LocationsPage.qml:68
|
||||
#: src/qml/LocationsPage.qml:65
|
||||
#, kde-format
|
||||
msgid "There are no locations shared in this room."
|
||||
msgstr ""
|
||||
@@ -3110,12 +3118,12 @@ msgstr ""
|
||||
msgid "Reason for reporting this message"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomDelegate.qml:108
|
||||
#: src/qml/RoomDelegate.qml:112
|
||||
#, kde-format
|
||||
msgid "Muted room"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomDelegate.qml:141
|
||||
#: src/qml/RoomDelegate.qml:145
|
||||
#, kde-format
|
||||
msgid "Configure room"
|
||||
msgstr ""
|
||||
@@ -3136,86 +3144,86 @@ msgstr ""
|
||||
msgid "Media"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomInformation.qml:42
|
||||
#: src/qml/RoomInformation.qml:40
|
||||
#, kde-format
|
||||
msgctxt "@action:title"
|
||||
msgid "Space Members"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomInformation.qml:42
|
||||
#: src/qml/RoomInformation.qml:40
|
||||
#, kde-format
|
||||
msgctxt "@action:title"
|
||||
msgid "Room information"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomInformation.qml:70
|
||||
#: src/qml/RoomInformation.qml:68
|
||||
#, kde-format
|
||||
msgctxt "Room actions"
|
||||
msgid "Actions"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomInformation.qml:80
|
||||
#: src/qml/RoomInformation.qml:78
|
||||
#, kde-format
|
||||
msgid "Search in this room"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomInformation.qml:89
|
||||
#: src/qml/RoomInformation.qml:87
|
||||
#, kde-format
|
||||
msgctxt "@action:title"
|
||||
msgid "Search"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomInformation.qml:97
|
||||
#: src/qml/RoomInformation.qml:95
|
||||
#, kde-format
|
||||
msgctxt "@action:button"
|
||||
msgid "Verify user"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomInformation.qml:108
|
||||
#: src/qml/RoomInformation.qml:106
|
||||
#, kde-format
|
||||
msgid "Remove room from favorites"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomInformation.qml:108
|
||||
#: src/qml/RoomInformation.qml:106
|
||||
#, kde-format
|
||||
msgid "Favorite this room"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomInformation.qml:121
|
||||
#: src/qml/RoomInformation.qml:119
|
||||
#, kde-format
|
||||
msgid "Show locations for this room"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomInformation.qml:136
|
||||
#: src/qml/RoomInformation.qml:134
|
||||
#, kde-format
|
||||
msgctxt "@action:button"
|
||||
msgid "Leave this room"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomInformation.qml:149
|
||||
#: src/qml/RoomInformation.qml:147
|
||||
#, kde-format
|
||||
msgid "Members"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomInformation.qml:164 src/qml/SpaceHomePage.qml:55
|
||||
#: src/qml/RoomInformation.qml:162 src/qml/SpaceHomePage.qml:55
|
||||
#, kde-format
|
||||
msgctxt "@title"
|
||||
msgid "Invite a User"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomInformation.qml:168
|
||||
#: src/qml/RoomInformation.qml:166
|
||||
#, kde-format
|
||||
msgid "Invite user to room"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomInformation.qml:175
|
||||
#: src/qml/RoomInformation.qml:173
|
||||
#, kde-format
|
||||
msgid "%1 member"
|
||||
msgid_plural "%1 members"
|
||||
msgstr[0] ""
|
||||
msgstr[1] ""
|
||||
|
||||
#: src/qml/RoomInformation.qml:175
|
||||
#: src/qml/RoomInformation.qml:173
|
||||
#, kde-format
|
||||
msgid "No member count"
|
||||
msgstr ""
|
||||
@@ -3262,7 +3270,12 @@ msgstr ""
|
||||
msgid "NeoChat is offline. Please check your network connection."
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomPage.qml:264
|
||||
#: src/qml/RoomPage.qml:158
|
||||
#, kde-format
|
||||
msgid "Select or join a room to get started"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomPage.qml:265
|
||||
#, kde-format
|
||||
msgid "Message Source"
|
||||
msgstr ""
|
||||
@@ -3417,19 +3430,19 @@ msgstr ""
|
||||
msgid "Home"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/SpaceDrawer.qml:134
|
||||
#: src/qml/SpaceDrawer.qml:135
|
||||
#, kde-format
|
||||
msgctxt "@button View all one-on-one chats with your friends."
|
||||
msgid "Friends"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/SpaceDrawer.qml:242
|
||||
#: src/qml/SpaceDrawer.qml:220
|
||||
#, kde-format
|
||||
msgctxt "Join <name of a space>"
|
||||
msgid "Join %1"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/SpaceDrawer.qml:284
|
||||
#: src/qml/SpaceDrawer.qml:262
|
||||
#, kde-format
|
||||
msgid "Create a space"
|
||||
msgstr ""
|
||||
@@ -3516,27 +3529,27 @@ msgctxt "'Space' is a matrix space"
|
||||
msgid "Leave Space"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/TimelineView.qml:201
|
||||
#: src/qml/TimelineView.qml:196
|
||||
#, kde-format
|
||||
msgid "Jump to first unread message"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/TimelineView.qml:201
|
||||
#: src/qml/TimelineView.qml:196
|
||||
#, kde-format
|
||||
msgid "Jump to oldest loaded message"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/TimelineView.qml:245
|
||||
#: src/qml/TimelineView.qml:236
|
||||
#, kde-format
|
||||
msgid "Jump to latest message"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/TimelineView.qml:270
|
||||
#: src/qml/TimelineView.qml:261
|
||||
#, kde-format
|
||||
msgid "Drag items here to share them"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/TimelineView.qml:277
|
||||
#: src/qml/TimelineView.qml:268
|
||||
#, kde-format
|
||||
msgctxt "Message displayed when some users are typing"
|
||||
msgid "%2 is typing"
|
||||
@@ -3878,72 +3891,72 @@ msgstr ""
|
||||
msgid "The session verification was canceled due to an unknown error."
|
||||
msgstr ""
|
||||
|
||||
#: src/registration.cpp:309
|
||||
#: src/registration.cpp:311
|
||||
#, kde-format
|
||||
msgid "No server."
|
||||
msgstr ""
|
||||
|
||||
#: src/registration.cpp:311
|
||||
#: src/registration.cpp:313
|
||||
#, kde-format
|
||||
msgid "Checking Server availability."
|
||||
msgstr ""
|
||||
|
||||
#: src/registration.cpp:313
|
||||
#: src/registration.cpp:315
|
||||
#, kde-format
|
||||
msgid "This is not a valid server."
|
||||
msgstr ""
|
||||
|
||||
#: src/registration.cpp:315
|
||||
#: src/registration.cpp:317
|
||||
#, kde-format
|
||||
msgid "Registration for this server is disabled."
|
||||
msgstr ""
|
||||
|
||||
#: src/registration.cpp:317
|
||||
#: src/registration.cpp:319
|
||||
#, kde-format
|
||||
msgid "No username."
|
||||
msgstr ""
|
||||
|
||||
#: src/registration.cpp:319
|
||||
#: src/registration.cpp:321
|
||||
#, kde-format
|
||||
msgid "Checking username availability."
|
||||
msgstr ""
|
||||
|
||||
#: src/registration.cpp:321
|
||||
#: src/registration.cpp:323
|
||||
#, kde-format
|
||||
msgid "This username is not available."
|
||||
msgstr ""
|
||||
|
||||
#: src/registration.cpp:323
|
||||
#: src/registration.cpp:325
|
||||
#, kde-format
|
||||
msgid "Continue"
|
||||
msgstr ""
|
||||
|
||||
#: src/registration.cpp:325
|
||||
#: src/registration.cpp:327
|
||||
#, kde-format
|
||||
msgid "Working"
|
||||
msgstr ""
|
||||
|
||||
#: src/roommanager.cpp:139
|
||||
#: src/roommanager.cpp:138
|
||||
#, kde-format
|
||||
msgid "Malformed or empty Matrix id"
|
||||
msgstr ""
|
||||
|
||||
#: src/roommanager.cpp:139
|
||||
#: src/roommanager.cpp:138
|
||||
#, kde-format
|
||||
msgid "%1 is not a correct Matrix identifier"
|
||||
msgstr ""
|
||||
|
||||
#: src/roommanager.cpp:352
|
||||
#: src/roommanager.cpp:345
|
||||
#, kde-format
|
||||
msgid "Failed to join room"
|
||||
msgstr ""
|
||||
|
||||
#: src/roommanager.cpp:388
|
||||
#: src/roommanager.cpp:377
|
||||
#, kde-format
|
||||
msgid "You requested to join '%1'"
|
||||
msgstr ""
|
||||
|
||||
#: src/roommanager.cpp:392
|
||||
#: src/roommanager.cpp:381
|
||||
#, kde-format
|
||||
msgid "Failed to request joining room"
|
||||
msgstr ""
|
||||
@@ -3965,7 +3978,12 @@ msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:101
|
||||
#, kde-format
|
||||
msgid "User information"
|
||||
msgid "User Information"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:106
|
||||
#, kde-format
|
||||
msgid "Display Name:"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:112
|
||||
@@ -3973,96 +3991,101 @@ msgstr ""
|
||||
msgid "Label:"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:117
|
||||
#: src/settings/AccountEditorPage.qml:113
|
||||
#, kde-format
|
||||
msgctxt "@action:button"
|
||||
msgid "QR code for account"
|
||||
msgid "Work"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:133
|
||||
#: src/settings/AccountEditorPage.qml:188
|
||||
#: src/settings/AccountEditorPage.qml:118
|
||||
#, kde-format
|
||||
msgctxt "@action:button"
|
||||
msgid "Show QR Code"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:135
|
||||
#: src/settings/AccountEditorPage.qml:191
|
||||
#: src/settings/EmoticonEditorPage.qml:108 src/settings/RoomGeneralPage.qml:105
|
||||
#, kde-format
|
||||
msgid "Save"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:154
|
||||
#: src/settings/AccountEditorPage.qml:157
|
||||
#, kde-format
|
||||
msgid "Your server doesn't support changing your password"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:161
|
||||
#: src/settings/AccountEditorPage.qml:164
|
||||
#, kde-format
|
||||
msgid "Current Password:"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:168
|
||||
#: src/settings/AccountEditorPage.qml:171
|
||||
#, kde-format
|
||||
msgid "New Password:"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:175
|
||||
#: src/settings/AccountEditorPage.qml:178
|
||||
#, kde-format
|
||||
msgid "Confirm new Password:"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:180
|
||||
#: src/settings/AccountEditorPage.qml:183
|
||||
#, kde-format
|
||||
msgid "Passwords don't match"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:194
|
||||
#: src/settings/AccountEditorPage.qml:198
|
||||
#, kde-format
|
||||
msgid "Passwords do not match"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:201
|
||||
#: src/settings/AccountEditorPage.qml:205
|
||||
#, kde-format
|
||||
msgid "Email Addresses"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:207
|
||||
#: src/settings/AccountEditorPage.qml:211
|
||||
#, kde-format
|
||||
msgid "Phone Numbers"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:212
|
||||
#: src/settings/AccountEditorPage.qml:216
|
||||
#, kde-format
|
||||
msgid "Identity Server"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:221
|
||||
#: src/settings/AccountEditorPage.qml:225
|
||||
#, kde-format
|
||||
msgid "Server Information"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:225
|
||||
#: src/settings/AccountEditorPage.qml:229
|
||||
#, kde-format
|
||||
msgid "Homeserver url"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:246
|
||||
#: src/settings/AccountEditorPage.qml:250
|
||||
#, kde-format
|
||||
msgctxt "@title"
|
||||
msgid "Account Management"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:251
|
||||
#: src/settings/AccountEditorPage.qml:255
|
||||
#, kde-format
|
||||
msgid "Deactivate Account"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:266
|
||||
#: src/settings/AccountEditorPage.qml:271
|
||||
#, kde-format
|
||||
msgid "Password changed successfully"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:268
|
||||
#: src/settings/AccountEditorPage.qml:273
|
||||
#, kde-format
|
||||
msgid "Wrong password entered"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:270
|
||||
#: src/settings/AccountEditorPage.qml:275
|
||||
#, kde-format
|
||||
msgid "Unknown problem while trying to change password"
|
||||
msgstr ""
|
||||
@@ -4303,6 +4326,44 @@ msgctxt "@title"
|
||||
msgid "Stickers & Emojis"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/ExportKeysDialog.qml:18
|
||||
#: src/settings/NeoChatSecurityPage.qml:101
|
||||
#, kde-format
|
||||
msgctxt "@title"
|
||||
msgid "Export Keys"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/ExportKeysDialog.qml:33 src/settings/ImportKeysDialog.qml:51
|
||||
#, kde-format
|
||||
msgctxt "@label:textbox"
|
||||
msgid "Passphrase:"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/ExportKeysDialog.qml:37
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"A passphrase to secure your key backup. It should not be your account "
|
||||
"password."
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/ExportKeysDialog.qml:42
|
||||
#, kde-format
|
||||
msgctxt "@action:button"
|
||||
msgid "Export keys"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/ExportKeysDialog.qml:50
|
||||
#, kde-format
|
||||
msgctxt "@info"
|
||||
msgid "Keys exported successfully"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/ExportKeysDialog.qml:54 src/settings/ImportKeysDialog.qml:74
|
||||
#, kde-format
|
||||
msgctxt "@info"
|
||||
msgid "Unknown error"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/GlobalNotificationsPage.qml:19
|
||||
#, kde-format
|
||||
msgctxt "@title:window"
|
||||
@@ -4402,25 +4463,48 @@ msgctxt "@title"
|
||||
msgid "Ignored Users"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/IgnoredUsersDialog.qml:24
|
||||
#: src/settings/NeoChatSecurityPage.qml:35
|
||||
#, kde-format
|
||||
msgctxt "@title:group"
|
||||
msgid "Ignored Users"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/IgnoredUsersDialog.qml:29
|
||||
#: src/settings/IgnoredUsersDialog.qml:25
|
||||
#, kde-format
|
||||
msgctxt "Placeholder message when no user is ignored"
|
||||
msgid "You are not ignoring any users"
|
||||
msgid "No ignored users"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/IgnoredUsersDialog.qml:51
|
||||
#: src/settings/IgnoredUsersDialog.qml:55
|
||||
#, kde-format
|
||||
msgctxt "@action:button"
|
||||
msgid "Unignore this user"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/ImportKeysDialog.qml:22 src/settings/NeoChatSecurityPage.qml:84
|
||||
#, kde-format
|
||||
msgctxt "@title"
|
||||
msgid "Import Keys"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/ImportKeysDialog.qml:35
|
||||
#, kde-format
|
||||
msgctxt "@action:button"
|
||||
msgid "Choose backup file"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/ImportKeysDialog.qml:56
|
||||
#, kde-format
|
||||
msgctxt "@action:button"
|
||||
msgid "Import keys"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/ImportKeysDialog.qml:66
|
||||
#, kde-format
|
||||
msgctxt "@info"
|
||||
msgid "Invalid passphrase"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/ImportKeysDialog.qml:70
|
||||
#, kde-format
|
||||
msgctxt "@info"
|
||||
msgid "Invalid key backup data"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatGeneralPage.qml:20
|
||||
#, kde-format
|
||||
msgctxt "@title:window"
|
||||
@@ -4525,69 +4609,99 @@ msgstr ""
|
||||
msgid "Enable developer tools"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:17
|
||||
#: src/settings/NeoChatSecurityPage.qml:18
|
||||
#, kde-format
|
||||
msgctxt "@title"
|
||||
msgid "Security"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:20
|
||||
#: src/settings/NeoChatSecurityPage.qml:28
|
||||
#, kde-format
|
||||
msgctxt "@title:group"
|
||||
msgid "Invitations"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:24
|
||||
#: src/settings/NeoChatSecurityPage.qml:32
|
||||
#, kde-format
|
||||
msgctxt "@option:check"
|
||||
msgid "Reject invitations from unknown users"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:25
|
||||
#: src/settings/NeoChatSecurityPage.qml:33
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"If enabled, NeoChat will reject invitations from from users you don't share "
|
||||
"a room with."
|
||||
"If enabled, NeoChat will reject invitations from users you don't share a "
|
||||
"room with."
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:25
|
||||
#: src/settings/NeoChatSecurityPage.qml:33
|
||||
#, kde-format
|
||||
msgid "Your server does not support this setting."
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:39
|
||||
#: src/settings/NeoChatSecurityPage.qml:43
|
||||
#, kde-format
|
||||
msgctxt "@title:group"
|
||||
msgid "Ignored Users"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:47
|
||||
#, kde-format
|
||||
msgctxt "@action:button"
|
||||
msgid "Manage ignored users"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:41
|
||||
#: src/settings/NeoChatSecurityPage.qml:49
|
||||
#, kde-format
|
||||
msgctxt "@title:window"
|
||||
msgid "Ignored Users"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:46
|
||||
#: src/settings/NeoChatSecurityPage.qml:54
|
||||
#, kde-format
|
||||
msgctxt "@title"
|
||||
msgid "Keys"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:51
|
||||
#: src/settings/NeoChatSecurityPage.qml:59
|
||||
#, kde-format
|
||||
msgid "Device key"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:55
|
||||
#: src/settings/NeoChatSecurityPage.qml:63
|
||||
#, kde-format
|
||||
msgid "Encryption key"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:59
|
||||
#: src/settings/NeoChatSecurityPage.qml:67
|
||||
#, kde-format
|
||||
msgid "Device id"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:73
|
||||
#, kde-format
|
||||
msgctxt "@title"
|
||||
msgid "Encryption Keys"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:78
|
||||
#, kde-format
|
||||
msgctxt "@action:button"
|
||||
msgid "Import Encryption Keys"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:87
|
||||
#, kde-format
|
||||
msgctxt "@info"
|
||||
msgid "Keys imported successfully"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:95
|
||||
#, kde-format
|
||||
msgctxt "@action:button"
|
||||
msgid "Export Encryption Keys"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSettingsView.qml:22 src/settings/RoomGeneralPage.qml:22
|
||||
#: src/settings/RoomSettingsView.qml:39
|
||||
#, kde-format
|
||||
@@ -5125,13 +5239,13 @@ msgstr ""
|
||||
#: src/settings/ThreePIdCard.qml:146
|
||||
#, kde-format
|
||||
msgctxt "@label:textbox"
|
||||
msgid "New email address"
|
||||
msgid "New Email Address:"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/ThreePIdCard.qml:146
|
||||
#, kde-format
|
||||
msgctxt "@label:textbox"
|
||||
msgid "New phone number"
|
||||
msgid "New Phone Number:"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/ThreePIdCard.qml:150 src/threepidbindhelper.cpp:177
|
||||
@@ -5179,13 +5293,13 @@ msgid ""
|
||||
"follow the instructions there and then click the button below"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/ThreePIdCard.qml:181
|
||||
#: src/settings/ThreePIdCard.qml:183
|
||||
#, kde-format
|
||||
msgctxt "@action:button Add new email or phone number"
|
||||
msgid "Add"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/ThreePIdCard.qml:189
|
||||
#: src/settings/ThreePIdCard.qml:191
|
||||
#, kde-format
|
||||
msgctxt "@action:button As in 'go back'"
|
||||
msgid "Back"
|
||||
|
||||
422
po/az/neochat.po
422
po/az/neochat.po
File diff suppressed because it is too large
Load Diff
582
po/ca/neochat.po
582
po/ca/neochat.po
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
462
po/cs/neochat.po
462
po/cs/neochat.po
File diff suppressed because it is too large
Load Diff
415
po/da/neochat.po
415
po/da/neochat.po
File diff suppressed because it is too large
Load Diff
1703
po/de/neochat.po
1703
po/de/neochat.po
File diff suppressed because it is too large
Load Diff
424
po/el/neochat.po
424
po/el/neochat.po
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
420
po/eo/neochat.po
420
po/eo/neochat.po
File diff suppressed because it is too large
Load Diff
410
po/es/neochat.po
410
po/es/neochat.po
File diff suppressed because it is too large
Load Diff
435
po/eu/neochat.po
435
po/eu/neochat.po
File diff suppressed because it is too large
Load Diff
426
po/fi/neochat.po
426
po/fi/neochat.po
File diff suppressed because it is too large
Load Diff
463
po/fr/neochat.po
463
po/fr/neochat.po
File diff suppressed because it is too large
Load Diff
403
po/gl/neochat.po
403
po/gl/neochat.po
File diff suppressed because it is too large
Load Diff
440
po/hu/neochat.po
440
po/hu/neochat.po
File diff suppressed because it is too large
Load Diff
418
po/ia/neochat.po
418
po/ia/neochat.po
File diff suppressed because it is too large
Load Diff
425
po/id/neochat.po
425
po/id/neochat.po
File diff suppressed because it is too large
Load Diff
414
po/ie/neochat.po
414
po/ie/neochat.po
File diff suppressed because it is too large
Load Diff
414
po/it/neochat.po
414
po/it/neochat.po
File diff suppressed because it is too large
Load Diff
392
po/ja/neochat.po
392
po/ja/neochat.po
@@ -2,7 +2,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: neochat\n"
|
||||
"Report-Msgid-Bugs-To: https://bugs.kde.org\n"
|
||||
"POT-Creation-Date: 2024-10-07 02:28+0000\n"
|
||||
"POT-Creation-Date: 2024-08-07 00:40+0000\n"
|
||||
"PO-Revision-Date: 2020-11-05 23:50-0800\n"
|
||||
"Last-Translator: Japanese KDE translation team <kde-jp@kde.org>\n"
|
||||
"Language-Team: Japanese <kde-jp@kde.org>\n"
|
||||
@@ -85,7 +85,7 @@ msgctxt "@action:button"
|
||||
msgid "Cancel reply"
|
||||
msgstr ""
|
||||
|
||||
#: src/controller.cpp:136
|
||||
#: src/controller.cpp:132
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"The reason for using push notifications, as in: '[Push notifications are "
|
||||
@@ -93,47 +93,47 @@ msgctxt ""
|
||||
msgid "Receiving notifications for new messages"
|
||||
msgstr ""
|
||||
|
||||
#: src/controller.cpp:229
|
||||
#: src/controller.cpp:211
|
||||
#, kde-format
|
||||
msgid "Network Error: %1"
|
||||
msgstr ""
|
||||
|
||||
#: src/controller.cpp:255
|
||||
#: src/controller.cpp:233
|
||||
#, kde-format
|
||||
msgid "Access token wasn't found"
|
||||
msgstr ""
|
||||
|
||||
#: src/controller.cpp:255
|
||||
#: src/controller.cpp:233
|
||||
#, kde-format
|
||||
msgid "Maybe it was deleted?"
|
||||
msgstr ""
|
||||
|
||||
#: src/controller.cpp:259
|
||||
#: src/controller.cpp:237
|
||||
#, kde-format
|
||||
msgid "Access to keychain was denied."
|
||||
msgstr ""
|
||||
|
||||
#: src/controller.cpp:259
|
||||
#: src/controller.cpp:237
|
||||
#, kde-format
|
||||
msgid "Please allow NeoChat to read the access token"
|
||||
msgstr ""
|
||||
|
||||
#: src/controller.cpp:262
|
||||
#: src/controller.cpp:240
|
||||
#, kde-format
|
||||
msgid "No keychain available."
|
||||
msgstr ""
|
||||
|
||||
#: src/controller.cpp:262
|
||||
#: src/controller.cpp:240
|
||||
#, kde-format
|
||||
msgid "Please install a keychain, e.g. KWallet or GNOME keyring on Linux"
|
||||
msgstr ""
|
||||
|
||||
#: src/controller.cpp:265
|
||||
#: src/controller.cpp:243
|
||||
#, kde-format
|
||||
msgid "Unable to read access token"
|
||||
msgstr ""
|
||||
|
||||
#: src/controller.cpp:357
|
||||
#: src/controller.cpp:339
|
||||
#, kde-format
|
||||
msgid "Receiving push notifications"
|
||||
msgstr ""
|
||||
@@ -359,7 +359,7 @@ msgid "Custom"
|
||||
msgstr ""
|
||||
|
||||
#: src/enums/powerlevel.cpp:88 src/models/permissionsmodel.cpp:162
|
||||
#: src/models/userlistmodel.cpp:118
|
||||
#: src/models/userlistmodel.cpp:114
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"%1 is the name of the power level, e.g. admin and %2 is the value that "
|
||||
@@ -368,11 +368,13 @@ msgid "%1 (%2)"
|
||||
msgstr ""
|
||||
|
||||
#: src/eventhandler.cpp:297 src/eventhandler.cpp:505
|
||||
#: src/models/messagecontentmodel.cpp:236 src/models/messageeventmodel.cpp:440
|
||||
#, kde-format
|
||||
msgid "<i>[This message was deleted]</i>"
|
||||
msgstr ""
|
||||
|
||||
#: src/eventhandler.cpp:297
|
||||
#: src/eventhandler.cpp:297 src/models/messagecontentmodel.cpp:237
|
||||
#: src/models/messageeventmodel.cpp:441
|
||||
#, kde-format
|
||||
msgid "<i>[This message was deleted: %1]</i>"
|
||||
msgstr ""
|
||||
@@ -732,12 +734,12 @@ msgctxt "The location being downloaded to"
|
||||
msgid "Destination"
|
||||
msgstr ""
|
||||
|
||||
#: src/login.cpp:88 src/login.cpp:103
|
||||
#: src/login.cpp:90 src/login.cpp:105
|
||||
#, kde-format
|
||||
msgid "Network Error"
|
||||
msgstr ""
|
||||
|
||||
#: src/login.cpp:96
|
||||
#: src/login.cpp:98
|
||||
#, kde-format
|
||||
msgid "Login Failed: %1"
|
||||
msgstr ""
|
||||
@@ -806,7 +808,7 @@ msgid "Loading…"
|
||||
msgstr ""
|
||||
|
||||
#: src/login/Login.qml:38 src/login/WelcomePage.qml:198
|
||||
#: src/settings/ThreePIdCard.qml:181
|
||||
#: src/settings/ThreePIdCard.qml:183
|
||||
#, kde-format
|
||||
msgctxt "@action:button"
|
||||
msgid "Continue"
|
||||
@@ -847,7 +849,7 @@ msgstr ""
|
||||
msgid "Password:"
|
||||
msgstr ""
|
||||
|
||||
#: src/login/Password.qml:32 src/settings/AccountEditorPage.qml:149
|
||||
#: src/login/Password.qml:32 src/settings/AccountEditorPage.qml:152
|
||||
#: src/settings/NetworkProxyPage.qml:95
|
||||
#, kde-format
|
||||
msgid "Password"
|
||||
@@ -1451,7 +1453,7 @@ msgctxt "As in 'The user's own emojis"
|
||||
msgid "Own Emojis"
|
||||
msgstr ""
|
||||
|
||||
#: src/models/messagecontentmodel.cpp:223
|
||||
#: src/models/messagecontentmodel.cpp:229
|
||||
#: src/timeline/LinkPreviewLoadComponent.qml:66
|
||||
#, kde-format
|
||||
msgid "Loading reply"
|
||||
@@ -1684,20 +1686,20 @@ msgctxt "Notification type"
|
||||
msgid "Call invitation"
|
||||
msgstr ""
|
||||
|
||||
#: src/models/reactionmodel.cpp:64
|
||||
#: src/models/reactionmodel.cpp:69
|
||||
#, kde-format
|
||||
msgctxt "Separate the usernames of users"
|
||||
msgid " and "
|
||||
msgstr ""
|
||||
|
||||
#: src/models/reactionmodel.cpp:71
|
||||
#: src/models/reactionmodel.cpp:76
|
||||
#, kde-format
|
||||
msgctxt "%1 is the number of other users"
|
||||
msgid " and %1 other"
|
||||
msgid_plural " and %1 others"
|
||||
msgstr[0] ""
|
||||
|
||||
#: src/models/reactionmodel.cpp:75
|
||||
#: src/models/reactionmodel.cpp:80
|
||||
#, kde-format
|
||||
msgctxt "%2 is the users who reacted and %3 the emoji that was given"
|
||||
msgid "%2 reacted with %3"
|
||||
@@ -1748,133 +1750,139 @@ msgstr ""
|
||||
msgid "Space creation failed: %1"
|
||||
msgstr ""
|
||||
|
||||
#: src/neochatroom.cpp:1439
|
||||
#: src/neochatroom.cpp:1403
|
||||
#, kde-format
|
||||
msgid "Report sent successfully."
|
||||
msgstr ""
|
||||
|
||||
#: src/neochatroom.cpp:1764 src/neochatroom.cpp:1772
|
||||
#: src/neochatroom.cpp:1724 src/neochatroom.cpp:1732
|
||||
#, kde-format
|
||||
msgctxt "'Lat' and 'Lon' as in Latitude and Longitude"
|
||||
msgid "Lat: %1, Lon: %2"
|
||||
msgstr ""
|
||||
|
||||
#: src/notificationsmanager.cpp:126 src/notificationsmanager.cpp:334
|
||||
#: src/notificationsmanager.cpp:126 src/notificationsmanager.cpp:330
|
||||
#, kde-format
|
||||
msgid "Encrypted Message"
|
||||
msgstr ""
|
||||
|
||||
#: src/notificationsmanager.cpp:214 src/qml/Main.qml:279
|
||||
#: src/notificationsmanager.cpp:210 src/qml/Main.qml:279
|
||||
#, kde-format
|
||||
msgid "%1: %2"
|
||||
msgstr ""
|
||||
|
||||
#: src/notificationsmanager.cpp:220
|
||||
#: src/notificationsmanager.cpp:216
|
||||
#, kde-format
|
||||
msgid "Open NeoChat in this room"
|
||||
msgstr ""
|
||||
|
||||
#: src/notificationsmanager.cpp:233 src/qml/DelegateContextMenu.qml:98
|
||||
#: src/notificationsmanager.cpp:229 src/qml/DelegateContextMenu.qml:98
|
||||
#: src/qml/HoverActions.qml:111
|
||||
#, kde-format
|
||||
msgid "Reply"
|
||||
msgstr ""
|
||||
|
||||
#: src/notificationsmanager.cpp:234
|
||||
#: src/notificationsmanager.cpp:230
|
||||
#, kde-format
|
||||
msgid "Reply..."
|
||||
msgstr ""
|
||||
|
||||
#: src/notificationsmanager.cpp:253
|
||||
#: src/notificationsmanager.cpp:249
|
||||
#, kde-format
|
||||
msgid "%1 invited you to a room"
|
||||
msgstr ""
|
||||
|
||||
#: src/notificationsmanager.cpp:256
|
||||
#: src/notificationsmanager.cpp:252
|
||||
#, kde-format
|
||||
msgid "Open this invitation in NeoChat"
|
||||
msgstr ""
|
||||
|
||||
#: src/notificationsmanager.cpp:266
|
||||
#: src/notificationsmanager.cpp:262
|
||||
#, kde-format
|
||||
msgctxt "@action:button The thing being accepted is an invitation to chat"
|
||||
msgid "Accept"
|
||||
msgstr ""
|
||||
|
||||
#: src/notificationsmanager.cpp:267
|
||||
#: src/notificationsmanager.cpp:263
|
||||
#, kde-format
|
||||
msgctxt "@action:button The thing being rejected is an invitation to chat"
|
||||
msgid "Reject"
|
||||
msgstr ""
|
||||
|
||||
#: src/notificationsmanager.cpp:268
|
||||
#: src/notificationsmanager.cpp:264
|
||||
#, kde-format
|
||||
msgctxt "@action:button The thing being rejected is an invitation to chat"
|
||||
msgid "Reject and Ignore User"
|
||||
msgstr ""
|
||||
|
||||
#: src/notificationsmanager.cpp:327
|
||||
#: src/notificationsmanager.cpp:323
|
||||
#, kde-format
|
||||
msgid "%1 (%2)"
|
||||
msgstr ""
|
||||
|
||||
#: src/notificationsmanager.cpp:338
|
||||
#: src/notificationsmanager.cpp:334
|
||||
#, kde-format
|
||||
msgid "Open NeoChat"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/AccountMenu.qml:23 src/qml/UserInfo.qml:46
|
||||
#: src/qml/AccountMenu.qml:23
|
||||
#, kde-format
|
||||
msgctxt "@action:button"
|
||||
msgid "Show QR code"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/AccountMenu.qml:39 src/qml/UserInfo.qml:46
|
||||
#, kde-format
|
||||
msgid "Edit this account"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/AccountMenu.qml:28 src/settings/AccountsPage.qml:34
|
||||
#: src/qml/AccountMenu.qml:44 src/settings/AccountsPage.qml:34
|
||||
#: src/settings/AccountsPage.qml:51
|
||||
#, kde-format
|
||||
msgid "Account editor"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/AccountMenu.qml:32
|
||||
#: src/qml/AccountMenu.qml:48
|
||||
#, kde-format
|
||||
msgid "Notification settings"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/AccountMenu.qml:39 src/settings/DevicesPage.qml:17
|
||||
#: src/qml/AccountMenu.qml:55 src/settings/DevicesPage.qml:17
|
||||
#: src/settings/NeoChatSettingsView.qml:85
|
||||
#, kde-format
|
||||
msgid "Devices"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/AccountMenu.qml:46 src/settings/NeoChatGeneralPage.qml:241
|
||||
#: src/qml/AccountMenu.qml:62 src/settings/NeoChatGeneralPage.qml:241
|
||||
#, kde-format
|
||||
msgid "Open developer tools"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/AccountMenu.qml:52
|
||||
#: src/qml/AccountMenu.qml:68
|
||||
#, kde-format
|
||||
msgctxt "@title:window"
|
||||
msgid "Developer Tools"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/AccountMenu.qml:58
|
||||
#: src/qml/AccountMenu.qml:74
|
||||
#, kde-format
|
||||
msgctxt "@action:inmenu"
|
||||
msgid "Open Secret Backup"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/AccountMenu.qml:62
|
||||
#: src/qml/AccountMenu.qml:78
|
||||
#, kde-format
|
||||
msgctxt "@title:window"
|
||||
msgid "Open Key Backup"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/AccountMenu.qml:66
|
||||
#: src/qml/AccountMenu.qml:82
|
||||
#, kde-format
|
||||
msgctxt "@action:inmenu"
|
||||
msgid "Verify this Device"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/AccountMenu.qml:72 src/settings/AccountsPage.qml:88
|
||||
#: src/qml/AccountMenu.qml:88 src/settings/AccountsPage.qml:88
|
||||
#, kde-format
|
||||
msgid "Logout"
|
||||
msgstr ""
|
||||
@@ -2177,8 +2185,8 @@ msgstr ""
|
||||
|
||||
#: src/qml/CreateRoomDialog.qml:30 src/qml/ExploreComponent.qml:64
|
||||
#: src/qml/ExploreComponent.qml:66 src/qml/ExploreComponentMobile.qml:162
|
||||
#: src/qml/ExploreComponentMobile.qml:164 src/qml/SpaceDrawer.qml:294
|
||||
#: src/qml/SpaceDrawer.qml:296
|
||||
#: src/qml/ExploreComponentMobile.qml:164 src/qml/SpaceDrawer.qml:272
|
||||
#: src/qml/SpaceDrawer.qml:274
|
||||
#, kde-format
|
||||
msgctxt "@title"
|
||||
msgid "Create a Space"
|
||||
@@ -2211,7 +2219,7 @@ msgstr ""
|
||||
msgid "Space"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/CreateRoomDialog.qml:77 src/settings/AccountEditorPage.qml:106
|
||||
#: src/qml/CreateRoomDialog.qml:77
|
||||
#, kde-format
|
||||
msgid "Name:"
|
||||
msgstr ""
|
||||
@@ -2849,13 +2857,13 @@ msgstr ""
|
||||
msgid "Send this location"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/LocationsPage.qml:16 src/qml/RoomInformation.qml:127
|
||||
#: src/qml/LocationsPage.qml:16 src/qml/RoomInformation.qml:125
|
||||
#, kde-format
|
||||
msgctxt "Locations on a map"
|
||||
msgid "Locations"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/LocationsPage.qml:68
|
||||
#: src/qml/LocationsPage.qml:65
|
||||
#, kde-format
|
||||
msgid "There are no locations shared in this room."
|
||||
msgstr ""
|
||||
@@ -3101,12 +3109,12 @@ msgstr ""
|
||||
msgid "Reason for reporting this message"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomDelegate.qml:108
|
||||
#: src/qml/RoomDelegate.qml:112
|
||||
#, kde-format
|
||||
msgid "Muted room"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomDelegate.qml:141
|
||||
#: src/qml/RoomDelegate.qml:145
|
||||
#, kde-format
|
||||
msgid "Configure room"
|
||||
msgstr ""
|
||||
@@ -3127,85 +3135,85 @@ msgstr ""
|
||||
msgid "Media"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomInformation.qml:42
|
||||
#: src/qml/RoomInformation.qml:40
|
||||
#, kde-format
|
||||
msgctxt "@action:title"
|
||||
msgid "Space Members"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomInformation.qml:42
|
||||
#: src/qml/RoomInformation.qml:40
|
||||
#, kde-format
|
||||
msgctxt "@action:title"
|
||||
msgid "Room information"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomInformation.qml:70
|
||||
#: src/qml/RoomInformation.qml:68
|
||||
#, kde-format
|
||||
msgctxt "Room actions"
|
||||
msgid "Actions"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomInformation.qml:80
|
||||
#: src/qml/RoomInformation.qml:78
|
||||
#, kde-format
|
||||
msgid "Search in this room"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomInformation.qml:89
|
||||
#: src/qml/RoomInformation.qml:87
|
||||
#, kde-format
|
||||
msgctxt "@action:title"
|
||||
msgid "Search"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomInformation.qml:97
|
||||
#: src/qml/RoomInformation.qml:95
|
||||
#, kde-format
|
||||
msgctxt "@action:button"
|
||||
msgid "Verify user"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomInformation.qml:108
|
||||
#: src/qml/RoomInformation.qml:106
|
||||
#, kde-format
|
||||
msgid "Remove room from favorites"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomInformation.qml:108
|
||||
#: src/qml/RoomInformation.qml:106
|
||||
#, kde-format
|
||||
msgid "Favorite this room"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomInformation.qml:121
|
||||
#: src/qml/RoomInformation.qml:119
|
||||
#, kde-format
|
||||
msgid "Show locations for this room"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomInformation.qml:136
|
||||
#: src/qml/RoomInformation.qml:134
|
||||
#, kde-format
|
||||
msgctxt "@action:button"
|
||||
msgid "Leave this room"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomInformation.qml:149
|
||||
#: src/qml/RoomInformation.qml:147
|
||||
#, kde-format
|
||||
msgid "Members"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomInformation.qml:164 src/qml/SpaceHomePage.qml:55
|
||||
#: src/qml/RoomInformation.qml:162 src/qml/SpaceHomePage.qml:55
|
||||
#, kde-format
|
||||
msgctxt "@title"
|
||||
msgid "Invite a User"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomInformation.qml:168
|
||||
#: src/qml/RoomInformation.qml:166
|
||||
#, kde-format
|
||||
msgid "Invite user to room"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomInformation.qml:175
|
||||
#: src/qml/RoomInformation.qml:173
|
||||
#, kde-format
|
||||
msgid "%1 member"
|
||||
msgid_plural "%1 members"
|
||||
msgstr[0] ""
|
||||
|
||||
#: src/qml/RoomInformation.qml:175
|
||||
#: src/qml/RoomInformation.qml:173
|
||||
#, kde-format
|
||||
msgid "No member count"
|
||||
msgstr ""
|
||||
@@ -3252,7 +3260,12 @@ msgstr ""
|
||||
msgid "NeoChat is offline. Please check your network connection."
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomPage.qml:264
|
||||
#: src/qml/RoomPage.qml:158
|
||||
#, kde-format
|
||||
msgid "Select or join a room to get started"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomPage.qml:265
|
||||
#, kde-format
|
||||
msgid "Message Source"
|
||||
msgstr ""
|
||||
@@ -3407,19 +3420,19 @@ msgstr ""
|
||||
msgid "Home"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/SpaceDrawer.qml:134
|
||||
#: src/qml/SpaceDrawer.qml:135
|
||||
#, kde-format
|
||||
msgctxt "@button View all one-on-one chats with your friends."
|
||||
msgid "Friends"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/SpaceDrawer.qml:242
|
||||
#: src/qml/SpaceDrawer.qml:220
|
||||
#, kde-format
|
||||
msgctxt "Join <name of a space>"
|
||||
msgid "Join %1"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/SpaceDrawer.qml:284
|
||||
#: src/qml/SpaceDrawer.qml:262
|
||||
#, kde-format
|
||||
msgid "Create a space"
|
||||
msgstr ""
|
||||
@@ -3504,27 +3517,27 @@ msgctxt "'Space' is a matrix space"
|
||||
msgid "Leave Space"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/TimelineView.qml:201
|
||||
#: src/qml/TimelineView.qml:196
|
||||
#, kde-format
|
||||
msgid "Jump to first unread message"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/TimelineView.qml:201
|
||||
#: src/qml/TimelineView.qml:196
|
||||
#, kde-format
|
||||
msgid "Jump to oldest loaded message"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/TimelineView.qml:245
|
||||
#: src/qml/TimelineView.qml:236
|
||||
#, kde-format
|
||||
msgid "Jump to latest message"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/TimelineView.qml:270
|
||||
#: src/qml/TimelineView.qml:261
|
||||
#, kde-format
|
||||
msgid "Drag items here to share them"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/TimelineView.qml:277
|
||||
#: src/qml/TimelineView.qml:268
|
||||
#, kde-format
|
||||
msgctxt "Message displayed when some users are typing"
|
||||
msgid "%2 is typing"
|
||||
@@ -3865,72 +3878,72 @@ msgstr ""
|
||||
msgid "The session verification was canceled due to an unknown error."
|
||||
msgstr ""
|
||||
|
||||
#: src/registration.cpp:309
|
||||
#: src/registration.cpp:311
|
||||
#, kde-format
|
||||
msgid "No server."
|
||||
msgstr ""
|
||||
|
||||
#: src/registration.cpp:311
|
||||
#: src/registration.cpp:313
|
||||
#, kde-format
|
||||
msgid "Checking Server availability."
|
||||
msgstr ""
|
||||
|
||||
#: src/registration.cpp:313
|
||||
#: src/registration.cpp:315
|
||||
#, kde-format
|
||||
msgid "This is not a valid server."
|
||||
msgstr ""
|
||||
|
||||
#: src/registration.cpp:315
|
||||
#: src/registration.cpp:317
|
||||
#, kde-format
|
||||
msgid "Registration for this server is disabled."
|
||||
msgstr ""
|
||||
|
||||
#: src/registration.cpp:317
|
||||
#: src/registration.cpp:319
|
||||
#, kde-format
|
||||
msgid "No username."
|
||||
msgstr ""
|
||||
|
||||
#: src/registration.cpp:319
|
||||
#: src/registration.cpp:321
|
||||
#, kde-format
|
||||
msgid "Checking username availability."
|
||||
msgstr ""
|
||||
|
||||
#: src/registration.cpp:321
|
||||
#: src/registration.cpp:323
|
||||
#, kde-format
|
||||
msgid "This username is not available."
|
||||
msgstr ""
|
||||
|
||||
#: src/registration.cpp:323
|
||||
#: src/registration.cpp:325
|
||||
#, kde-format
|
||||
msgid "Continue"
|
||||
msgstr ""
|
||||
|
||||
#: src/registration.cpp:325
|
||||
#: src/registration.cpp:327
|
||||
#, kde-format
|
||||
msgid "Working"
|
||||
msgstr ""
|
||||
|
||||
#: src/roommanager.cpp:139
|
||||
#: src/roommanager.cpp:138
|
||||
#, kde-format
|
||||
msgid "Malformed or empty Matrix id"
|
||||
msgstr ""
|
||||
|
||||
#: src/roommanager.cpp:139
|
||||
#: src/roommanager.cpp:138
|
||||
#, kde-format
|
||||
msgid "%1 is not a correct Matrix identifier"
|
||||
msgstr ""
|
||||
|
||||
#: src/roommanager.cpp:352
|
||||
#: src/roommanager.cpp:345
|
||||
#, kde-format
|
||||
msgid "Failed to join room"
|
||||
msgstr ""
|
||||
|
||||
#: src/roommanager.cpp:388
|
||||
#: src/roommanager.cpp:377
|
||||
#, kde-format
|
||||
msgid "You requested to join '%1'"
|
||||
msgstr ""
|
||||
|
||||
#: src/roommanager.cpp:392
|
||||
#: src/roommanager.cpp:381
|
||||
#, kde-format
|
||||
msgid "Failed to request joining room"
|
||||
msgstr ""
|
||||
@@ -3952,7 +3965,12 @@ msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:101
|
||||
#, kde-format
|
||||
msgid "User information"
|
||||
msgid "User Information"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:106
|
||||
#, kde-format
|
||||
msgid "Display Name:"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:112
|
||||
@@ -3960,96 +3978,101 @@ msgstr ""
|
||||
msgid "Label:"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:117
|
||||
#: src/settings/AccountEditorPage.qml:113
|
||||
#, kde-format
|
||||
msgctxt "@action:button"
|
||||
msgid "QR code for account"
|
||||
msgid "Work"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:133
|
||||
#: src/settings/AccountEditorPage.qml:188
|
||||
#: src/settings/AccountEditorPage.qml:118
|
||||
#, kde-format
|
||||
msgctxt "@action:button"
|
||||
msgid "Show QR Code"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:135
|
||||
#: src/settings/AccountEditorPage.qml:191
|
||||
#: src/settings/EmoticonEditorPage.qml:108 src/settings/RoomGeneralPage.qml:105
|
||||
#, kde-format
|
||||
msgid "Save"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:154
|
||||
#: src/settings/AccountEditorPage.qml:157
|
||||
#, kde-format
|
||||
msgid "Your server doesn't support changing your password"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:161
|
||||
#: src/settings/AccountEditorPage.qml:164
|
||||
#, kde-format
|
||||
msgid "Current Password:"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:168
|
||||
#: src/settings/AccountEditorPage.qml:171
|
||||
#, kde-format
|
||||
msgid "New Password:"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:175
|
||||
#: src/settings/AccountEditorPage.qml:178
|
||||
#, kde-format
|
||||
msgid "Confirm new Password:"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:180
|
||||
#: src/settings/AccountEditorPage.qml:183
|
||||
#, kde-format
|
||||
msgid "Passwords don't match"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:194
|
||||
#: src/settings/AccountEditorPage.qml:198
|
||||
#, kde-format
|
||||
msgid "Passwords do not match"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:201
|
||||
#: src/settings/AccountEditorPage.qml:205
|
||||
#, kde-format
|
||||
msgid "Email Addresses"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:207
|
||||
#: src/settings/AccountEditorPage.qml:211
|
||||
#, kde-format
|
||||
msgid "Phone Numbers"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:212
|
||||
#: src/settings/AccountEditorPage.qml:216
|
||||
#, kde-format
|
||||
msgid "Identity Server"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:221
|
||||
#: src/settings/AccountEditorPage.qml:225
|
||||
#, kde-format
|
||||
msgid "Server Information"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:225
|
||||
#: src/settings/AccountEditorPage.qml:229
|
||||
#, kde-format
|
||||
msgid "Homeserver url"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:246
|
||||
#: src/settings/AccountEditorPage.qml:250
|
||||
#, kde-format
|
||||
msgctxt "@title"
|
||||
msgid "Account Management"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:251
|
||||
#: src/settings/AccountEditorPage.qml:255
|
||||
#, kde-format
|
||||
msgid "Deactivate Account"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:266
|
||||
#: src/settings/AccountEditorPage.qml:271
|
||||
#, kde-format
|
||||
msgid "Password changed successfully"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:268
|
||||
#: src/settings/AccountEditorPage.qml:273
|
||||
#, kde-format
|
||||
msgid "Wrong password entered"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:270
|
||||
#: src/settings/AccountEditorPage.qml:275
|
||||
#, kde-format
|
||||
msgid "Unknown problem while trying to change password"
|
||||
msgstr ""
|
||||
@@ -4290,6 +4313,44 @@ msgctxt "@title"
|
||||
msgid "Stickers & Emojis"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/ExportKeysDialog.qml:18
|
||||
#: src/settings/NeoChatSecurityPage.qml:101
|
||||
#, kde-format
|
||||
msgctxt "@title"
|
||||
msgid "Export Keys"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/ExportKeysDialog.qml:33 src/settings/ImportKeysDialog.qml:51
|
||||
#, kde-format
|
||||
msgctxt "@label:textbox"
|
||||
msgid "Passphrase:"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/ExportKeysDialog.qml:37
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"A passphrase to secure your key backup. It should not be your account "
|
||||
"password."
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/ExportKeysDialog.qml:42
|
||||
#, kde-format
|
||||
msgctxt "@action:button"
|
||||
msgid "Export keys"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/ExportKeysDialog.qml:50
|
||||
#, kde-format
|
||||
msgctxt "@info"
|
||||
msgid "Keys exported successfully"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/ExportKeysDialog.qml:54 src/settings/ImportKeysDialog.qml:74
|
||||
#, kde-format
|
||||
msgctxt "@info"
|
||||
msgid "Unknown error"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/GlobalNotificationsPage.qml:19
|
||||
#, kde-format
|
||||
msgctxt "@title:window"
|
||||
@@ -4389,25 +4450,48 @@ msgctxt "@title"
|
||||
msgid "Ignored Users"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/IgnoredUsersDialog.qml:24
|
||||
#: src/settings/NeoChatSecurityPage.qml:35
|
||||
#, kde-format
|
||||
msgctxt "@title:group"
|
||||
msgid "Ignored Users"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/IgnoredUsersDialog.qml:29
|
||||
#: src/settings/IgnoredUsersDialog.qml:25
|
||||
#, kde-format
|
||||
msgctxt "Placeholder message when no user is ignored"
|
||||
msgid "You are not ignoring any users"
|
||||
msgid "No ignored users"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/IgnoredUsersDialog.qml:51
|
||||
#: src/settings/IgnoredUsersDialog.qml:55
|
||||
#, kde-format
|
||||
msgctxt "@action:button"
|
||||
msgid "Unignore this user"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/ImportKeysDialog.qml:22 src/settings/NeoChatSecurityPage.qml:84
|
||||
#, kde-format
|
||||
msgctxt "@title"
|
||||
msgid "Import Keys"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/ImportKeysDialog.qml:35
|
||||
#, kde-format
|
||||
msgctxt "@action:button"
|
||||
msgid "Choose backup file"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/ImportKeysDialog.qml:56
|
||||
#, kde-format
|
||||
msgctxt "@action:button"
|
||||
msgid "Import keys"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/ImportKeysDialog.qml:66
|
||||
#, kde-format
|
||||
msgctxt "@info"
|
||||
msgid "Invalid passphrase"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/ImportKeysDialog.qml:70
|
||||
#, kde-format
|
||||
msgctxt "@info"
|
||||
msgid "Invalid key backup data"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatGeneralPage.qml:20
|
||||
#, kde-format
|
||||
msgctxt "@title:window"
|
||||
@@ -4512,69 +4596,99 @@ msgstr ""
|
||||
msgid "Enable developer tools"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:17
|
||||
#: src/settings/NeoChatSecurityPage.qml:18
|
||||
#, kde-format
|
||||
msgctxt "@title"
|
||||
msgid "Security"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:20
|
||||
#: src/settings/NeoChatSecurityPage.qml:28
|
||||
#, kde-format
|
||||
msgctxt "@title:group"
|
||||
msgid "Invitations"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:24
|
||||
#: src/settings/NeoChatSecurityPage.qml:32
|
||||
#, kde-format
|
||||
msgctxt "@option:check"
|
||||
msgid "Reject invitations from unknown users"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:25
|
||||
#: src/settings/NeoChatSecurityPage.qml:33
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"If enabled, NeoChat will reject invitations from from users you don't share "
|
||||
"a room with."
|
||||
"If enabled, NeoChat will reject invitations from users you don't share a "
|
||||
"room with."
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:25
|
||||
#: src/settings/NeoChatSecurityPage.qml:33
|
||||
#, kde-format
|
||||
msgid "Your server does not support this setting."
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:39
|
||||
#: src/settings/NeoChatSecurityPage.qml:43
|
||||
#, kde-format
|
||||
msgctxt "@title:group"
|
||||
msgid "Ignored Users"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:47
|
||||
#, kde-format
|
||||
msgctxt "@action:button"
|
||||
msgid "Manage ignored users"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:41
|
||||
#: src/settings/NeoChatSecurityPage.qml:49
|
||||
#, kde-format
|
||||
msgctxt "@title:window"
|
||||
msgid "Ignored Users"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:46
|
||||
#: src/settings/NeoChatSecurityPage.qml:54
|
||||
#, kde-format
|
||||
msgctxt "@title"
|
||||
msgid "Keys"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:51
|
||||
#: src/settings/NeoChatSecurityPage.qml:59
|
||||
#, kde-format
|
||||
msgid "Device key"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:55
|
||||
#: src/settings/NeoChatSecurityPage.qml:63
|
||||
#, kde-format
|
||||
msgid "Encryption key"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:59
|
||||
#: src/settings/NeoChatSecurityPage.qml:67
|
||||
#, kde-format
|
||||
msgid "Device id"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:73
|
||||
#, kde-format
|
||||
msgctxt "@title"
|
||||
msgid "Encryption Keys"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:78
|
||||
#, kde-format
|
||||
msgctxt "@action:button"
|
||||
msgid "Import Encryption Keys"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:87
|
||||
#, kde-format
|
||||
msgctxt "@info"
|
||||
msgid "Keys imported successfully"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:95
|
||||
#, kde-format
|
||||
msgctxt "@action:button"
|
||||
msgid "Export Encryption Keys"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSettingsView.qml:22 src/settings/RoomGeneralPage.qml:22
|
||||
#: src/settings/RoomSettingsView.qml:39
|
||||
#, kde-format
|
||||
@@ -5112,13 +5226,13 @@ msgstr ""
|
||||
#: src/settings/ThreePIdCard.qml:146
|
||||
#, kde-format
|
||||
msgctxt "@label:textbox"
|
||||
msgid "New email address"
|
||||
msgid "New Email Address:"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/ThreePIdCard.qml:146
|
||||
#, kde-format
|
||||
msgctxt "@label:textbox"
|
||||
msgid "New phone number"
|
||||
msgid "New Phone Number:"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/ThreePIdCard.qml:150 src/threepidbindhelper.cpp:177
|
||||
@@ -5166,13 +5280,13 @@ msgid ""
|
||||
"follow the instructions there and then click the button below"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/ThreePIdCard.qml:181
|
||||
#: src/settings/ThreePIdCard.qml:183
|
||||
#, kde-format
|
||||
msgctxt "@action:button Add new email or phone number"
|
||||
msgid "Add"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/ThreePIdCard.qml:189
|
||||
#: src/settings/ThreePIdCard.qml:191
|
||||
#, kde-format
|
||||
msgctxt "@action:button As in 'go back'"
|
||||
msgid "Back"
|
||||
|
||||
412
po/ka/neochat.po
412
po/ka/neochat.po
File diff suppressed because it is too large
Load Diff
427
po/ko/neochat.po
427
po/ko/neochat.po
File diff suppressed because it is too large
Load Diff
392
po/lt/neochat.po
392
po/lt/neochat.po
@@ -7,7 +7,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: neochat\n"
|
||||
"Report-Msgid-Bugs-To: https://bugs.kde.org\n"
|
||||
"POT-Creation-Date: 2024-10-07 02:28+0000\n"
|
||||
"POT-Creation-Date: 2024-08-07 00:40+0000\n"
|
||||
"PO-Revision-Date: 2023-02-25 01:00+0000\n"
|
||||
"Last-Translator: Automatically generated\n"
|
||||
"Language-Team: none\n"
|
||||
@@ -89,7 +89,7 @@ msgctxt "@action:button"
|
||||
msgid "Cancel reply"
|
||||
msgstr ""
|
||||
|
||||
#: src/controller.cpp:136
|
||||
#: src/controller.cpp:132
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"The reason for using push notifications, as in: '[Push notifications are "
|
||||
@@ -97,47 +97,47 @@ msgctxt ""
|
||||
msgid "Receiving notifications for new messages"
|
||||
msgstr ""
|
||||
|
||||
#: src/controller.cpp:229
|
||||
#: src/controller.cpp:211
|
||||
#, kde-format
|
||||
msgid "Network Error: %1"
|
||||
msgstr ""
|
||||
|
||||
#: src/controller.cpp:255
|
||||
#: src/controller.cpp:233
|
||||
#, kde-format
|
||||
msgid "Access token wasn't found"
|
||||
msgstr ""
|
||||
|
||||
#: src/controller.cpp:255
|
||||
#: src/controller.cpp:233
|
||||
#, kde-format
|
||||
msgid "Maybe it was deleted?"
|
||||
msgstr ""
|
||||
|
||||
#: src/controller.cpp:259
|
||||
#: src/controller.cpp:237
|
||||
#, kde-format
|
||||
msgid "Access to keychain was denied."
|
||||
msgstr ""
|
||||
|
||||
#: src/controller.cpp:259
|
||||
#: src/controller.cpp:237
|
||||
#, kde-format
|
||||
msgid "Please allow NeoChat to read the access token"
|
||||
msgstr ""
|
||||
|
||||
#: src/controller.cpp:262
|
||||
#: src/controller.cpp:240
|
||||
#, kde-format
|
||||
msgid "No keychain available."
|
||||
msgstr ""
|
||||
|
||||
#: src/controller.cpp:262
|
||||
#: src/controller.cpp:240
|
||||
#, kde-format
|
||||
msgid "Please install a keychain, e.g. KWallet or GNOME keyring on Linux"
|
||||
msgstr ""
|
||||
|
||||
#: src/controller.cpp:265
|
||||
#: src/controller.cpp:243
|
||||
#, kde-format
|
||||
msgid "Unable to read access token"
|
||||
msgstr ""
|
||||
|
||||
#: src/controller.cpp:357
|
||||
#: src/controller.cpp:339
|
||||
#, kde-format
|
||||
msgid "Receiving push notifications"
|
||||
msgstr ""
|
||||
@@ -366,7 +366,7 @@ msgid "Custom"
|
||||
msgstr ""
|
||||
|
||||
#: src/enums/powerlevel.cpp:88 src/models/permissionsmodel.cpp:162
|
||||
#: src/models/userlistmodel.cpp:118
|
||||
#: src/models/userlistmodel.cpp:114
|
||||
#, kde-format
|
||||
msgctxt ""
|
||||
"%1 is the name of the power level, e.g. admin and %2 is the value that "
|
||||
@@ -375,11 +375,13 @@ msgid "%1 (%2)"
|
||||
msgstr ""
|
||||
|
||||
#: src/eventhandler.cpp:297 src/eventhandler.cpp:505
|
||||
#: src/models/messagecontentmodel.cpp:236 src/models/messageeventmodel.cpp:440
|
||||
#, kde-format
|
||||
msgid "<i>[This message was deleted]</i>"
|
||||
msgstr ""
|
||||
|
||||
#: src/eventhandler.cpp:297
|
||||
#: src/eventhandler.cpp:297 src/models/messagecontentmodel.cpp:237
|
||||
#: src/models/messageeventmodel.cpp:441
|
||||
#, kde-format
|
||||
msgid "<i>[This message was deleted: %1]</i>"
|
||||
msgstr ""
|
||||
@@ -739,12 +741,12 @@ msgctxt "The location being downloaded to"
|
||||
msgid "Destination"
|
||||
msgstr ""
|
||||
|
||||
#: src/login.cpp:88 src/login.cpp:103
|
||||
#: src/login.cpp:90 src/login.cpp:105
|
||||
#, kde-format
|
||||
msgid "Network Error"
|
||||
msgstr ""
|
||||
|
||||
#: src/login.cpp:96
|
||||
#: src/login.cpp:98
|
||||
#, kde-format
|
||||
msgid "Login Failed: %1"
|
||||
msgstr ""
|
||||
@@ -813,7 +815,7 @@ msgid "Loading…"
|
||||
msgstr ""
|
||||
|
||||
#: src/login/Login.qml:38 src/login/WelcomePage.qml:198
|
||||
#: src/settings/ThreePIdCard.qml:181
|
||||
#: src/settings/ThreePIdCard.qml:183
|
||||
#, kde-format
|
||||
msgctxt "@action:button"
|
||||
msgid "Continue"
|
||||
@@ -854,7 +856,7 @@ msgstr ""
|
||||
msgid "Password:"
|
||||
msgstr ""
|
||||
|
||||
#: src/login/Password.qml:32 src/settings/AccountEditorPage.qml:149
|
||||
#: src/login/Password.qml:32 src/settings/AccountEditorPage.qml:152
|
||||
#: src/settings/NetworkProxyPage.qml:95
|
||||
#, kde-format
|
||||
msgid "Password"
|
||||
@@ -1458,7 +1460,7 @@ msgctxt "As in 'The user's own emojis"
|
||||
msgid "Own Emojis"
|
||||
msgstr ""
|
||||
|
||||
#: src/models/messagecontentmodel.cpp:223
|
||||
#: src/models/messagecontentmodel.cpp:229
|
||||
#: src/timeline/LinkPreviewLoadComponent.qml:66
|
||||
#, kde-format
|
||||
msgid "Loading reply"
|
||||
@@ -1696,13 +1698,13 @@ msgctxt "Notification type"
|
||||
msgid "Call invitation"
|
||||
msgstr ""
|
||||
|
||||
#: src/models/reactionmodel.cpp:64
|
||||
#: src/models/reactionmodel.cpp:69
|
||||
#, kde-format
|
||||
msgctxt "Separate the usernames of users"
|
||||
msgid " and "
|
||||
msgstr ""
|
||||
|
||||
#: src/models/reactionmodel.cpp:71
|
||||
#: src/models/reactionmodel.cpp:76
|
||||
#, kde-format
|
||||
msgctxt "%1 is the number of other users"
|
||||
msgid " and %1 other"
|
||||
@@ -1711,7 +1713,7 @@ msgstr[0] ""
|
||||
msgstr[1] ""
|
||||
msgstr[2] ""
|
||||
|
||||
#: src/models/reactionmodel.cpp:75
|
||||
#: src/models/reactionmodel.cpp:80
|
||||
#, kde-format
|
||||
msgctxt "%2 is the users who reacted and %3 the emoji that was given"
|
||||
msgid "%2 reacted with %3"
|
||||
@@ -1767,133 +1769,139 @@ msgstr ""
|
||||
msgid "Space creation failed: %1"
|
||||
msgstr ""
|
||||
|
||||
#: src/neochatroom.cpp:1439
|
||||
#: src/neochatroom.cpp:1403
|
||||
#, kde-format
|
||||
msgid "Report sent successfully."
|
||||
msgstr ""
|
||||
|
||||
#: src/neochatroom.cpp:1764 src/neochatroom.cpp:1772
|
||||
#: src/neochatroom.cpp:1724 src/neochatroom.cpp:1732
|
||||
#, kde-format
|
||||
msgctxt "'Lat' and 'Lon' as in Latitude and Longitude"
|
||||
msgid "Lat: %1, Lon: %2"
|
||||
msgstr ""
|
||||
|
||||
#: src/notificationsmanager.cpp:126 src/notificationsmanager.cpp:334
|
||||
#: src/notificationsmanager.cpp:126 src/notificationsmanager.cpp:330
|
||||
#, kde-format
|
||||
msgid "Encrypted Message"
|
||||
msgstr ""
|
||||
|
||||
#: src/notificationsmanager.cpp:214 src/qml/Main.qml:279
|
||||
#: src/notificationsmanager.cpp:210 src/qml/Main.qml:279
|
||||
#, kde-format
|
||||
msgid "%1: %2"
|
||||
msgstr ""
|
||||
|
||||
#: src/notificationsmanager.cpp:220
|
||||
#: src/notificationsmanager.cpp:216
|
||||
#, kde-format
|
||||
msgid "Open NeoChat in this room"
|
||||
msgstr ""
|
||||
|
||||
#: src/notificationsmanager.cpp:233 src/qml/DelegateContextMenu.qml:98
|
||||
#: src/notificationsmanager.cpp:229 src/qml/DelegateContextMenu.qml:98
|
||||
#: src/qml/HoverActions.qml:111
|
||||
#, kde-format
|
||||
msgid "Reply"
|
||||
msgstr ""
|
||||
|
||||
#: src/notificationsmanager.cpp:234
|
||||
#: src/notificationsmanager.cpp:230
|
||||
#, kde-format
|
||||
msgid "Reply..."
|
||||
msgstr ""
|
||||
|
||||
#: src/notificationsmanager.cpp:253
|
||||
#: src/notificationsmanager.cpp:249
|
||||
#, kde-format
|
||||
msgid "%1 invited you to a room"
|
||||
msgstr ""
|
||||
|
||||
#: src/notificationsmanager.cpp:256
|
||||
#: src/notificationsmanager.cpp:252
|
||||
#, kde-format
|
||||
msgid "Open this invitation in NeoChat"
|
||||
msgstr ""
|
||||
|
||||
#: src/notificationsmanager.cpp:266
|
||||
#: src/notificationsmanager.cpp:262
|
||||
#, kde-format
|
||||
msgctxt "@action:button The thing being accepted is an invitation to chat"
|
||||
msgid "Accept"
|
||||
msgstr ""
|
||||
|
||||
#: src/notificationsmanager.cpp:267
|
||||
#: src/notificationsmanager.cpp:263
|
||||
#, kde-format
|
||||
msgctxt "@action:button The thing being rejected is an invitation to chat"
|
||||
msgid "Reject"
|
||||
msgstr ""
|
||||
|
||||
#: src/notificationsmanager.cpp:268
|
||||
#: src/notificationsmanager.cpp:264
|
||||
#, kde-format
|
||||
msgctxt "@action:button The thing being rejected is an invitation to chat"
|
||||
msgid "Reject and Ignore User"
|
||||
msgstr ""
|
||||
|
||||
#: src/notificationsmanager.cpp:327
|
||||
#: src/notificationsmanager.cpp:323
|
||||
#, kde-format
|
||||
msgid "%1 (%2)"
|
||||
msgstr ""
|
||||
|
||||
#: src/notificationsmanager.cpp:338
|
||||
#: src/notificationsmanager.cpp:334
|
||||
#, kde-format
|
||||
msgid "Open NeoChat"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/AccountMenu.qml:23 src/qml/UserInfo.qml:46
|
||||
#: src/qml/AccountMenu.qml:23
|
||||
#, kde-format
|
||||
msgctxt "@action:button"
|
||||
msgid "Show QR code"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/AccountMenu.qml:39 src/qml/UserInfo.qml:46
|
||||
#, kde-format
|
||||
msgid "Edit this account"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/AccountMenu.qml:28 src/settings/AccountsPage.qml:34
|
||||
#: src/qml/AccountMenu.qml:44 src/settings/AccountsPage.qml:34
|
||||
#: src/settings/AccountsPage.qml:51
|
||||
#, kde-format
|
||||
msgid "Account editor"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/AccountMenu.qml:32
|
||||
#: src/qml/AccountMenu.qml:48
|
||||
#, kde-format
|
||||
msgid "Notification settings"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/AccountMenu.qml:39 src/settings/DevicesPage.qml:17
|
||||
#: src/qml/AccountMenu.qml:55 src/settings/DevicesPage.qml:17
|
||||
#: src/settings/NeoChatSettingsView.qml:85
|
||||
#, kde-format
|
||||
msgid "Devices"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/AccountMenu.qml:46 src/settings/NeoChatGeneralPage.qml:241
|
||||
#: src/qml/AccountMenu.qml:62 src/settings/NeoChatGeneralPage.qml:241
|
||||
#, kde-format
|
||||
msgid "Open developer tools"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/AccountMenu.qml:52
|
||||
#: src/qml/AccountMenu.qml:68
|
||||
#, kde-format
|
||||
msgctxt "@title:window"
|
||||
msgid "Developer Tools"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/AccountMenu.qml:58
|
||||
#: src/qml/AccountMenu.qml:74
|
||||
#, kde-format
|
||||
msgctxt "@action:inmenu"
|
||||
msgid "Open Secret Backup"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/AccountMenu.qml:62
|
||||
#: src/qml/AccountMenu.qml:78
|
||||
#, kde-format
|
||||
msgctxt "@title:window"
|
||||
msgid "Open Key Backup"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/AccountMenu.qml:66
|
||||
#: src/qml/AccountMenu.qml:82
|
||||
#, kde-format
|
||||
msgctxt "@action:inmenu"
|
||||
msgid "Verify this Device"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/AccountMenu.qml:72 src/settings/AccountsPage.qml:88
|
||||
#: src/qml/AccountMenu.qml:88 src/settings/AccountsPage.qml:88
|
||||
#, kde-format
|
||||
msgid "Logout"
|
||||
msgstr ""
|
||||
@@ -2196,8 +2204,8 @@ msgstr ""
|
||||
|
||||
#: src/qml/CreateRoomDialog.qml:30 src/qml/ExploreComponent.qml:64
|
||||
#: src/qml/ExploreComponent.qml:66 src/qml/ExploreComponentMobile.qml:162
|
||||
#: src/qml/ExploreComponentMobile.qml:164 src/qml/SpaceDrawer.qml:294
|
||||
#: src/qml/SpaceDrawer.qml:296
|
||||
#: src/qml/ExploreComponentMobile.qml:164 src/qml/SpaceDrawer.qml:272
|
||||
#: src/qml/SpaceDrawer.qml:274
|
||||
#, kde-format
|
||||
msgctxt "@title"
|
||||
msgid "Create a Space"
|
||||
@@ -2230,7 +2238,7 @@ msgstr ""
|
||||
msgid "Space"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/CreateRoomDialog.qml:77 src/settings/AccountEditorPage.qml:106
|
||||
#: src/qml/CreateRoomDialog.qml:77
|
||||
#, kde-format
|
||||
msgid "Name:"
|
||||
msgstr ""
|
||||
@@ -2868,13 +2876,13 @@ msgstr ""
|
||||
msgid "Send this location"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/LocationsPage.qml:16 src/qml/RoomInformation.qml:127
|
||||
#: src/qml/LocationsPage.qml:16 src/qml/RoomInformation.qml:125
|
||||
#, kde-format
|
||||
msgctxt "Locations on a map"
|
||||
msgid "Locations"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/LocationsPage.qml:68
|
||||
#: src/qml/LocationsPage.qml:65
|
||||
#, kde-format
|
||||
msgid "There are no locations shared in this room."
|
||||
msgstr ""
|
||||
@@ -3120,12 +3128,12 @@ msgstr ""
|
||||
msgid "Reason for reporting this message"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomDelegate.qml:108
|
||||
#: src/qml/RoomDelegate.qml:112
|
||||
#, kde-format
|
||||
msgid "Muted room"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomDelegate.qml:141
|
||||
#: src/qml/RoomDelegate.qml:145
|
||||
#, kde-format
|
||||
msgid "Configure room"
|
||||
msgstr ""
|
||||
@@ -3146,79 +3154,79 @@ msgstr ""
|
||||
msgid "Media"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomInformation.qml:42
|
||||
#: src/qml/RoomInformation.qml:40
|
||||
#, kde-format
|
||||
msgctxt "@action:title"
|
||||
msgid "Space Members"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomInformation.qml:42
|
||||
#: src/qml/RoomInformation.qml:40
|
||||
#, kde-format
|
||||
msgctxt "@action:title"
|
||||
msgid "Room information"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomInformation.qml:70
|
||||
#: src/qml/RoomInformation.qml:68
|
||||
#, kde-format
|
||||
msgctxt "Room actions"
|
||||
msgid "Actions"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomInformation.qml:80
|
||||
#: src/qml/RoomInformation.qml:78
|
||||
#, kde-format
|
||||
msgid "Search in this room"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomInformation.qml:89
|
||||
#: src/qml/RoomInformation.qml:87
|
||||
#, kde-format
|
||||
msgctxt "@action:title"
|
||||
msgid "Search"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomInformation.qml:97
|
||||
#: src/qml/RoomInformation.qml:95
|
||||
#, kde-format
|
||||
msgctxt "@action:button"
|
||||
msgid "Verify user"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomInformation.qml:108
|
||||
#: src/qml/RoomInformation.qml:106
|
||||
#, kde-format
|
||||
msgid "Remove room from favorites"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomInformation.qml:108
|
||||
#: src/qml/RoomInformation.qml:106
|
||||
#, kde-format
|
||||
msgid "Favorite this room"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomInformation.qml:121
|
||||
#: src/qml/RoomInformation.qml:119
|
||||
#, kde-format
|
||||
msgid "Show locations for this room"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomInformation.qml:136
|
||||
#: src/qml/RoomInformation.qml:134
|
||||
#, kde-format
|
||||
msgctxt "@action:button"
|
||||
msgid "Leave this room"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomInformation.qml:149
|
||||
#: src/qml/RoomInformation.qml:147
|
||||
#, kde-format
|
||||
msgid "Members"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomInformation.qml:164 src/qml/SpaceHomePage.qml:55
|
||||
#: src/qml/RoomInformation.qml:162 src/qml/SpaceHomePage.qml:55
|
||||
#, kde-format
|
||||
msgctxt "@title"
|
||||
msgid "Invite a User"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomInformation.qml:168
|
||||
#: src/qml/RoomInformation.qml:166
|
||||
#, kde-format
|
||||
msgid "Invite user to room"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomInformation.qml:175
|
||||
#: src/qml/RoomInformation.qml:173
|
||||
#, kde-format
|
||||
msgid "%1 member"
|
||||
msgid_plural "%1 members"
|
||||
@@ -3227,7 +3235,7 @@ msgstr[1] ""
|
||||
msgstr[2] ""
|
||||
msgstr[3] ""
|
||||
|
||||
#: src/qml/RoomInformation.qml:175
|
||||
#: src/qml/RoomInformation.qml:173
|
||||
#, kde-format
|
||||
msgid "No member count"
|
||||
msgstr ""
|
||||
@@ -3274,7 +3282,12 @@ msgstr ""
|
||||
msgid "NeoChat is offline. Please check your network connection."
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomPage.qml:264
|
||||
#: src/qml/RoomPage.qml:158
|
||||
#, kde-format
|
||||
msgid "Select or join a room to get started"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/RoomPage.qml:265
|
||||
#, kde-format
|
||||
msgid "Message Source"
|
||||
msgstr ""
|
||||
@@ -3429,19 +3442,19 @@ msgstr ""
|
||||
msgid "Home"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/SpaceDrawer.qml:134
|
||||
#: src/qml/SpaceDrawer.qml:135
|
||||
#, kde-format
|
||||
msgctxt "@button View all one-on-one chats with your friends."
|
||||
msgid "Friends"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/SpaceDrawer.qml:242
|
||||
#: src/qml/SpaceDrawer.qml:220
|
||||
#, kde-format
|
||||
msgctxt "Join <name of a space>"
|
||||
msgid "Join %1"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/SpaceDrawer.qml:284
|
||||
#: src/qml/SpaceDrawer.qml:262
|
||||
#, kde-format
|
||||
msgid "Create a space"
|
||||
msgstr ""
|
||||
@@ -3532,27 +3545,27 @@ msgctxt "'Space' is a matrix space"
|
||||
msgid "Leave Space"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/TimelineView.qml:201
|
||||
#: src/qml/TimelineView.qml:196
|
||||
#, kde-format
|
||||
msgid "Jump to first unread message"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/TimelineView.qml:201
|
||||
#: src/qml/TimelineView.qml:196
|
||||
#, kde-format
|
||||
msgid "Jump to oldest loaded message"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/TimelineView.qml:245
|
||||
#: src/qml/TimelineView.qml:236
|
||||
#, kde-format
|
||||
msgid "Jump to latest message"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/TimelineView.qml:270
|
||||
#: src/qml/TimelineView.qml:261
|
||||
#, kde-format
|
||||
msgid "Drag items here to share them"
|
||||
msgstr ""
|
||||
|
||||
#: src/qml/TimelineView.qml:277
|
||||
#: src/qml/TimelineView.qml:268
|
||||
#, kde-format
|
||||
msgctxt "Message displayed when some users are typing"
|
||||
msgid "%2 is typing"
|
||||
@@ -3895,72 +3908,72 @@ msgstr ""
|
||||
msgid "The session verification was canceled due to an unknown error."
|
||||
msgstr ""
|
||||
|
||||
#: src/registration.cpp:309
|
||||
#: src/registration.cpp:311
|
||||
#, kde-format
|
||||
msgid "No server."
|
||||
msgstr ""
|
||||
|
||||
#: src/registration.cpp:311
|
||||
#: src/registration.cpp:313
|
||||
#, kde-format
|
||||
msgid "Checking Server availability."
|
||||
msgstr ""
|
||||
|
||||
#: src/registration.cpp:313
|
||||
#: src/registration.cpp:315
|
||||
#, kde-format
|
||||
msgid "This is not a valid server."
|
||||
msgstr ""
|
||||
|
||||
#: src/registration.cpp:315
|
||||
#: src/registration.cpp:317
|
||||
#, kde-format
|
||||
msgid "Registration for this server is disabled."
|
||||
msgstr ""
|
||||
|
||||
#: src/registration.cpp:317
|
||||
#: src/registration.cpp:319
|
||||
#, kde-format
|
||||
msgid "No username."
|
||||
msgstr ""
|
||||
|
||||
#: src/registration.cpp:319
|
||||
#: src/registration.cpp:321
|
||||
#, kde-format
|
||||
msgid "Checking username availability."
|
||||
msgstr ""
|
||||
|
||||
#: src/registration.cpp:321
|
||||
#: src/registration.cpp:323
|
||||
#, kde-format
|
||||
msgid "This username is not available."
|
||||
msgstr ""
|
||||
|
||||
#: src/registration.cpp:323
|
||||
#: src/registration.cpp:325
|
||||
#, kde-format
|
||||
msgid "Continue"
|
||||
msgstr ""
|
||||
|
||||
#: src/registration.cpp:325
|
||||
#: src/registration.cpp:327
|
||||
#, kde-format
|
||||
msgid "Working"
|
||||
msgstr ""
|
||||
|
||||
#: src/roommanager.cpp:139
|
||||
#: src/roommanager.cpp:138
|
||||
#, kde-format
|
||||
msgid "Malformed or empty Matrix id"
|
||||
msgstr ""
|
||||
|
||||
#: src/roommanager.cpp:139
|
||||
#: src/roommanager.cpp:138
|
||||
#, kde-format
|
||||
msgid "%1 is not a correct Matrix identifier"
|
||||
msgstr ""
|
||||
|
||||
#: src/roommanager.cpp:352
|
||||
#: src/roommanager.cpp:345
|
||||
#, kde-format
|
||||
msgid "Failed to join room"
|
||||
msgstr ""
|
||||
|
||||
#: src/roommanager.cpp:388
|
||||
#: src/roommanager.cpp:377
|
||||
#, kde-format
|
||||
msgid "You requested to join '%1'"
|
||||
msgstr ""
|
||||
|
||||
#: src/roommanager.cpp:392
|
||||
#: src/roommanager.cpp:381
|
||||
#, kde-format
|
||||
msgid "Failed to request joining room"
|
||||
msgstr ""
|
||||
@@ -3982,7 +3995,12 @@ msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:101
|
||||
#, kde-format
|
||||
msgid "User information"
|
||||
msgid "User Information"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:106
|
||||
#, kde-format
|
||||
msgid "Display Name:"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:112
|
||||
@@ -3990,96 +4008,101 @@ msgstr ""
|
||||
msgid "Label:"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:117
|
||||
#: src/settings/AccountEditorPage.qml:113
|
||||
#, kde-format
|
||||
msgctxt "@action:button"
|
||||
msgid "QR code for account"
|
||||
msgid "Work"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:133
|
||||
#: src/settings/AccountEditorPage.qml:188
|
||||
#: src/settings/AccountEditorPage.qml:118
|
||||
#, kde-format
|
||||
msgctxt "@action:button"
|
||||
msgid "Show QR Code"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:135
|
||||
#: src/settings/AccountEditorPage.qml:191
|
||||
#: src/settings/EmoticonEditorPage.qml:108 src/settings/RoomGeneralPage.qml:105
|
||||
#, kde-format
|
||||
msgid "Save"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:154
|
||||
#: src/settings/AccountEditorPage.qml:157
|
||||
#, kde-format
|
||||
msgid "Your server doesn't support changing your password"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:161
|
||||
#: src/settings/AccountEditorPage.qml:164
|
||||
#, kde-format
|
||||
msgid "Current Password:"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:168
|
||||
#: src/settings/AccountEditorPage.qml:171
|
||||
#, kde-format
|
||||
msgid "New Password:"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:175
|
||||
#: src/settings/AccountEditorPage.qml:178
|
||||
#, kde-format
|
||||
msgid "Confirm new Password:"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:180
|
||||
#: src/settings/AccountEditorPage.qml:183
|
||||
#, kde-format
|
||||
msgid "Passwords don't match"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:194
|
||||
#: src/settings/AccountEditorPage.qml:198
|
||||
#, kde-format
|
||||
msgid "Passwords do not match"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:201
|
||||
#: src/settings/AccountEditorPage.qml:205
|
||||
#, kde-format
|
||||
msgid "Email Addresses"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:207
|
||||
#: src/settings/AccountEditorPage.qml:211
|
||||
#, kde-format
|
||||
msgid "Phone Numbers"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:212
|
||||
#: src/settings/AccountEditorPage.qml:216
|
||||
#, kde-format
|
||||
msgid "Identity Server"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:221
|
||||
#: src/settings/AccountEditorPage.qml:225
|
||||
#, kde-format
|
||||
msgid "Server Information"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:225
|
||||
#: src/settings/AccountEditorPage.qml:229
|
||||
#, kde-format
|
||||
msgid "Homeserver url"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:246
|
||||
#: src/settings/AccountEditorPage.qml:250
|
||||
#, kde-format
|
||||
msgctxt "@title"
|
||||
msgid "Account Management"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:251
|
||||
#: src/settings/AccountEditorPage.qml:255
|
||||
#, kde-format
|
||||
msgid "Deactivate Account"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:266
|
||||
#: src/settings/AccountEditorPage.qml:271
|
||||
#, kde-format
|
||||
msgid "Password changed successfully"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:268
|
||||
#: src/settings/AccountEditorPage.qml:273
|
||||
#, kde-format
|
||||
msgid "Wrong password entered"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/AccountEditorPage.qml:270
|
||||
#: src/settings/AccountEditorPage.qml:275
|
||||
#, kde-format
|
||||
msgid "Unknown problem while trying to change password"
|
||||
msgstr ""
|
||||
@@ -4320,6 +4343,44 @@ msgctxt "@title"
|
||||
msgid "Stickers & Emojis"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/ExportKeysDialog.qml:18
|
||||
#: src/settings/NeoChatSecurityPage.qml:101
|
||||
#, kde-format
|
||||
msgctxt "@title"
|
||||
msgid "Export Keys"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/ExportKeysDialog.qml:33 src/settings/ImportKeysDialog.qml:51
|
||||
#, kde-format
|
||||
msgctxt "@label:textbox"
|
||||
msgid "Passphrase:"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/ExportKeysDialog.qml:37
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"A passphrase to secure your key backup. It should not be your account "
|
||||
"password."
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/ExportKeysDialog.qml:42
|
||||
#, kde-format
|
||||
msgctxt "@action:button"
|
||||
msgid "Export keys"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/ExportKeysDialog.qml:50
|
||||
#, kde-format
|
||||
msgctxt "@info"
|
||||
msgid "Keys exported successfully"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/ExportKeysDialog.qml:54 src/settings/ImportKeysDialog.qml:74
|
||||
#, kde-format
|
||||
msgctxt "@info"
|
||||
msgid "Unknown error"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/GlobalNotificationsPage.qml:19
|
||||
#, kde-format
|
||||
msgctxt "@title:window"
|
||||
@@ -4419,25 +4480,48 @@ msgctxt "@title"
|
||||
msgid "Ignored Users"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/IgnoredUsersDialog.qml:24
|
||||
#: src/settings/NeoChatSecurityPage.qml:35
|
||||
#, kde-format
|
||||
msgctxt "@title:group"
|
||||
msgid "Ignored Users"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/IgnoredUsersDialog.qml:29
|
||||
#: src/settings/IgnoredUsersDialog.qml:25
|
||||
#, kde-format
|
||||
msgctxt "Placeholder message when no user is ignored"
|
||||
msgid "You are not ignoring any users"
|
||||
msgid "No ignored users"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/IgnoredUsersDialog.qml:51
|
||||
#: src/settings/IgnoredUsersDialog.qml:55
|
||||
#, kde-format
|
||||
msgctxt "@action:button"
|
||||
msgid "Unignore this user"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/ImportKeysDialog.qml:22 src/settings/NeoChatSecurityPage.qml:84
|
||||
#, kde-format
|
||||
msgctxt "@title"
|
||||
msgid "Import Keys"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/ImportKeysDialog.qml:35
|
||||
#, kde-format
|
||||
msgctxt "@action:button"
|
||||
msgid "Choose backup file"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/ImportKeysDialog.qml:56
|
||||
#, kde-format
|
||||
msgctxt "@action:button"
|
||||
msgid "Import keys"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/ImportKeysDialog.qml:66
|
||||
#, kde-format
|
||||
msgctxt "@info"
|
||||
msgid "Invalid passphrase"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/ImportKeysDialog.qml:70
|
||||
#, kde-format
|
||||
msgctxt "@info"
|
||||
msgid "Invalid key backup data"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatGeneralPage.qml:20
|
||||
#, kde-format
|
||||
msgctxt "@title:window"
|
||||
@@ -4542,69 +4626,99 @@ msgstr ""
|
||||
msgid "Enable developer tools"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:17
|
||||
#: src/settings/NeoChatSecurityPage.qml:18
|
||||
#, kde-format
|
||||
msgctxt "@title"
|
||||
msgid "Security"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:20
|
||||
#: src/settings/NeoChatSecurityPage.qml:28
|
||||
#, kde-format
|
||||
msgctxt "@title:group"
|
||||
msgid "Invitations"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:24
|
||||
#: src/settings/NeoChatSecurityPage.qml:32
|
||||
#, kde-format
|
||||
msgctxt "@option:check"
|
||||
msgid "Reject invitations from unknown users"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:25
|
||||
#: src/settings/NeoChatSecurityPage.qml:33
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"If enabled, NeoChat will reject invitations from from users you don't share "
|
||||
"a room with."
|
||||
"If enabled, NeoChat will reject invitations from users you don't share a "
|
||||
"room with."
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:25
|
||||
#: src/settings/NeoChatSecurityPage.qml:33
|
||||
#, kde-format
|
||||
msgid "Your server does not support this setting."
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:39
|
||||
#: src/settings/NeoChatSecurityPage.qml:43
|
||||
#, kde-format
|
||||
msgctxt "@title:group"
|
||||
msgid "Ignored Users"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:47
|
||||
#, kde-format
|
||||
msgctxt "@action:button"
|
||||
msgid "Manage ignored users"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:41
|
||||
#: src/settings/NeoChatSecurityPage.qml:49
|
||||
#, kde-format
|
||||
msgctxt "@title:window"
|
||||
msgid "Ignored Users"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:46
|
||||
#: src/settings/NeoChatSecurityPage.qml:54
|
||||
#, kde-format
|
||||
msgctxt "@title"
|
||||
msgid "Keys"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:51
|
||||
#: src/settings/NeoChatSecurityPage.qml:59
|
||||
#, kde-format
|
||||
msgid "Device key"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:55
|
||||
#: src/settings/NeoChatSecurityPage.qml:63
|
||||
#, kde-format
|
||||
msgid "Encryption key"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:59
|
||||
#: src/settings/NeoChatSecurityPage.qml:67
|
||||
#, kde-format
|
||||
msgid "Device id"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:73
|
||||
#, kde-format
|
||||
msgctxt "@title"
|
||||
msgid "Encryption Keys"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:78
|
||||
#, kde-format
|
||||
msgctxt "@action:button"
|
||||
msgid "Import Encryption Keys"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:87
|
||||
#, kde-format
|
||||
msgctxt "@info"
|
||||
msgid "Keys imported successfully"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSecurityPage.qml:95
|
||||
#, kde-format
|
||||
msgctxt "@action:button"
|
||||
msgid "Export Encryption Keys"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/NeoChatSettingsView.qml:22 src/settings/RoomGeneralPage.qml:22
|
||||
#: src/settings/RoomSettingsView.qml:39
|
||||
#, kde-format
|
||||
@@ -5142,13 +5256,13 @@ msgstr ""
|
||||
#: src/settings/ThreePIdCard.qml:146
|
||||
#, kde-format
|
||||
msgctxt "@label:textbox"
|
||||
msgid "New email address"
|
||||
msgid "New Email Address:"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/ThreePIdCard.qml:146
|
||||
#, kde-format
|
||||
msgctxt "@label:textbox"
|
||||
msgid "New phone number"
|
||||
msgid "New Phone Number:"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/ThreePIdCard.qml:150 src/threepidbindhelper.cpp:177
|
||||
@@ -5196,13 +5310,13 @@ msgid ""
|
||||
"follow the instructions there and then click the button below"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/ThreePIdCard.qml:181
|
||||
#: src/settings/ThreePIdCard.qml:183
|
||||
#, kde-format
|
||||
msgctxt "@action:button Add new email or phone number"
|
||||
msgid "Add"
|
||||
msgstr ""
|
||||
|
||||
#: src/settings/ThreePIdCard.qml:189
|
||||
#: src/settings/ThreePIdCard.qml:191
|
||||
#, kde-format
|
||||
msgctxt "@action:button As in 'go back'"
|
||||
msgid "Back"
|
||||
|
||||
430
po/lv/neochat.po
430
po/lv/neochat.po
File diff suppressed because it is too large
Load Diff
428
po/nl/neochat.po
428
po/nl/neochat.po
File diff suppressed because it is too large
Load Diff
421
po/nn/neochat.po
421
po/nn/neochat.po
File diff suppressed because it is too large
Load Diff
422
po/pa/neochat.po
422
po/pa/neochat.po
File diff suppressed because it is too large
Load Diff
410
po/pl/neochat.po
410
po/pl/neochat.po
File diff suppressed because it is too large
Load Diff
425
po/pt/neochat.po
425
po/pt/neochat.po
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
420
po/ru/neochat.po
420
po/ru/neochat.po
File diff suppressed because it is too large
Load Diff
422
po/sk/neochat.po
422
po/sk/neochat.po
File diff suppressed because it is too large
Load Diff
414
po/sl/neochat.po
414
po/sl/neochat.po
File diff suppressed because it is too large
Load Diff
406
po/sv/neochat.po
406
po/sv/neochat.po
File diff suppressed because it is too large
Load Diff
472
po/ta/neochat.po
472
po/ta/neochat.po
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
424
po/tr/neochat.po
424
po/tr/neochat.po
File diff suppressed because it is too large
Load Diff
414
po/uk/neochat.po
414
po/uk/neochat.po
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -288,6 +288,7 @@ ecm_add_qml_module(neochat URI org.kde.neochat GENERATE_PLUGIN_SOURCE
|
||||
qml/ConsentDialog.qml
|
||||
qml/AskDirectChatConfirmation.qml
|
||||
qml/HoverLinkIndicator.qml
|
||||
qml/AvatarNotification.qml
|
||||
DEPENDENCIES
|
||||
QtCore
|
||||
QtQuick
|
||||
@@ -425,7 +426,7 @@ if (TARGET KF6::Crash)
|
||||
target_link_libraries(neochat PUBLIC KF6::Crash)
|
||||
endif()
|
||||
|
||||
kconfig_add_kcfg_files(neochat GENERATE_MOC neochatconfig.kcfgc)
|
||||
kconfig_target_kcfg_file(neochat FILE neochatconfig.kcfg CLASS_NAME NeoChatConfig MUTATORS GENERATE_PROPERTIES DEFAULT_VALUE_GETTERS PARENT_IN_CONSTRUCTOR SINGLETON GENERATE_MOC QML_REGISTRATION)
|
||||
|
||||
if(NEOCHAT_FLATPAK)
|
||||
target_compile_definitions(neochat PUBLIC NEOCHAT_FLATPAK)
|
||||
|
||||
@@ -219,7 +219,7 @@ QQC2.Control {
|
||||
}
|
||||
|
||||
onTextChanged: {
|
||||
if (!repeatTimer.running && Config.typingNotifications) {
|
||||
if (!repeatTimer.running && NeoChatConfig.typingNotifications) {
|
||||
var textExists = text.length > 0;
|
||||
root.currentRoom.sendTypingNotification(textExists);
|
||||
textExists ? repeatTimer.start() : repeatTimer.stop();
|
||||
@@ -353,8 +353,8 @@ QQC2.Control {
|
||||
startBreakpoint: Kirigami.Units.gridUnit * 46
|
||||
endBreakpoint: Kirigami.Units.gridUnit * 66
|
||||
startPercentWidth: 100
|
||||
endPercentWidth: Config.compactLayout ? 100 : 85
|
||||
maxWidth: Config.compactLayout ? -1 : Kirigami.Units.gridUnit * 60
|
||||
endPercentWidth: NeoChatConfig.compactLayout ? 100 : 85
|
||||
maxWidth: NeoChatConfig.compactLayout ? -1 : Kirigami.Units.gridUnit * 60
|
||||
|
||||
parentWidth: root.width
|
||||
}
|
||||
|
||||
@@ -120,11 +120,7 @@ QString ChatBarCache::relationMessage() const
|
||||
|
||||
if (auto event = room->findInTimeline(m_relationId); event != room->historyEdge()) {
|
||||
EventHandler eventhandler(room, &**event);
|
||||
if (isEditing()) {
|
||||
return eventhandler.getMarkdownBody();
|
||||
} else {
|
||||
return eventhandler.getMarkdownBody().toHtmlEscaped();
|
||||
}
|
||||
return eventhandler.getMarkdownBody();
|
||||
}
|
||||
return {};
|
||||
}
|
||||
|
||||
@@ -9,12 +9,18 @@
|
||||
#include <KLocalizedString>
|
||||
|
||||
#include <QGuiApplication>
|
||||
#include <QNetworkReply>
|
||||
#include <QRandomGenerator>
|
||||
#include <QTcpServer>
|
||||
#include <QTimer>
|
||||
|
||||
#include <QCoroNetworkReply>
|
||||
|
||||
#include <signal.h>
|
||||
|
||||
#include <Quotient/accountregistry.h>
|
||||
#include <Quotient/csapi/notifications.h>
|
||||
#include <Quotient/csapi/wellknown.h>
|
||||
#include <Quotient/qt_connection_util.h>
|
||||
#include <Quotient/settings.h>
|
||||
|
||||
@@ -45,6 +51,7 @@
|
||||
bool testMode = false;
|
||||
|
||||
using namespace Quotient;
|
||||
using namespace Qt::Literals::StringLiterals;
|
||||
|
||||
Controller::Controller(QObject *parent)
|
||||
: QObject(parent)
|
||||
@@ -64,11 +71,7 @@ Controller::Controller(QObject *parent)
|
||||
});
|
||||
} else {
|
||||
auto c = new NeoChatConnection(this);
|
||||
#if Quotient_VERSION_MINOR > 8
|
||||
c->assumeIdentity(QStringLiteral("@user:localhost:1234"), QStringLiteral("device_1234"), QStringLiteral("token_1234"));
|
||||
#else
|
||||
c->assumeIdentity(QStringLiteral("@user:localhost:1234"), QStringLiteral("token_1234"));
|
||||
#endif
|
||||
connect(c, &Connection::connected, this, [c, this]() {
|
||||
m_accountRegistry.add(c);
|
||||
c->syncLoop();
|
||||
@@ -206,33 +209,20 @@ void Controller::invokeLogin()
|
||||
m_connectionsLoading[accountId] = connection;
|
||||
connect(connection, &NeoChatConnection::connected, this, [this, connection, accountId] {
|
||||
connection->loadState();
|
||||
if (connection->allRooms().size() == 0 || connection->allRooms()[0]->currentState().get<RoomCreateEvent>()) {
|
||||
addConnection(connection);
|
||||
m_accountsLoading.removeAll(connection->userId());
|
||||
m_connectionsLoading.remove(accountId);
|
||||
Q_EMIT accountsLoadingChanged();
|
||||
} else {
|
||||
connect(
|
||||
connection->allRooms()[0],
|
||||
&Room::baseStateLoaded,
|
||||
this,
|
||||
[this, connection, accountId]() {
|
||||
addConnection(connection);
|
||||
m_accountsLoading.removeAll(connection->userId());
|
||||
m_connectionsLoading.remove(accountId);
|
||||
Q_EMIT accountsLoadingChanged();
|
||||
},
|
||||
Qt::SingleShotConnection);
|
||||
}
|
||||
addConnection(connection);
|
||||
m_accountsLoading.removeAll(connection->userId());
|
||||
m_connectionsLoading.remove(accountId);
|
||||
Q_EMIT accountsLoadingChanged();
|
||||
});
|
||||
connect(connection, &NeoChatConnection::networkError, this, [this](const QString &error, const QString &, int, int) {
|
||||
Q_EMIT errorOccured(i18n("Network Error: %1", error), {});
|
||||
});
|
||||
#if Quotient_VERSION_MINOR > 8
|
||||
connection->assumeIdentity(account.userId(), account.deviceId(), accessToken);
|
||||
#else
|
||||
connection->assumeIdentity(account.userId(), accessToken);
|
||||
#endif
|
||||
|
||||
if (!account.clientId().isEmpty()) {
|
||||
connection->assumeOidcIdentity(account.userId(), accessToken, account.clientId(), account.tokenEndpoint());
|
||||
} else {
|
||||
connection->assumeIdentity(account.userId(), accessToken);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -273,19 +263,23 @@ QKeychain::ReadPasswordJob *Controller::loadAccessTokenFromKeyChain(const QStrin
|
||||
return job;
|
||||
}
|
||||
|
||||
void Controller::saveAccessTokenToKeyChain(const QString &userId, const QByteArray &accessToken)
|
||||
bool Controller::saveAccessTokenToKeyChain(const QString &userId, const QByteArray &accessToken)
|
||||
{
|
||||
qDebug() << "Save the access token to the keychain for " << userId;
|
||||
auto job = new QKeychain::WritePasswordJob(qAppName());
|
||||
job->setAutoDelete(true);
|
||||
job->setKey(userId);
|
||||
job->setBinaryData(accessToken);
|
||||
connect(job, &QKeychain::WritePasswordJob::finished, this, [job]() {
|
||||
if (job->error()) {
|
||||
qWarning() << "Could not save access token to the keychain: " << qPrintable(job->errorString());
|
||||
}
|
||||
});
|
||||
job->start();
|
||||
QKeychain::WritePasswordJob job(qAppName());
|
||||
job.setAutoDelete(false);
|
||||
job.setKey(userId);
|
||||
job.setBinaryData(accessToken);
|
||||
QEventLoop loop;
|
||||
QKeychain::WritePasswordJob::connect(&job, &QKeychain::Job::finished, &loop, &QEventLoop::quit);
|
||||
job.start();
|
||||
loop.exec();
|
||||
|
||||
if (job.error()) {
|
||||
qWarning() << "Could not save access token to the keychain: " << qPrintable(job.errorString());
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
bool Controller::supportSystemTray() const
|
||||
@@ -427,11 +421,29 @@ void Controller::removeConnection(const QString &userId)
|
||||
|
||||
bool Controller::csSupported() const
|
||||
{
|
||||
#if Quotient_VERSION_MINOR > 9
|
||||
#if Quotient_VERSION_MINOR > 8
|
||||
return true;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
NeoChatConnection *Controller::pendingOidcConnection() const
|
||||
{
|
||||
return m_pendingOidcConnection.get();
|
||||
}
|
||||
|
||||
void Controller::startOidcLogin(const QString &homeserver)
|
||||
{
|
||||
auto url = QUrl::fromUserInput(homeserver.startsWith(u"https:"_s) ? homeserver : u"https://%1"_s.arg(homeserver));
|
||||
m_pendingOidcConnection = new NeoChatConnection(url, this);
|
||||
Q_EMIT pendingOidcConnectionChanged();
|
||||
m_pendingOidcConnection->startOidcLogin();
|
||||
connect(m_pendingOidcConnection, &Connection::connected, this, [this]() {
|
||||
m_pendingOidcConnection->loadState();
|
||||
addConnection(m_pendingOidcConnection);
|
||||
setActiveConnection(m_pendingOidcConnection);
|
||||
});
|
||||
}
|
||||
|
||||
#include "moc_controller.cpp"
|
||||
|
||||
@@ -52,6 +52,8 @@ class Controller : public QObject
|
||||
|
||||
Q_PROPERTY(bool csSupported READ csSupported CONSTANT)
|
||||
|
||||
Q_PROPERTY(NeoChatConnection *pendingOidcConnection READ pendingOidcConnection NOTIFY pendingOidcConnectionChanged)
|
||||
|
||||
public:
|
||||
/**
|
||||
* @brief Define the types on inline messages that can be shown.
|
||||
@@ -86,7 +88,7 @@ public:
|
||||
/**
|
||||
* @brief Save an access token to the keychain for the given account.
|
||||
*/
|
||||
void saveAccessTokenToKeyChain(const QString &userId, const QByteArray &accessToken);
|
||||
bool saveAccessTokenToKeyChain(const QString &userId, const QByteArray &accessToken);
|
||||
|
||||
[[nodiscard]] bool supportSystemTray() const;
|
||||
|
||||
@@ -106,8 +108,12 @@ public:
|
||||
|
||||
Q_INVOKABLE void removeConnection(const QString &userId);
|
||||
|
||||
Q_INVOKABLE void startOidcLogin(const QString &homeserver);
|
||||
|
||||
bool csSupported() const;
|
||||
|
||||
NeoChatConnection *pendingOidcConnection() const;
|
||||
|
||||
private:
|
||||
explicit Controller(QObject *parent = nullptr);
|
||||
|
||||
@@ -119,10 +125,13 @@ private:
|
||||
void loadSettings();
|
||||
void saveSettings() const;
|
||||
|
||||
QCoro::Task<void> doStartOidcLogin(QString homeserver);
|
||||
|
||||
Quotient::AccountRegistry m_accountRegistry;
|
||||
QStringList m_accountsLoading;
|
||||
QMap<QString, QPointer<NeoChatConnection>> m_connectionsLoading;
|
||||
QString m_endpoint;
|
||||
QPointer<NeoChatConnection> m_pendingOidcConnection;
|
||||
|
||||
private Q_SLOTS:
|
||||
void invokeLogin();
|
||||
@@ -136,4 +145,5 @@ Q_SIGNALS:
|
||||
void activeConnectionChanged(NeoChatConnection *connection);
|
||||
void accountsLoadingChanged();
|
||||
void showMessage(MessageType messageType, const QString &message);
|
||||
void pendingOidcConnectionChanged();
|
||||
};
|
||||
|
||||
@@ -17,25 +17,25 @@ FormCard.FormCardPage {
|
||||
|
||||
FormCard.FormCheckDelegate {
|
||||
text: i18nc("@option:check", "Show hidden events in the timeline")
|
||||
checked: Config.showAllEvents
|
||||
checked: NeoChatConfig.showAllEvents
|
||||
|
||||
onToggled: Config.showAllEvents = checked
|
||||
onToggled: NeoChatConfig.showAllEvents = checked
|
||||
}
|
||||
FormCard.FormCheckDelegate {
|
||||
id: roomAccountDataVisibleCheck
|
||||
text: i18nc("@option:check Enable the matrix 'threads' feature", "Always allow device verification")
|
||||
description: i18n("Allow the user to start a verification session with devices that were already verified")
|
||||
checked: Config.alwaysVerifyDevice
|
||||
checked: NeoChatConfig.alwaysVerifyDevice
|
||||
|
||||
onToggled: Config.alwaysVerifyDevice = checked
|
||||
onToggled: NeoChatConfig.alwaysVerifyDevice = checked
|
||||
}
|
||||
FormCard.FormCheckDelegate {
|
||||
text: i18nc("@option:check", "Show focus in window header")
|
||||
checked: Config.windowTitleFocus
|
||||
checked: NeoChatConfig.windowTitleFocus
|
||||
|
||||
onToggled: {
|
||||
Config.windowTitleFocus = checked;
|
||||
Config.save();
|
||||
NeoChatConfig.windowTitleFocus = checked;
|
||||
NeoChatConfig.save();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,23 +18,23 @@ FormCard.FormCardPage {
|
||||
FormCard.FormCheckDelegate {
|
||||
id: roomAccountDataVisibleCheck
|
||||
text: i18nc("@option:check Enable the matrix 'threads' feature", "Threads")
|
||||
checked: Config.threads
|
||||
checked: NeoChatConfig.threads
|
||||
|
||||
onToggled: Config.threads = checked
|
||||
onToggled: NeoChatConfig.threads = checked
|
||||
}
|
||||
FormCard.FormCheckDelegate {
|
||||
text: i18nc("@option:check Enable the matrix 'secret backup' feature", "Secret Backup")
|
||||
checked: Config.secretBackup
|
||||
checked: NeoChatConfig.secretBackup
|
||||
|
||||
onToggled: Config.secretBackup = checked
|
||||
onToggled: NeoChatConfig.secretBackup = checked
|
||||
}
|
||||
FormCard.FormCheckDelegate {
|
||||
text: i18nc("@option:check Enable the matrix feature to add a phone number as a third party ID", "Add phone numbers as 3PIDs")
|
||||
checked: Config.phone3PId
|
||||
checked: NeoChatConfig.phone3PId
|
||||
|
||||
onToggled: {
|
||||
Config.phone3PId = checked
|
||||
Config.save();
|
||||
NeoChatConfig.phone3PId = checked
|
||||
NeoChatConfig.save();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -294,7 +294,7 @@ QString EventHandler::getBody(const Quotient::RoomEvent *event, Qt::TextFormat f
|
||||
{
|
||||
if (event->isRedacted()) {
|
||||
auto reason = event->redactedBecause()->reason();
|
||||
return (reason.isEmpty()) ? i18n("<i>[This message was deleted]</i>") : i18n("<i>[This message was deleted: %1]</i>", reason.toHtmlEscaped());
|
||||
return (reason.isEmpty()) ? i18n("<i>[This message was deleted]</i>") : i18n("<i>[This message was deleted: %1]</i>", reason);
|
||||
}
|
||||
|
||||
const bool prettyPrint = (format == Qt::RichText);
|
||||
|
||||
@@ -10,22 +10,13 @@
|
||||
#include <Quotient/keyverificationsession.h>
|
||||
#include <Quotient/roommember.h>
|
||||
|
||||
#if Quotient_VERSION_MINOR > 8
|
||||
#include <Quotient/keyimport.h>
|
||||
#endif
|
||||
|
||||
#include "controller.h"
|
||||
#include "neochatconfig.h"
|
||||
|
||||
struct ForeignConfig {
|
||||
Q_GADGET
|
||||
QML_FOREIGN(NeoChatConfig)
|
||||
QML_NAMED_ELEMENT(Config)
|
||||
QML_SINGLETON
|
||||
public:
|
||||
static NeoChatConfig *create(QQmlEngine *, QJSEngine *)
|
||||
{
|
||||
QQmlEngine::setObjectOwnership(NeoChatConfig::self(), QQmlEngine::CppOwnership);
|
||||
return NeoChatConfig::self();
|
||||
}
|
||||
};
|
||||
|
||||
struct ForeignAccountRegistry {
|
||||
Q_GADGET
|
||||
QML_FOREIGN(Quotient::AccountRegistry)
|
||||
@@ -51,3 +42,12 @@ struct ForeignSSSSHandler {
|
||||
QML_FOREIGN(Quotient::SSSSHandler)
|
||||
QML_NAMED_ELEMENT(SSSSHandler)
|
||||
};
|
||||
|
||||
#if Quotient_VERSION_MINOR > 8
|
||||
struct ForeignKeyImport {
|
||||
Q_GADGET
|
||||
QML_SINGLETON
|
||||
QML_FOREIGN(Quotient::KeyImport)
|
||||
QML_NAMED_ELEMENT(KeyImport)
|
||||
};
|
||||
#endif
|
||||
|
||||
@@ -40,7 +40,7 @@ float LocationHelper::zoomToFit(const QRectF &r, float mapWidth, float mapHeight
|
||||
const auto zy = std::log2((mapHeight / (p2.y() - p1.y())));
|
||||
const auto z = std::min(zx, zy);
|
||||
|
||||
return z;
|
||||
return std::clamp(z, 5.0, 18.0);
|
||||
}
|
||||
|
||||
#include "moc_locationhelper.cpp"
|
||||
|
||||
@@ -78,7 +78,9 @@ void LoginHelper::init()
|
||||
account.setHomeserver(m_connection->homeserver());
|
||||
account.setDeviceId(m_connection->deviceId());
|
||||
account.setDeviceName(m_deviceName);
|
||||
Controller::instance().saveAccessTokenToKeyChain(account.userId(), m_connection->accessToken());
|
||||
if (!Controller::instance().saveAccessTokenToKeyChain(account.userId(), m_connection->accessToken())) {
|
||||
qWarning() << "Couldn't save access token";
|
||||
}
|
||||
account.sync();
|
||||
Controller::instance().addConnection(m_connection);
|
||||
Controller::instance().setActiveConnection(m_connection);
|
||||
|
||||
@@ -20,4 +20,5 @@ ecm_add_qml_module(login GENERATE_PLUGIN_SOURCE
|
||||
Sso.qml
|
||||
Terms.qml
|
||||
Username.qml
|
||||
Oidc.qml
|
||||
)
|
||||
|
||||
@@ -31,4 +31,11 @@ LoginStep {
|
||||
text: i18nc("@action:button", "Register")
|
||||
onClicked: root.processed("Homeserver")
|
||||
}
|
||||
|
||||
FormCard.FormDelegateSeparator {}
|
||||
|
||||
FormCard.FormButtonDelegate {
|
||||
text: i18nc("@action:button", "Login with OIDC")
|
||||
onClicked: root.processed("Oidc")
|
||||
}
|
||||
}
|
||||
|
||||
74
src/login/Oidc.qml
Normal file
74
src/login/Oidc.qml
Normal file
@@ -0,0 +1,74 @@
|
||||
// SPDX-FileCopyrightText: 2024 Tobias Fella <tobias.fella@kde.org>
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
|
||||
import org.kde.kirigamiaddons.formcard as FormCard
|
||||
|
||||
import org.kde.neochat
|
||||
|
||||
LoginStep {
|
||||
id: root
|
||||
FormCard.FormTextFieldDelegate {
|
||||
id: homeserver
|
||||
|
||||
visible: !infoLabel.visible
|
||||
label: i18n("Homeserver")
|
||||
text: "synapse-oidc.element.dev"
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: Controller.pendingOidcConnection
|
||||
function onOpenOidcUrl(url: string): void {
|
||||
infoLabel.url = url;
|
||||
infoLabel.visible = true;
|
||||
}
|
||||
function onConnected(): void {
|
||||
root.processed("Loading");
|
||||
}
|
||||
}
|
||||
|
||||
FormCard.FormTextDelegate {
|
||||
id: infoLabel
|
||||
|
||||
property string url: ""
|
||||
visible: false
|
||||
text: i18n("To continue, please open the following link in your web browser: %1", "<br /><br /><a href='" + url + "'>" + url + "</a>")
|
||||
onLinkActivated: url => Qt.openUrlExternally(url)
|
||||
}
|
||||
FormCard.FormDelegateSeparator { above: openLink }
|
||||
|
||||
FormCard.FormButtonDelegate {
|
||||
id: openLink
|
||||
visible: infoLabel.visible
|
||||
text: i18n("Open Authorization Link")
|
||||
icon.name: "document-open"
|
||||
onClicked: Qt.openUrlExternally(infoLabel.url.authorizeUrl)
|
||||
}
|
||||
|
||||
FormCard.FormDelegateSeparator {
|
||||
visible: infoLabel.visible
|
||||
above: openLink
|
||||
below: copyLink
|
||||
}
|
||||
|
||||
FormCard.FormButtonDelegate {
|
||||
id: copyLink
|
||||
|
||||
visible: infoLabel.visible
|
||||
text: i18n("Copy Authorization Link")
|
||||
icon.name: "edit-copy"
|
||||
onClicked: {
|
||||
Clipboard.saveText(infoLabel.url)
|
||||
applicationWindow().showPassiveNotification(i18n("Link copied."));
|
||||
}
|
||||
}
|
||||
|
||||
FormCard.FormButtonDelegate {
|
||||
visible: !infoLabel.visible
|
||||
text: i18nc("@action:button", "Log in with OIDC")
|
||||
onClicked: Controller.startOidcLogin(homeserver.text)
|
||||
|
||||
}
|
||||
}
|
||||
@@ -148,7 +148,7 @@ int main(int argc, char *argv[])
|
||||
i18n("Maintainer"),
|
||||
QStringLiteral("carl@carlschwan.eu"),
|
||||
QStringLiteral("https://carlschwan.eu"),
|
||||
QStringLiteral("https://carlschwan.eu/avatar.png"));
|
||||
QUrl(QStringLiteral("https://carlschwan.eu/avatar.png")));
|
||||
about.addAuthor(i18n("Tobias Fella"), i18n("Maintainer"), QStringLiteral("tobias.fella@kde.org"), QStringLiteral("https://tobiasfella.de"));
|
||||
about.addAuthor(i18n("James Graham"), i18n("Maintainer"), QStringLiteral("james.h.graham@protonmail.com"));
|
||||
about.addCredit(i18n("Black Hat"), i18n("Original author of Spectral"), QStringLiteral("bhat@encom.eu.org"));
|
||||
|
||||
@@ -31,8 +31,8 @@
|
||||
|
||||
using namespace Quotient;
|
||||
|
||||
MessageContentModel::MessageContentModel(NeoChatRoom *room, const Quotient::RoomEvent *event, bool isReply, bool isPending)
|
||||
: QAbstractListModel(nullptr)
|
||||
MessageContentModel::MessageContentModel(NeoChatRoom *room, const Quotient::RoomEvent *event, bool isReply, bool isPending, MessageContentModel *parent)
|
||||
: QAbstractListModel(parent)
|
||||
, m_room(room)
|
||||
, m_eventId(event != nullptr ? event->id() : QString())
|
||||
, m_eventSenderId(event != nullptr ? event->senderId() : QString())
|
||||
@@ -43,8 +43,8 @@ MessageContentModel::MessageContentModel(NeoChatRoom *room, const Quotient::Room
|
||||
initializeModel();
|
||||
}
|
||||
|
||||
MessageContentModel::MessageContentModel(NeoChatRoom *room, const QString &eventId, bool isReply, bool isPending)
|
||||
: QAbstractListModel(nullptr)
|
||||
MessageContentModel::MessageContentModel(NeoChatRoom *room, const QString &eventId, bool isReply, bool isPending, MessageContentModel *parent)
|
||||
: QAbstractListModel(parent)
|
||||
, m_room(room)
|
||||
, m_eventId(eventId)
|
||||
, m_isPending(isPending)
|
||||
@@ -58,15 +58,16 @@ void MessageContentModel::initializeModel()
|
||||
Q_ASSERT(m_room != nullptr);
|
||||
// Allow making a model for an event that is being downloaded but will appear later
|
||||
// e.g. a reply, but we need an ID to know when it has arrived.
|
||||
Q_ASSERT(!m_eventId.isEmpty());
|
||||
// Also note that a pending event may not have an event ID yet but as long as we have an event
|
||||
// pointer we can pass out the transaction ID until it is set.
|
||||
Q_ASSERT(!m_eventId.isEmpty() || m_event != nullptr);
|
||||
|
||||
Quotient::connectUntil(m_room.get(), &NeoChatRoom::extraEventLoaded, this, [this](const QString &eventId) {
|
||||
if (m_room != nullptr) {
|
||||
if (eventId == m_eventId) {
|
||||
m_event = loadEvent<RoomEvent>(m_room->getEvent(eventId)->fullJson());
|
||||
Q_EMIT eventUpdated();
|
||||
intiializeEvent(m_room->getEvent(eventId));
|
||||
updateReplyModel();
|
||||
resetContent();
|
||||
resetModel();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -164,7 +165,12 @@ void MessageContentModel::intiializeEvent(const QString &eventId)
|
||||
void MessageContentModel::intiializeEvent(const Quotient::RoomEvent *event)
|
||||
{
|
||||
m_event = loadEvent<RoomEvent>(event->fullJson());
|
||||
auto senderId = event->senderId();
|
||||
// a pending event may not previously have had an event ID so update.
|
||||
if (m_eventId.isEmpty()) {
|
||||
m_eventId = m_event->id();
|
||||
}
|
||||
|
||||
auto senderId = m_event->senderId();
|
||||
// A pending event might not have a sender ID set yet but in that case it must
|
||||
// be the local member.
|
||||
if (senderId.isEmpty()) {
|
||||
@@ -225,6 +231,11 @@ QVariant MessageContentModel::data(const QModelIndex &index, int role) const
|
||||
if (m_event == nullptr) {
|
||||
return QString();
|
||||
}
|
||||
if (m_event->isRedacted()) {
|
||||
auto reason = m_event->redactedBecause()->reason();
|
||||
return (reason.isEmpty()) ? i18n("<i>[This message was deleted]</i>")
|
||||
: i18n("<i>[This message was deleted: %1]</i>", m_event->redactedBecause()->reason());
|
||||
}
|
||||
if (!component.content.isEmpty()) {
|
||||
return component.content;
|
||||
}
|
||||
@@ -417,9 +428,9 @@ void MessageContentModel::updateReplyModel()
|
||||
|
||||
const auto replyEvent = m_room->findInTimeline(eventHandler.getReplyId());
|
||||
if (replyEvent == m_room->historyEdge()) {
|
||||
m_replyModel = new MessageContentModel(m_room, eventHandler.getReplyId(), true);
|
||||
m_replyModel = new MessageContentModel(m_room, eventHandler.getReplyId(), true, false, this);
|
||||
} else {
|
||||
m_replyModel = new MessageContentModel(m_room, replyEvent->get(), true);
|
||||
m_replyModel = new MessageContentModel(m_room, replyEvent->get(), true, false, this);
|
||||
}
|
||||
|
||||
connect(m_replyModel, &MessageContentModel::eventUpdated, this, [this]() {
|
||||
@@ -509,7 +520,7 @@ MessageComponent MessageContentModel::linkPreviewComponent(const QUrl &link)
|
||||
if (linkPreviewer->loaded()) {
|
||||
return MessageComponent{MessageComponentType::LinkPreview, QString(), {{"link"_ls, link}}};
|
||||
} else {
|
||||
connect(linkPreviewer, &LinkPreviewer::loadedChanged, this, [this, link]() {
|
||||
connect(linkPreviewer, &LinkPreviewer::loadedChanged, [this, link]() {
|
||||
const auto linkPreviewer = dynamic_cast<NeoChatConnection *>(m_room->connection())->previewerForLink(link);
|
||||
if (linkPreviewer != nullptr && linkPreviewer->loaded()) {
|
||||
for (auto &component : m_components) {
|
||||
@@ -550,11 +561,6 @@ QList<MessageComponent> MessageContentModel::addLinkPreviews(QList<MessageCompon
|
||||
|
||||
void MessageContentModel::closeLinkPreview(int row)
|
||||
{
|
||||
if (row < 0 || row > m_components.size()) {
|
||||
qWarning() << "closeLinkPreview() called with row" << row << "which does not exist. m_components.size() =" << m_components.size();
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_components[row].type == MessageComponentType::LinkPreview || m_components[row].type == MessageComponentType::LinkPreviewLoad) {
|
||||
beginResetModel();
|
||||
m_removedLinkPreviews += m_components[row].attributes["link"_ls].toUrl();
|
||||
|
||||
@@ -75,8 +75,12 @@ public:
|
||||
};
|
||||
Q_ENUM(Roles)
|
||||
|
||||
explicit MessageContentModel(NeoChatRoom *room, const Quotient::RoomEvent *event, bool isReply = false, bool isPending = false);
|
||||
MessageContentModel(NeoChatRoom *room, const QString &eventId, bool isReply = false, bool isPending = false);
|
||||
explicit MessageContentModel(NeoChatRoom *room,
|
||||
const Quotient::RoomEvent *event,
|
||||
bool isReply = false,
|
||||
bool isPending = false,
|
||||
MessageContentModel *parent = nullptr);
|
||||
MessageContentModel(NeoChatRoom *room, const QString &eventId, bool isReply = false, bool isPending = false, MessageContentModel *parent = nullptr);
|
||||
|
||||
bool showAuthor() const;
|
||||
void setShowAuthor(bool showAuthor);
|
||||
|
||||
@@ -88,7 +88,6 @@ void MessageEventModel::setRoom(NeoChatRoom *room)
|
||||
// HACK: Reset the model to a null room first to make sure QML dismantles
|
||||
// last room's objects before the room is actually changed
|
||||
beginResetModel();
|
||||
m_readMarkerModels.clear();
|
||||
m_currentRoom->disconnect(this);
|
||||
m_currentRoom = nullptr;
|
||||
endResetModel();
|
||||
@@ -96,6 +95,9 @@ void MessageEventModel::setRoom(NeoChatRoom *room)
|
||||
// Don't clear the member objects until the model has been fully reset and all
|
||||
// refs cleared.
|
||||
m_memberObjects.clear();
|
||||
m_contentModels.clear();
|
||||
m_reactionModels.clear();
|
||||
m_readMarkerModels.clear();
|
||||
}
|
||||
|
||||
beginResetModel();
|
||||
@@ -433,17 +435,17 @@ QVariant MessageEventModel::data(const QModelIndex &idx, int role) const
|
||||
EventHandler eventHandler(m_currentRoom, &evt);
|
||||
|
||||
if (role == Qt::DisplayRole) {
|
||||
if (evt.isRedacted()) {
|
||||
auto reason = evt.redactedBecause()->reason();
|
||||
return (reason.isEmpty()) ? i18n("<i>[This message was deleted]</i>")
|
||||
: i18n("<i>[This message was deleted: %1]</i>", evt.redactedBecause()->reason());
|
||||
}
|
||||
return eventHandler.getRichBody();
|
||||
}
|
||||
|
||||
if (role == ContentModelRole) {
|
||||
if (!evt.isStateEvent() && !evt.id().isEmpty()) {
|
||||
return QVariant::fromValue<MessageContentModel *>(new MessageContentModel(m_currentRoom, &evt));
|
||||
}
|
||||
if (evt.isStateEvent()) {
|
||||
if (evt.matrixType() == QStringLiteral("org.matrix.msc3672.beacon_info")) {
|
||||
return QVariant::fromValue<MessageContentModel *>(new MessageContentModel(m_currentRoom, &evt));
|
||||
}
|
||||
if (m_contentModels.contains(evt.id())) {
|
||||
return QVariant::fromValue<MessageContentModel *>(m_contentModels.at(evt.id()).get());
|
||||
}
|
||||
return {};
|
||||
}
|
||||
@@ -629,6 +631,12 @@ void MessageEventModel::createEventObjects(const Quotient::RoomEvent *event)
|
||||
m_memberObjects[senderId] = std::unique_ptr<NeochatRoomMember>(new NeochatRoomMember(m_currentRoom, senderId));
|
||||
}
|
||||
|
||||
if (!m_contentModels.contains(eventId)) {
|
||||
if (!event->isStateEvent() || event->matrixType() == QStringLiteral("org.matrix.msc3672.beacon_info")) {
|
||||
m_contentModels[eventId] = std::unique_ptr<MessageContentModel>(new MessageContentModel(m_currentRoom, event));
|
||||
}
|
||||
}
|
||||
|
||||
// ReadMarkerModel handles updates to add and remove markers, we only need to
|
||||
// handle adding and removing whole models here.
|
||||
if (m_readMarkerModels.contains(eventId)) {
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include <QQmlEngine>
|
||||
|
||||
#include "linkpreviewer.h"
|
||||
#include "messagecontentmodel.h"
|
||||
#include "neochatroom.h"
|
||||
#include "neochatroommember.h"
|
||||
#include "pollhandler.h"
|
||||
@@ -117,6 +118,7 @@ private:
|
||||
KFormat m_format;
|
||||
|
||||
std::map<QString, std::unique_ptr<NeochatRoomMember>> m_memberObjects;
|
||||
std::map<QString, std::unique_ptr<MessageContentModel>> m_contentModels;
|
||||
QMap<QString, QSharedPointer<ReadMarkerModel>> m_readMarkerModels;
|
||||
QMap<QString, QSharedPointer<ReactionModel>> m_reactionModels;
|
||||
|
||||
|
||||
@@ -247,7 +247,7 @@ void PermissionsModel::setPowerLevel(const QString &permission, const int &newPo
|
||||
powerLevelContent[QLatin1String("events")] = eventPowerLevels;
|
||||
}
|
||||
|
||||
m_room->setState<Quotient::RoomPowerLevelsEvent>(Quotient::fromJson<Quotient::PowerLevelsEventContent>(powerLevelContent));
|
||||
m_room->setState<Quotient::RoomPowerLevelsEvent>(powerLevelContent);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -312,12 +312,8 @@ void PushRuleModel::addKeyword(const QString &keyword, const QString &roomId)
|
||||
pushConditions.append(keywordCondition);
|
||||
}
|
||||
|
||||
#if Quotient_VERSION_MINOR > 8
|
||||
auto job = m_connection->callApi<Quotient::SetPushRuleJob>(PushRuleKind::kindString(kind),
|
||||
#else
|
||||
auto job = m_connection->callApi<Quotient::SetPushRuleJob>(QLatin1String("global"),
|
||||
PushRuleKind::kindString(kind),
|
||||
#endif
|
||||
keyword,
|
||||
actions,
|
||||
QString(),
|
||||
@@ -342,11 +338,7 @@ void PushRuleModel::removeKeyword(const QString &keyword)
|
||||
}
|
||||
|
||||
auto kind = PushRuleKind::kindString(m_rules[index].kind);
|
||||
#if Quotient_VERSION_MINOR > 8
|
||||
auto job = m_connection->callApi<Quotient::DeletePushRuleJob>(kind, m_rules[index].id);
|
||||
#else
|
||||
auto job = m_connection->callApi<Quotient::DeletePushRuleJob>(QStringLiteral("global"), kind, m_rules[index].id);
|
||||
#endif
|
||||
connect(job, &Quotient::BaseJob::failure, this, [this, job, index]() {
|
||||
qWarning() << QLatin1String("Unable to remove push rule for keyword %1: ").arg(m_rules[index].id) << job->errorString();
|
||||
});
|
||||
@@ -354,18 +346,10 @@ void PushRuleModel::removeKeyword(const QString &keyword)
|
||||
|
||||
void PushRuleModel::setNotificationRuleEnabled(const QString &kind, const QString &ruleId, bool enabled)
|
||||
{
|
||||
#if Quotient_VERSION_MINOR > 8
|
||||
auto job = m_connection->callApi<Quotient::IsPushRuleEnabledJob>(kind, ruleId);
|
||||
#else
|
||||
auto job = m_connection->callApi<Quotient::IsPushRuleEnabledJob>(QStringLiteral("global"), kind, ruleId);
|
||||
#endif
|
||||
connect(job, &Quotient::BaseJob::success, this, [job, kind, ruleId, enabled, this]() {
|
||||
if (job->enabled() != enabled) {
|
||||
#if Quotient_VERSION_MINOR > 8
|
||||
m_connection->callApi<Quotient::SetPushRuleEnabledJob>(kind, ruleId, enabled);
|
||||
#else
|
||||
m_connection->callApi<Quotient::SetPushRuleEnabledJob>(QStringLiteral("global"), kind, ruleId, enabled);
|
||||
#endif
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -379,11 +363,7 @@ void PushRuleModel::setNotificationRuleActions(const QString &kind, const QStrin
|
||||
actions = actionToVariant(action);
|
||||
}
|
||||
|
||||
#if Quotient_VERSION_MINOR > 8
|
||||
m_connection->callApi<Quotient::SetPushRuleActionsJob>(kind, ruleId, actions);
|
||||
#else
|
||||
m_connection->callApi<Quotient::SetPushRuleActionsJob>(QStringLiteral("global"), kind, ruleId, actions);
|
||||
#endif
|
||||
}
|
||||
|
||||
PushRuleAction::Action PushRuleModel::variantToAction(const QList<QVariant> &actions, bool enabled)
|
||||
|
||||
@@ -3,10 +3,15 @@
|
||||
|
||||
#include "reactionmodel.h"
|
||||
#include "neochatroom.h"
|
||||
#include "utils.h"
|
||||
|
||||
#include <QDebug>
|
||||
#include <QFont>
|
||||
#ifdef HAVE_ICU
|
||||
#include <QTextBoundaryFinder>
|
||||
#include <QTextCharFormat>
|
||||
#include <unicode/uchar.h>
|
||||
#include <unicode/urename.h>
|
||||
#endif
|
||||
|
||||
#include <KLocalizedString>
|
||||
|
||||
@@ -152,6 +157,30 @@ QHash<int, QByteArray> ReactionModel::roleNames() const
|
||||
};
|
||||
}
|
||||
|
||||
bool isEmoji(const QString &text)
|
||||
{
|
||||
#ifdef HAVE_ICU
|
||||
QTextBoundaryFinder finder(QTextBoundaryFinder::Grapheme, text);
|
||||
int from = 0;
|
||||
while (finder.toNextBoundary() != -1) {
|
||||
auto to = finder.position();
|
||||
if (text[from].isSpace()) {
|
||||
from = to;
|
||||
continue;
|
||||
}
|
||||
|
||||
auto first = text.mid(from, to - from).toUcs4()[0];
|
||||
if (!u_hasBinaryProperty(first, UCHAR_EMOJI)) {
|
||||
return false;
|
||||
}
|
||||
from = to;
|
||||
}
|
||||
return true;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
QString ReactionModel::reactionText(QString text) const
|
||||
{
|
||||
text = text.toHtmlEscaped();
|
||||
@@ -165,7 +194,7 @@ QString ReactionModel::reactionText(QString text) const
|
||||
.arg(m_room->connection()->makeMediaUrl(QUrl(text)).toString(), QString::number(size));
|
||||
}
|
||||
|
||||
return Utils::isEmoji(text) ? QStringLiteral("<span style=\"font-family: 'emoji';\">") + text + QStringLiteral("</span>") : text;
|
||||
return isEmoji(text) ? QStringLiteral("<span style=\"font-family: 'emoji';\">") + text + QStringLiteral("</span>") : text;
|
||||
}
|
||||
|
||||
#include "moc_reactionmodel.cpp"
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
bool UserFilterModel::filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const
|
||||
{
|
||||
Q_UNUSED(sourceParent);
|
||||
if (!m_allowEmpty && m_filterText.length() < 1) {
|
||||
if (m_filterText.length() < 1) {
|
||||
return false;
|
||||
}
|
||||
return sourceModel()->data(sourceModel()->index(sourceRow, 0), UserListModel::DisplayNameRole).toString().contains(m_filterText, Qt::CaseInsensitive)
|
||||
@@ -27,15 +27,4 @@ void UserFilterModel::setFilterText(const QString &filterText)
|
||||
invalidateFilter();
|
||||
}
|
||||
|
||||
bool UserFilterModel::allowEmpty() const
|
||||
{
|
||||
return m_allowEmpty;
|
||||
}
|
||||
|
||||
void UserFilterModel::setAllowEmpty(bool allowEmpty)
|
||||
{
|
||||
m_allowEmpty = allowEmpty;
|
||||
Q_EMIT allowEmptyChanged();
|
||||
}
|
||||
|
||||
#include "moc_userfiltermodel.cpp"
|
||||
|
||||
@@ -24,7 +24,6 @@ class UserFilterModel : public QSortFilterProxyModel
|
||||
* The text is either a desired display name or matrix id.
|
||||
*/
|
||||
Q_PROPERTY(QString filterText READ filterText WRITE setFilterText NOTIFY filterTextChanged)
|
||||
Q_PROPERTY(bool allowEmpty READ allowEmpty WRITE setAllowEmpty NOTIFY allowEmptyChanged)
|
||||
|
||||
public:
|
||||
/**
|
||||
@@ -37,14 +36,9 @@ public:
|
||||
QString filterText() const;
|
||||
void setFilterText(const QString &filterText);
|
||||
|
||||
bool allowEmpty() const;
|
||||
void setAllowEmpty(bool allowEmpty);
|
||||
|
||||
Q_SIGNALS:
|
||||
void filterTextChanged();
|
||||
void allowEmptyChanged();
|
||||
|
||||
private:
|
||||
QString m_filterText;
|
||||
bool m_allowEmpty = false;
|
||||
};
|
||||
|
||||
@@ -88,11 +88,7 @@ QVariant UserListModel::data(const QModelIndex &index, int role) const
|
||||
return memberId;
|
||||
}
|
||||
if (role == AvatarRole) {
|
||||
#if Quotient_VERSION_MINOR > 8
|
||||
return m_currentRoom->member(memberId).avatarUrl();
|
||||
#else
|
||||
return m_currentRoom->memberAvatar(memberId).url();
|
||||
#endif
|
||||
}
|
||||
if (role == ObjectRole) {
|
||||
return QVariant::fromValue(memberId);
|
||||
|
||||
@@ -125,7 +125,7 @@ void WebShortcutModel::trigger(const QString &data)
|
||||
void WebShortcutModel::configureWebShortcuts()
|
||||
{
|
||||
#ifdef HAVE_KIO
|
||||
auto job = new KIO::CommandLauncherJob(QStringLiteral("kcmshell6"), QStringList() << QStringLiteral("webshortcuts"), this);
|
||||
auto job = new KIO::CommandLauncherJob(QStringLiteral("kcmshell5"), QStringList() << QStringLiteral("webshortcuts"), this);
|
||||
job->exec();
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -261,16 +261,14 @@ Action=Popup
|
||||
Name=Share
|
||||
Name[ar]=شارك
|
||||
Name[ca]=Compartició
|
||||
Name[ca@valencia]=Compartiu
|
||||
Name[ca@valencia]=Compartició
|
||||
Name[cs]=Sdílet
|
||||
Name[de]=Teilen
|
||||
Name[en_GB]=Share
|
||||
Name[eo]=Kundividi
|
||||
Name[es]=Compartir
|
||||
Name[eu]=Partekatu
|
||||
Name[fi]=Jaa
|
||||
Name[fr]=Partager
|
||||
Name[gl]=Compartir
|
||||
Name[he]=שיתוף
|
||||
Name[hu]=Megosztás
|
||||
Name[ia]=Comparti
|
||||
@@ -292,14 +290,12 @@ Comment=The result of sharing a piece of content
|
||||
Comment[ar]=نتيجة مشاركة محتوى
|
||||
Comment[ca]=El resultat de compartir una peça de contingut
|
||||
Comment[ca@valencia]=El resultat de compartir una peça de contingut
|
||||
Comment[de]=Das Ergebnis nach dem Teilen eines Teils des Inhalts
|
||||
Comment[en_GB]=The result of sharing a piece of content
|
||||
Comment[eo]=La rezulto el kundividado de enhavero
|
||||
Comment[es]=El resultado de compartir una parte de contenido
|
||||
Comment[eu]=Eduki pieza bat partekatzearen emaitza
|
||||
Comment[fi]=Tulos yhden sisältöosasen jakamisesta
|
||||
Comment[fr]=Le résultat du partage d'une partie de contenu.
|
||||
Comment[gl]=O resultado de compartir un fragmento de contido.
|
||||
Comment[he]=תוצאת שיתוף פיסת תוכן
|
||||
Comment[hu]=Tartalom megosztásának eredménye
|
||||
Comment[ia]=Le exito de compartir un pecietta de contento
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
# SPDX-FileCopyrightText: 2020 Carl Schwan <carl@carlschwan.eu>
|
||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
File=neochatconfig.kcfg
|
||||
ClassName=NeoChatConfig
|
||||
Mutators=true
|
||||
DefaultValueGetters=true
|
||||
GenerateProperties=true
|
||||
ParentInConstructor=true
|
||||
Singleton=true
|
||||
@@ -23,6 +23,7 @@
|
||||
|
||||
#include <KLocalizedString>
|
||||
|
||||
#include <Quotient/connectiondata.h>
|
||||
#include <Quotient/csapi/content-repo.h>
|
||||
#include <Quotient/csapi/profile.h>
|
||||
#include <Quotient/csapi/versions.h>
|
||||
@@ -148,6 +149,17 @@ void NeoChatConnection::connectSignals()
|
||||
});
|
||||
},
|
||||
Qt::SingleShotConnection);
|
||||
|
||||
connect(this, &Connection::refreshTokenChanged, this, [this]() {
|
||||
QKeychain::WritePasswordJob job(qAppName());
|
||||
job.setAutoDelete(true);
|
||||
job.setKey(userId());
|
||||
job.setBinaryData(connectionData()->refreshToken().toLatin1());
|
||||
QEventLoop loop;
|
||||
connect(&job, &QKeychain::Job::finished, &loop, &QEventLoop::quit);
|
||||
job.start();
|
||||
loop.exec();
|
||||
});
|
||||
}
|
||||
|
||||
int NeoChatConnection::badgeNotificationCount() const
|
||||
@@ -574,4 +586,21 @@ LinkPreviewer *NeoChatConnection::previewerForLink(const QUrl &link)
|
||||
return previewer;
|
||||
}
|
||||
|
||||
#if Quotient_VERSION_MINOR > 8
|
||||
KeyImport::Error NeoChatConnection::exportMegolmSessions(const QString &passphrase, const QString &path)
|
||||
{
|
||||
KeyImport keyImport;
|
||||
auto result = keyImport.exportKeys(passphrase, this);
|
||||
if (!result.has_value()) {
|
||||
return result.error();
|
||||
}
|
||||
QUrl url(path);
|
||||
QFile file(url.toLocalFile());
|
||||
file.open(QFile::WriteOnly);
|
||||
file.write(result.value());
|
||||
file.close();
|
||||
return KeyImport::Success;
|
||||
}
|
||||
#endif
|
||||
|
||||
#include "moc_neochatconnection.cpp"
|
||||
|
||||
@@ -9,6 +9,10 @@
|
||||
#include <QCoroTask>
|
||||
#include <Quotient/connection.h>
|
||||
|
||||
#if Quotient_VERSION_MINOR > 8
|
||||
#include <Quotient/keyimport.h>
|
||||
#endif
|
||||
|
||||
#include "models/threepidmodel.h"
|
||||
|
||||
class LinkPreviewer;
|
||||
@@ -169,6 +173,10 @@ public:
|
||||
*/
|
||||
Q_INVOKABLE QString accountDataJsonString(const QString &type) const;
|
||||
|
||||
#if Quotient_VERSION_MINOR > 8
|
||||
Q_INVOKABLE Quotient::KeyImport::Error exportMegolmSessions(const QString &passphrase, const QString &path);
|
||||
#endif
|
||||
|
||||
qsizetype directChatNotifications() const;
|
||||
bool directChatsHaveHighlightNotifications() const;
|
||||
qsizetype homeNotifications() const;
|
||||
|
||||
@@ -134,11 +134,7 @@ NeoChatRoom::NeoChatRoom(Connection *connection, QString roomId, JoinState joinS
|
||||
auto showNotification = [this, roomMemberEvent] {
|
||||
QImage avatar_image;
|
||||
if (roomMemberEvent && !member(roomMemberEvent->senderId()).avatarUrl().isEmpty()) {
|
||||
#if Quotient_VERSION_MINOR > 8
|
||||
avatar_image = member(roomMemberEvent->senderId()).avatar(128, 128, {});
|
||||
#else
|
||||
avatar_image = memberAvatar(roomMemberEvent->senderId()).get(this->connection(), 128, [] {});
|
||||
#endif
|
||||
} else {
|
||||
qWarning() << "using this room's avatar";
|
||||
avatar_image = avatar(128);
|
||||
@@ -1227,11 +1223,7 @@ void NeoChatRoom::setPushNotificationState(PushNotificationState::State state)
|
||||
for (const auto &i : roomRuleArray) {
|
||||
QJsonObject roomRule = i.toObject();
|
||||
if (roomRule["rule_id"_ls] == id()) {
|
||||
#if Quotient_VERSION_MINOR > 8
|
||||
connection()->callApi<DeletePushRuleJob>("room"_ls, id());
|
||||
#else
|
||||
connection()->callApi<DeletePushRuleJob>(QLatin1String("global"), "room"_ls, id());
|
||||
#endif
|
||||
connection()->callApi<DeletePushRuleJob>("global"_ls, "room"_ls, id());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1242,11 +1234,7 @@ void NeoChatRoom::setPushNotificationState(PushNotificationState::State state)
|
||||
for (const auto &i : overrideRuleArray) {
|
||||
QJsonObject overrideRule = i.toObject();
|
||||
if (overrideRule["rule_id"_ls] == id()) {
|
||||
#if Quotient_VERSION_MINOR > 8
|
||||
connection()->callApi<DeletePushRuleJob>("override"_ls, id());
|
||||
#else
|
||||
connection()->callApi<DeletePushRuleJob>("global"_ls, "override"_ls, id());
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1282,17 +1270,9 @@ void NeoChatRoom::setPushNotificationState(PushNotificationState::State state)
|
||||
const QList<PushCondition> conditions = {pushCondition};
|
||||
|
||||
// Add new override rule and make sure it's enabled
|
||||
#if Quotient_VERSION_MINOR > 8
|
||||
auto job = connection()->callApi<SetPushRuleJob>("override"_ls, id(), actions, QString(), QString(), conditions, QString());
|
||||
#else
|
||||
auto job = connection()->callApi<SetPushRuleJob>("global"_ls, "override"_ls, id(), actions, QString(), QString(), conditions, QString());
|
||||
#endif
|
||||
connect(job, &BaseJob::success, this, [this]() {
|
||||
#if Quotient_VERSION_MINOR > 8
|
||||
auto enableJob = connection()->callApi<SetPushRuleEnabledJob>("override"_ls, id(), true);
|
||||
#else
|
||||
auto enableJob = connection()->callApi<SetPushRuleEnabledJob>("global"_ls, "override"_ls, id(), true);
|
||||
#endif
|
||||
connect(enableJob, &BaseJob::success, this, [this]() {
|
||||
m_pushNotificationStateUpdating = false;
|
||||
});
|
||||
@@ -1316,17 +1296,9 @@ void NeoChatRoom::setPushNotificationState(PushNotificationState::State state)
|
||||
// No conditions for a room rule
|
||||
const QList<PushCondition> conditions;
|
||||
|
||||
#if Quotient_VERSION_MINOR > 8
|
||||
auto setJob = connection()->callApi<SetPushRuleJob>("room"_ls, id(), actions, QString(), QString(), conditions, QString());
|
||||
#else
|
||||
auto setJob = connection()->callApi<SetPushRuleJob>("global"_ls, "room"_ls, id(), actions, QString(), QString(), conditions, QString());
|
||||
#endif
|
||||
connect(setJob, &BaseJob::success, this, [this]() {
|
||||
#if Quotient_VERSION_MINOR > 8
|
||||
auto enableJob = connection()->callApi<SetPushRuleEnabledJob>("room"_ls, id(), true);
|
||||
#else
|
||||
auto enableJob = connection()->callApi<SetPushRuleEnabledJob>("global"_ls, "room"_ls, id(), true);
|
||||
#endif
|
||||
connect(enableJob, &BaseJob::success, this, [this]() {
|
||||
m_pushNotificationStateUpdating = false;
|
||||
});
|
||||
@@ -1355,17 +1327,9 @@ void NeoChatRoom::setPushNotificationState(PushNotificationState::State state)
|
||||
const QList<PushCondition> conditions;
|
||||
|
||||
// Add new room rule and make sure enabled
|
||||
#if Quotient_VERSION_MINOR > 8
|
||||
auto setJob = connection()->callApi<SetPushRuleJob>("room"_ls, id(), actions, QString(), QString(), conditions, QString());
|
||||
#else
|
||||
auto setJob = connection()->callApi<SetPushRuleJob>("global"_ls, "room"_ls, id(), actions, QString(), QString(), conditions, QString());
|
||||
#endif
|
||||
connect(setJob, &BaseJob::success, this, [this]() {
|
||||
#if Quotient_VERSION_MINOR > 8
|
||||
auto enableJob = connection()->callApi<SetPushRuleEnabledJob>("room"_ls, id(), true);
|
||||
#else
|
||||
auto enableJob = connection()->callApi<SetPushRuleEnabledJob>("global"_ls, "room"_ls, id(), true);
|
||||
#endif
|
||||
connect(enableJob, &BaseJob::success, this, [this]() {
|
||||
m_pushNotificationStateUpdating = false;
|
||||
});
|
||||
@@ -1741,13 +1705,9 @@ int NeoChatRoom::maxRoomVersion() const
|
||||
return maxVersion;
|
||||
}
|
||||
|
||||
NeochatRoomMember *NeoChatRoom::directChatRemoteMember()
|
||||
Quotient::RoomMember NeoChatRoom::directChatRemoteMember() const
|
||||
{
|
||||
if (directChatMembers().size() == 0) {
|
||||
qWarning() << "No other member available in this room";
|
||||
return {};
|
||||
}
|
||||
return new NeochatRoomMember(this, directChatMembers()[0].id());
|
||||
return directChatMembers()[0];
|
||||
}
|
||||
|
||||
void NeoChatRoom::sendLocation(float lat, float lon, const QString &description)
|
||||
@@ -1788,6 +1748,7 @@ void NeoChatRoom::downloadEventFromServer(const QString &eventId)
|
||||
connect(job, &BaseJob::success, this, [this, job, eventId] {
|
||||
// The event may have arrived in the meantime so check it's not in the timeline.
|
||||
if (findInTimeline(eventId) != historyEdge()) {
|
||||
Q_EMIT extraEventLoaded(eventId);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
#include <Quotient/roommember.h>
|
||||
|
||||
#include "enums/pushrule.h"
|
||||
#include "neochatroommember.h"
|
||||
#include "pollhandler.h"
|
||||
|
||||
namespace Quotient
|
||||
@@ -75,7 +74,7 @@ class NeoChatRoom : public Quotient::Room
|
||||
/**
|
||||
* @brief Get a RoomMember object for the other person in a direct chat.
|
||||
*/
|
||||
Q_PROPERTY(NeochatRoomMember *directChatRemoteMember READ directChatRemoteMember CONSTANT)
|
||||
Q_PROPERTY(Quotient::RoomMember directChatRemoteMember READ directChatRemoteMember CONSTANT)
|
||||
|
||||
/**
|
||||
* @brief The Matrix IDs of this room's parents.
|
||||
@@ -320,7 +319,7 @@ public:
|
||||
|
||||
[[nodiscard]] QString avatarMediaId() const;
|
||||
|
||||
NeochatRoomMember *directChatRemoteMember();
|
||||
Quotient::RoomMember directChatRemoteMember() const;
|
||||
|
||||
/**
|
||||
* @brief Whether this room has one or more parent spaces set.
|
||||
|
||||
@@ -131,11 +131,7 @@ void NotificationsManager::processNotificationJob(QPointer<NeoChatConnection> co
|
||||
|
||||
QImage avatar_image;
|
||||
if (!sender.avatarUrl().isEmpty()) {
|
||||
#if Quotient_VERSION_MINOR > 8
|
||||
avatar_image = room->member(sender.id()).avatar(128, 128, {});
|
||||
#else
|
||||
avatar_image = room->memberAvatar(sender.id()).get(connection, 128, {});
|
||||
#endif
|
||||
} else {
|
||||
avatar_image = room->avatar(128);
|
||||
}
|
||||
|
||||
@@ -4,34 +4,9 @@
|
||||
{
|
||||
"Name": "Tobias Fella",
|
||||
"Name[ar]": "توبياس فلة",
|
||||
"Name[ca@valencia]": "Tobias Fella",
|
||||
"Name[ca]": "Tobias Fella",
|
||||
"Name[cs]": "Tobias Fella",
|
||||
"Name[de]": "Tobias Fella",
|
||||
"Name[en_GB]": "Tobias Fella",
|
||||
"Name[eo]": "Tobias Fella",
|
||||
"Name[es]": "Tobias Fella",
|
||||
"Name[eu]": "Tobias Fella",
|
||||
"Name[fi]": "Tobias Fella",
|
||||
"Name[fr]": "Tobias Fella",
|
||||
"Name[gl]": "Tobias Fella",
|
||||
"Name[hu]": "Tobias Fella",
|
||||
"Name[ia]": "Tobias Fella",
|
||||
"Name[it]": "Tobias Fella",
|
||||
"Name[ka]": "Tobias Fella",
|
||||
"Name[lv]": "Tobias Fella",
|
||||
"Name[nl]": "Tobias Fella",
|
||||
"Name[nn]": "Tobias Fella",
|
||||
"Name[pl]": "Tobias Fella",
|
||||
"Name[pt_BR]": "Tobias Fella",
|
||||
"Name[ru]": "Tobias Fella",
|
||||
"Name[sl]": "Tobias Fella",
|
||||
"Name[sv]": "Tobias Fella",
|
||||
"Name[he]": "טוביאס פלה",
|
||||
"Name[ta]": "டோபியாஸ் ஃபெல்லா",
|
||||
"Name[tr]": "Tobias Fella",
|
||||
"Name[uk]": "Tobias Fella",
|
||||
"Name[x-test]": "xxTobias Fellaxx",
|
||||
"Name[zh_TW]": "Tobias Fella"
|
||||
"Name[x-test]": "xxTobias Fellaxx"
|
||||
}
|
||||
],
|
||||
"Category": "Utilities",
|
||||
@@ -40,13 +15,13 @@
|
||||
"Description[ca@valencia]": "Compartix a través de NeoChat",
|
||||
"Description[ca]": "Comparteix a través del NeoChat",
|
||||
"Description[de]": "Über NeoChat teilen",
|
||||
"Description[en_GB]": "Share via NeoChat",
|
||||
"Description[eo]": "Kundividi per NeoChat",
|
||||
"Description[es]": "Compartir mediante NeoChat",
|
||||
"Description[eu]": "Partekatu NeoChat bidez",
|
||||
"Description[fi]": "Jaa NeoChatillä",
|
||||
"Description[fr]": "Partager grâce à NeoChat",
|
||||
"Description[gl]": "Compartir por NeoChat",
|
||||
"Description[he]": "שיתוף דרך NeoChat",
|
||||
"Description[hu]": "Megosztás NeoChatben",
|
||||
"Description[ia]": "Comparti via NeoChat",
|
||||
"Description[it]": "Condividi tramite NeoChat",
|
||||
@@ -55,7 +30,6 @@
|
||||
"Description[nl]": "Delen via NeoChat",
|
||||
"Description[nn]": "Del via NeoChat",
|
||||
"Description[pl]": "Udostępnij przez NeoChat",
|
||||
"Description[pt_BR]": "Compartilhar via NeoChat",
|
||||
"Description[ru]": "Опубликовать в NeoChat",
|
||||
"Description[sl]": "Deli prek NeoChat",
|
||||
"Description[sv]": "Dela via NeoChat",
|
||||
@@ -68,35 +42,9 @@
|
||||
"License": "GPL",
|
||||
"Name": "NeoChat",
|
||||
"Name[ar]": "نيوتشات",
|
||||
"Name[ast]": "NeoChat",
|
||||
"Name[ca@valencia]": "NeoChat",
|
||||
"Name[ca]": "NeoChat",
|
||||
"Name[cs]": "NeoChat",
|
||||
"Name[de]": "NeoChat",
|
||||
"Name[en_GB]": "NeoChat",
|
||||
"Name[eo]": "NeoChat",
|
||||
"Name[es]": "NeoChat",
|
||||
"Name[eu]": "NeoChat",
|
||||
"Name[fi]": "NeoChat",
|
||||
"Name[fr]": "NeoChat",
|
||||
"Name[gl]": "NeoChat",
|
||||
"Name[hu]": "NeoChat",
|
||||
"Name[ia]": "Neochat",
|
||||
"Name[it]": "NeoChat",
|
||||
"Name[ka]": "NeoChat",
|
||||
"Name[lv]": "NeoChat",
|
||||
"Name[nl]": "NeoChat",
|
||||
"Name[nn]": "NeoChat",
|
||||
"Name[pl]": "NeoChat",
|
||||
"Name[pt_BR]": "NeoChat",
|
||||
"Name[ru]": "NeoChat",
|
||||
"Name[sl]": "NeoChat",
|
||||
"Name[sv]": "NeoChat",
|
||||
"Name[ta]": "நியோச்சாட்",
|
||||
"Name[tr]": "NeoChat",
|
||||
"Name[uk]": "NeoChat",
|
||||
"Name[x-test]": "xxNeoChatxx",
|
||||
"Name[zh_TW]": "NeoChat",
|
||||
"X-Purpose-ActionDisplay": "NeoChat"
|
||||
},
|
||||
"X-Purpose-PluginTypes": [
|
||||
|
||||
@@ -19,6 +19,22 @@ QQC2.Menu {
|
||||
|
||||
margins: Kirigami.Units.smallSpacing
|
||||
|
||||
QQC2.MenuItem {
|
||||
text: i18nc("@action:button", "Show QR code")
|
||||
icon.name: "view-barcode-qr-symbolic"
|
||||
onTriggered: {
|
||||
let qrMax = Qt.createComponent('org.kde.neochat', 'QrCodeMaximizeComponent').createObject(QQC2.Overlay.overlay, {
|
||||
text: "https://matrix.to/#/" + root.connection.localUser.id,
|
||||
title: root.connection.localUser.displayName,
|
||||
subtitle: root.connection.localUser.id,
|
||||
avatarSource: root.connection.makeMediaUrl(root.connection.localUser.avatarUrl)
|
||||
});
|
||||
if (typeof root.closeDialog === "function") {
|
||||
root.closeDialog();
|
||||
}
|
||||
qrMax.open();
|
||||
}
|
||||
}
|
||||
QQC2.MenuItem {
|
||||
text: i18n("Edit this account")
|
||||
icon.name: "document-edit"
|
||||
@@ -45,7 +61,7 @@ QQC2.Menu {
|
||||
QQC2.MenuItem {
|
||||
text: i18n("Open developer tools")
|
||||
icon.name: "tools"
|
||||
visible: Config.developerTools
|
||||
visible: NeoChatConfig.developerTools
|
||||
onTriggered: pageStack.pushDialogLayer(Qt.createComponent('org.kde.neochat.devtools', 'DevtoolsPage'), {
|
||||
connection: root.connection
|
||||
}, {
|
||||
@@ -57,7 +73,7 @@ QQC2.Menu {
|
||||
QQC2.MenuItem {
|
||||
text: i18nc("@action:inmenu", "Open Secret Backup")
|
||||
icon.name: "unlock"
|
||||
visible: Config.secretBackup
|
||||
visible: NeoChatConfig.secretBackup
|
||||
onTriggered: root.window.pageStack.pushDialogLayer(Qt.createComponent('org.kde.neochat', 'UnlockSSSSDialog'), {}, {
|
||||
title: i18nc("@title:window", "Open Key Backup")
|
||||
})
|
||||
|
||||
47
src/qml/AvatarNotification.qml
Normal file
47
src/qml/AvatarNotification.qml
Normal file
@@ -0,0 +1,47 @@
|
||||
// SPDX-FileCopyrightText: 2024 James Graham <james.h.graham@protonmail.com>
|
||||
// SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
|
||||
import QtQuick
|
||||
import QtQuick.Controls as QQC2
|
||||
|
||||
import org.kde.kirigami as Kirigami
|
||||
import org.kde.kirigamiaddons.labs.components as KirigamiComponents
|
||||
|
||||
KirigamiComponents.Avatar {
|
||||
id: root
|
||||
|
||||
property int notificationCount
|
||||
|
||||
property bool notificationHighlight
|
||||
|
||||
property bool showNotificationLabel
|
||||
|
||||
QQC2.Label {
|
||||
id: notificationCountLabel
|
||||
anchors.top: parent.top
|
||||
anchors.right: parent.right
|
||||
anchors.topMargin: -Kirigami.Units.smallSpacing
|
||||
anchors.rightMargin: -Kirigami.Units.smallSpacing
|
||||
z: 1
|
||||
width: Math.max(notificationCountTextMetrics.advanceWidth + Kirigami.Units.smallSpacing * 2, height)
|
||||
height: Kirigami.Units.iconSizes.smallMedium
|
||||
|
||||
text: root.notificationCount > 0 ? root.notificationCount : ""
|
||||
visible: root.showNotificationLabel
|
||||
color: Kirigami.Theme.textColor
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
background: Rectangle {
|
||||
visible: true
|
||||
Kirigami.Theme.colorSet: Kirigami.Theme.Button
|
||||
Kirigami.Theme.inherit: false
|
||||
color: root.notificationHighlight ? Kirigami.Theme.positiveTextColor : Kirigami.Theme.backgroundColor
|
||||
radius: height / 2
|
||||
}
|
||||
|
||||
TextMetrics {
|
||||
id: notificationCountTextMetrics
|
||||
text: notificationCountLabel.text
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -15,6 +15,12 @@ Delegates.RoundedItemDelegate {
|
||||
|
||||
property url source
|
||||
|
||||
property alias notificationCount: avatarNotification.notificationCount
|
||||
|
||||
property alias notificationHighlight: avatarNotification.notificationHighlight
|
||||
|
||||
property alias showNotificationLabel: avatarNotification.showNotificationLabel
|
||||
|
||||
signal contextMenuRequested
|
||||
signal selected
|
||||
|
||||
@@ -41,7 +47,8 @@ Delegates.RoundedItemDelegate {
|
||||
}
|
||||
}
|
||||
|
||||
contentItem: KirigamiComponents.Avatar {
|
||||
contentItem: AvatarNotification {
|
||||
id: avatarNotification
|
||||
source: root.source
|
||||
name: root.text
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@ Loader {
|
||||
* Some common actions shared between menus
|
||||
*/
|
||||
component ViewSourceAction: Kirigami.Action {
|
||||
visible: Config.developerTools
|
||||
visible: NeoChatConfig.developerTools
|
||||
text: i18n("View Source")
|
||||
icon.name: "code-context"
|
||||
onTriggered: RoomManager.viewEventSource(root.eventId)
|
||||
|
||||
@@ -101,13 +101,13 @@ DelegateContextMenu {
|
||||
id: saveAsDialog
|
||||
FileDialog {
|
||||
fileMode: FileDialog.SaveFile
|
||||
folder: Config.lastSaveDirectory.length > 0 ? Config.lastSaveDirectory : StandardPaths.writableLocation(StandardPaths.DownloadLocation)
|
||||
folder: NeoChatConfig.lastSaveDirectory.length > 0 ? NeoChatConfig.lastSaveDirectory : StandardPaths.writableLocation(StandardPaths.DownloadLocation)
|
||||
onAccepted: {
|
||||
if (!currentFile) {
|
||||
return;
|
||||
}
|
||||
Config.lastSaveDirectory = folder;
|
||||
Config.save();
|
||||
NeoChatConfig.lastSaveDirectory = folder;
|
||||
NeoChatConfig.save();
|
||||
currentRoom.downloadFile(eventId, currentFile);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -117,7 +117,7 @@ QQC2.Control {
|
||||
}
|
||||
},
|
||||
Kirigami.Action {
|
||||
visible: Config.threads && !root.currentRoom.readOnly
|
||||
visible: NeoChatConfig.threads && !root.currentRoom.readOnly
|
||||
text: i18n("Reply in Thread")
|
||||
icon.name: "dialog-messages"
|
||||
onTriggered: {
|
||||
|
||||
@@ -27,10 +27,7 @@ Kirigami.Page {
|
||||
let c = LocationHelper.center(LocationHelper.unite(locationsModel.boundingBox, liveLocationsModel.boundingBox));
|
||||
return QtPositioning.coordinate(c.y, c.x);
|
||||
}
|
||||
map.zoomLevel: {
|
||||
const zoom = LocationHelper.zoomToFit(LocationHelper.unite(locationsModel.boundingBox, liveLocationsModel.boundingBox), mapView.width, mapView.height)
|
||||
return Math.min(Math.max(zoom, map.minimumZoomLevel), map.maximumZoomLevel);
|
||||
}
|
||||
map.zoomLevel: LocationHelper.zoomToFit(LocationHelper.unite(locationsModel.boundingBox, liveLocationsModel.boundingBox), mapView.width, mapView.height)
|
||||
|
||||
MapItemView {
|
||||
Component.onCompleted: mapView.map.addMapItemView(this)
|
||||
|
||||
@@ -18,7 +18,7 @@ Kirigami.ApplicationWindow {
|
||||
readonly property HoverLinkIndicator hoverLinkIndicator: linkIndicator
|
||||
|
||||
|
||||
title: Config.windowTitleFocus ? activeFocusItem + " " + (activeFocusItem ? activeFocusItem.Accessible.name : "") : "NeoChat"
|
||||
title: NeoChatConfig.windowTitleFocus ? activeFocusItem + " " + (activeFocusItem ? activeFocusItem.Accessible.name : "") : "NeoChat"
|
||||
|
||||
minimumWidth: Kirigami.Units.gridUnit * 20
|
||||
minimumHeight: Kirigami.Units.gridUnit * 15
|
||||
@@ -54,6 +54,16 @@ Kirigami.ApplicationWindow {
|
||||
}
|
||||
}
|
||||
|
||||
Connections {
|
||||
id: pendingOidcConnections
|
||||
target: Controller.pendingOidcConnection
|
||||
function onConnected() {
|
||||
console.warn("loading rooms")
|
||||
root.load();
|
||||
pendingOidcConnections.enabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: root.quitAction
|
||||
function onTriggered() {
|
||||
@@ -158,7 +168,7 @@ Kirigami.ApplicationWindow {
|
||||
|
||||
// This is a memory for all user initiated actions on the drawer, i.e. clicking the button
|
||||
// It is used to ensure that user choice is remembered when changing pages and expanding and contracting the window width
|
||||
property bool drawerUserState: Config.autoRoomInfoDrawer
|
||||
property bool drawerUserState: NeoChatConfig.autoRoomInfoDrawer
|
||||
|
||||
connection: root.connection
|
||||
|
||||
@@ -179,7 +189,7 @@ Kirigami.ApplicationWindow {
|
||||
modal: (!root.wideScreen || !enabled)
|
||||
onEnabledChanged: drawerOpen = enabled && !modal
|
||||
onModalChanged: {
|
||||
if (Config.autoRoomInfoDrawer) {
|
||||
if (NeoChatConfig.autoRoomInfoDrawer) {
|
||||
drawerOpen = !modal && drawerUserState;
|
||||
dim = false;
|
||||
}
|
||||
@@ -194,11 +204,11 @@ Kirigami.ApplicationWindow {
|
||||
RoomSettingsView.window = root;
|
||||
NeoChatSettingsView.window = root;
|
||||
NeoChatSettingsView.connection = root.connection;
|
||||
WindowController.setBlur(pageStack, Config.blur && !Config.compactLayout);
|
||||
WindowController.setBlur(pageStack, NeoChatConfig.blur && !NeoChatConfig.compactLayout);
|
||||
if (ShareHandler.text && root.connection) {
|
||||
root.handleShare()
|
||||
}
|
||||
if (Config.minimizeToSystemTrayOnStartup && !Kirigami.Settings.isMobile && Controller.supportSystemTray && Config.systemTray) {
|
||||
if (NeoChatConfig.minimizeToSystemTrayOnStartup && !Kirigami.Settings.isMobile && Controller.supportSystemTray && NeoChatConfig.systemTray) {
|
||||
restoreWindowGeometryConnections.enabled = true; // To restore window size and position
|
||||
} else {
|
||||
visible = true;
|
||||
@@ -206,21 +216,21 @@ Kirigami.ApplicationWindow {
|
||||
}
|
||||
}
|
||||
Connections {
|
||||
target: Config
|
||||
target: NeoChatConfig
|
||||
function onBlurChanged() {
|
||||
WindowController.setBlur(pageStack, Config.blur && !Config.compactLayout);
|
||||
WindowController.setBlur(pageStack, NeoChatConfig.blur && !NeoChatConfig.compactLayout);
|
||||
}
|
||||
function onCompactLayoutChanged() {
|
||||
WindowController.setBlur(pageStack, Config.blur && !Config.compactLayout);
|
||||
WindowController.setBlur(pageStack, NeoChatConfig.blur && !NeoChatConfig.compactLayout);
|
||||
}
|
||||
}
|
||||
|
||||
// blur effect
|
||||
color: Config.blur && !Config.compactLayout ? "transparent" : Kirigami.Theme.backgroundColor
|
||||
color: NeoChatConfig.blur && !NeoChatConfig.compactLayout ? "transparent" : Kirigami.Theme.backgroundColor
|
||||
|
||||
// we need to apply the translucency effect separately on top of the color
|
||||
background: Rectangle {
|
||||
color: Config.blur && !Config.compactLayout ? Qt.rgba(Kirigami.Theme.backgroundColor.r, Kirigami.Theme.backgroundColor.g, Kirigami.Theme.backgroundColor.b, 1 - Config.transparency) : "transparent"
|
||||
color: NeoChatConfig.blur && !NeoChatConfig.compactLayout ? Qt.rgba(Kirigami.Theme.backgroundColor.r, Kirigami.Theme.backgroundColor.g, Kirigami.Theme.backgroundColor.b, 1 - NeoChatConfig.transparency) : "transparent"
|
||||
}
|
||||
|
||||
Component {
|
||||
|
||||
@@ -119,8 +119,8 @@ Components.AlbumMaximizeComponent {
|
||||
fileMode: Platform.FileDialog.SaveFile
|
||||
folder: root.saveFolder
|
||||
onAccepted: {
|
||||
Config.lastSaveDirectory = folder;
|
||||
Config.save();
|
||||
NeoChatConfig.lastSaveDirectory = folder;
|
||||
NeoChatConfig.save();
|
||||
if (!currentFile) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -54,13 +54,17 @@ Delegates.RoundedItemDelegate {
|
||||
contentItem: RowLayout {
|
||||
spacing: Kirigami.Units.largeSpacing
|
||||
|
||||
Components.Avatar {
|
||||
AvatarNotification {
|
||||
source: root.avatar ? root.connection.makeMediaUrl("mxc://" + root.avatar) : ""
|
||||
name: root.displayName
|
||||
visible: Config.showAvatarInRoomDrawer
|
||||
implicitHeight: Kirigami.Units.gridUnit + (Config.compactRoomList ? 0 : Kirigami.Units.largeSpacing * 2)
|
||||
visible: NeoChatConfig.showAvatarInRoomDrawer
|
||||
implicitHeight: Kirigami.Units.gridUnit + (NeoChatConfig.compactRoomList ? 0 : Kirigami.Units.largeSpacing * 2)
|
||||
implicitWidth: visible ? implicitHeight : 0
|
||||
|
||||
notificationCount: root.contextNotificationCount
|
||||
notificationHighlight: root.hasHighlightNotifications
|
||||
showNotificationLabel: root.hasNotifications && root.collapsed
|
||||
|
||||
Layout.fillHeight: true
|
||||
Layout.preferredWidth: height
|
||||
}
|
||||
@@ -91,7 +95,7 @@ Delegates.RoundedItemDelegate {
|
||||
elide: Text.ElideRight
|
||||
font: Kirigami.Theme.smallFont
|
||||
opacity: root.hasNotifications ? 0.9 : 0.7
|
||||
visible: !Config.compactRoomList && text.length > 0
|
||||
visible: !NeoChatConfig.compactRoomList && text.length > 0
|
||||
textFormat: Text.PlainText
|
||||
|
||||
Layout.fillWidth: true
|
||||
@@ -137,7 +141,7 @@ Delegates.RoundedItemDelegate {
|
||||
|
||||
QQC2.Button {
|
||||
id: configButton
|
||||
visible: root.hovered && !Kirigami.Settings.isMobile && !Config.compactRoomList && !root.collapsed && root.showConfigure
|
||||
visible: root.hovered && !Kirigami.Settings.isMobile && !NeoChatConfig.compactRoomList && !root.collapsed && root.showConfigure
|
||||
text: i18n("Configure room")
|
||||
display: QQC2.Button.IconOnly
|
||||
|
||||
@@ -155,14 +159,14 @@ Delegates.RoundedItemDelegate {
|
||||
room: root.currentRoom,
|
||||
connection: root.connection
|
||||
});
|
||||
if (!Kirigami.Settings.isMobile && !Config.compactRoomList) {
|
||||
if (!Kirigami.Settings.isMobile && !NeoChatConfig.compactRoomList) {
|
||||
configButton.visible = true;
|
||||
configButton.down = true;
|
||||
}
|
||||
menu.closed.connect(function () {
|
||||
configButton.down = undefined;
|
||||
configButton.visible = Qt.binding(() => {
|
||||
return root.hovered && !Kirigami.Settings.isMobile && !Config.compactRoomList;
|
||||
return root.hovered && !Kirigami.Settings.isMobile && !NeoChatConfig.compactRoomList;
|
||||
});
|
||||
});
|
||||
menu.open();
|
||||
|
||||
@@ -24,10 +24,10 @@ Kirigami.OverlayDrawer {
|
||||
readonly property int maxWidth: Kirigami.Units.gridUnit * 25
|
||||
readonly property int defaultWidth: Kirigami.Units.gridUnit * 20
|
||||
property int actualWidth: {
|
||||
if (Config.roomDrawerWidth === -1) {
|
||||
if (NeoChatConfig.roomDrawerWidth === -1) {
|
||||
return Kirigami.Units.gridUnit * 20;
|
||||
} else {
|
||||
return Config.roomDrawerWidth;
|
||||
return NeoChatConfig.roomDrawerWidth;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,8 +45,8 @@ Kirigami.OverlayDrawer {
|
||||
visible: true
|
||||
onPressed: _lastX = mapToGlobal(mouseX, mouseY).x
|
||||
onReleased: {
|
||||
Config.roomDrawerWidth = root.actualWidth;
|
||||
Config.save();
|
||||
NeoChatConfig.roomDrawerWidth = root.actualWidth;
|
||||
NeoChatConfig.save();
|
||||
}
|
||||
property real _lastX: -1
|
||||
|
||||
@@ -55,9 +55,9 @@ Kirigami.OverlayDrawer {
|
||||
return;
|
||||
}
|
||||
if (Qt.application.layoutDirection === Qt.RightToLeft) {
|
||||
root.actualWidth = Math.min(root.maxWidth, Math.max(root.minWidth, Config.roomDrawerWidth - _lastX + mapToGlobal(mouseX, mouseY).x));
|
||||
root.actualWidth = Math.min(root.maxWidth, Math.max(root.minWidth, NeoChatConfig.roomDrawerWidth - _lastX + mapToGlobal(mouseX, mouseY).x));
|
||||
} else {
|
||||
root.actualWidth = Math.min(root.maxWidth, Math.max(root.minWidth, Config.roomDrawerWidth + _lastX - mapToGlobal(mouseX, mouseY).x));
|
||||
root.actualWidth = Math.min(root.maxWidth, Math.max(root.minWidth, NeoChatConfig.roomDrawerWidth + _lastX - mapToGlobal(mouseX, mouseY).x));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
// SPDX-FileCopyrightText: 2023 James Graham <james.h.graham@protonmail.com>
|
||||
// SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
|
||||
pragma ComponentBehavior: Bound
|
||||
|
||||
import QtQuick
|
||||
import QtQuick.Controls as QQC2
|
||||
import QtQuick.Layouts
|
||||
@@ -190,17 +188,11 @@ QQC2.ScrollView {
|
||||
|
||||
focusSequence: "Ctrl+Shift+F"
|
||||
|
||||
onAccepted: userFilterModel.filterText = text
|
||||
onAccepted: sortedMessageEventModel.filterString = text
|
||||
}
|
||||
}
|
||||
|
||||
model: root.room.isDirectChat() ? 0 : userFilterModel
|
||||
|
||||
UserFilterModel {
|
||||
id: userFilterModel
|
||||
sourceModel: RoomManager.userListModel
|
||||
allowEmpty: true
|
||||
}
|
||||
model: root.room.isDirectChat() ? 0 : RoomManager.userListModel
|
||||
|
||||
clip: true
|
||||
focus: true
|
||||
|
||||
@@ -27,7 +27,7 @@ Kirigami.Page {
|
||||
|
||||
required property NeoChatConnection connection
|
||||
|
||||
readonly property bool collapsed: Config.collapsed
|
||||
readonly property bool collapsed: NeoChatConfig.collapsed
|
||||
|
||||
signal search
|
||||
|
||||
@@ -258,7 +258,7 @@ Kirigami.Page {
|
||||
if (_private.currentWidth < _private.collapseWidth && _private.currentWidth + (mouse.x - _lastX) >= _private.collapseWidth) {
|
||||
// Here we get back directly to a more wide mode.
|
||||
_private.currentWidth = _private.defaultWidth;
|
||||
Config.collapsed = false;
|
||||
NeoChatConfig.collapsed = false;
|
||||
} else if (_private.currentWidth >= _private.collapseWidth) {
|
||||
// Increase page width
|
||||
_private.currentWidth = Math.min(_private.defaultWidth, _private.currentWidth + (mouse.x - _lastX));
|
||||
@@ -267,7 +267,7 @@ Kirigami.Page {
|
||||
const tmpWidth = _private.currentWidth - (_lastX - mouse.x);
|
||||
if (tmpWidth < _private.collapseWidth) {
|
||||
_private.currentWidth = Qt.binding(() => _private.collapsedSize);
|
||||
Config.collapsed = true;
|
||||
NeoChatConfig.collapsed = true;
|
||||
} else {
|
||||
_private.currentWidth = tmpWidth;
|
||||
}
|
||||
@@ -324,9 +324,9 @@ Kirigami.Page {
|
||||
*/
|
||||
QtObject {
|
||||
id: _private
|
||||
property int currentWidth: Config.collapsed ? collapsedSize : defaultWidth
|
||||
property int currentWidth: NeoChatConfig.collapsed ? collapsedSize : defaultWidth
|
||||
readonly property int defaultWidth: Kirigami.Units.gridUnit * 17
|
||||
readonly property int collapseWidth: Kirigami.Units.gridUnit * 10
|
||||
readonly property int collapsedSize: Kirigami.Units.gridUnit + (Config.compactRoomList ? 0 : Kirigami.Units.largeSpacing * 2) + Kirigami.Units.largeSpacing * 2 + (scrollView.QQC2.ScrollBar.vertical.visible ? scrollView.QQC2.ScrollBar.vertical.width : 0)
|
||||
readonly property int collapsedSize: Kirigami.Units.gridUnit + (NeoChatConfig.compactRoomList ? 0 : Kirigami.Units.largeSpacing * 2) + Kirigami.Units.largeSpacing * 2 + (scrollView.QQC2.ScrollBar.vertical.visible ? scrollView.QQC2.ScrollBar.vertical.width : 0)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -155,6 +155,7 @@ Kirigami.Page {
|
||||
sourceComponent: Kirigami.PlaceholderMessage {
|
||||
icon.name: "org.kde.neochat"
|
||||
text: i18n("Welcome to NeoChat")
|
||||
explanation: i18n("Select or join a room to get started")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -169,7 +170,7 @@ Kirigami.Page {
|
||||
background: Rectangle {
|
||||
Kirigami.Theme.colorSet: Kirigami.Theme.View
|
||||
Kirigami.Theme.inherit: false
|
||||
color: Config.compactLayout ? Kirigami.Theme.backgroundColor : "transparent"
|
||||
color: NeoChatConfig.compactLayout ? Kirigami.Theme.backgroundColor : "transparent"
|
||||
}
|
||||
|
||||
footer: Loader {
|
||||
|
||||
@@ -86,6 +86,34 @@ QQC2.Control {
|
||||
text: i18n("Home")
|
||||
contentItem: Kirigami.Icon {
|
||||
source: "user-home-symbolic"
|
||||
|
||||
QQC2.Label {
|
||||
id: homeNotificationCountLabel
|
||||
anchors.top: parent.top
|
||||
anchors.right: parent.right
|
||||
anchors.topMargin: -Kirigami.Units.smallSpacing
|
||||
anchors.rightMargin: -Kirigami.Units.smallSpacing
|
||||
z: 1
|
||||
width: Math.max(homeNotificationCountTextMetrics.advanceWidth + Kirigami.Units.smallSpacing * 2, height)
|
||||
height: Kirigami.Units.iconSizes.smallMedium
|
||||
|
||||
text: root.connection.homeNotifications > 0 ? root.connection.homeNotifications : ""
|
||||
visible: root.connection.homeNotifications > 0 && (RoomManager.currentSpace.length > 0 || root.showDirectChats === true)
|
||||
color: Kirigami.Theme.textColor
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
background: Rectangle {
|
||||
visible: true
|
||||
Kirigami.Theme.colorSet: Kirigami.Theme.Button
|
||||
Kirigami.Theme.inherit: false
|
||||
color: root.connection.homeHaveHighlightNotifications ? Kirigami.Theme.positiveTextColor : Kirigami.Theme.backgroundColor
|
||||
radius: height / 2
|
||||
}
|
||||
|
||||
TextMetrics {
|
||||
id: homeNotificationCountTextMetrics
|
||||
text: homeNotificationCountLabel.text
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
activeFocusOnTab: true
|
||||
@@ -95,33 +123,6 @@ QQC2.Control {
|
||||
RoomManager.currentSpace = "";
|
||||
root.selectionChanged();
|
||||
}
|
||||
|
||||
QQC2.Label {
|
||||
id: homeNotificationCountLabel
|
||||
anchors.top: parent.top
|
||||
anchors.right: parent.right
|
||||
anchors.rightMargin: Kirigami.Units.smallSpacing / 2
|
||||
z: 1
|
||||
width: Math.max(homeNotificationCountTextMetrics.advanceWidth + Kirigami.Units.smallSpacing * 2, height)
|
||||
height: Kirigami.Units.iconSizes.smallMedium
|
||||
|
||||
text: root.connection.homeNotifications > 0 ? root.connection.homeNotifications : ""
|
||||
visible: root.connection.homeNotifications > 0 && (RoomManager.currentSpace.length > 0 || root.showDirectChats === true)
|
||||
color: Kirigami.Theme.textColor
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
background: Rectangle {
|
||||
visible: true
|
||||
Kirigami.Theme.colorSet: Kirigami.Theme.Button
|
||||
Kirigami.Theme.inherit: false
|
||||
color: root.connection.homeHaveHighlightNotifications ? Kirigami.Theme.positiveTextColor : Kirigami.Theme.backgroundColor
|
||||
radius: height / 2
|
||||
}
|
||||
|
||||
TextMetrics {
|
||||
id: homeNotificationCountTextMetrics
|
||||
text: homeNotificationCountLabel.text
|
||||
}
|
||||
}
|
||||
}
|
||||
AvatarTabButton {
|
||||
id: directChatButton
|
||||
@@ -134,6 +135,34 @@ QQC2.Control {
|
||||
text: i18nc("@button View all one-on-one chats with your friends.", "Friends")
|
||||
contentItem: Kirigami.Icon {
|
||||
source: "system-users"
|
||||
|
||||
QQC2.Label {
|
||||
id: directChatNotificationCountLabel
|
||||
anchors.top: parent.top
|
||||
anchors.right: parent.right
|
||||
anchors.topMargin: -Kirigami.Units.smallSpacing
|
||||
anchors.rightMargin: -Kirigami.Units.smallSpacing
|
||||
z: 1
|
||||
width: Math.max(directChatNotificationCountTextMetrics.advanceWidth + Kirigami.Units.smallSpacing * 2, height)
|
||||
height: Kirigami.Units.iconSizes.smallMedium
|
||||
|
||||
text: root.connection.directChatNotifications > 0 ? root.connection.directChatNotifications : ""
|
||||
visible: (root.connection.directChatNotifications > 0 || root.connection.directChatInvites) && RoomManager.currentSpace !== "DM"
|
||||
color: Kirigami.Theme.textColor
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
background: Rectangle {
|
||||
visible: true
|
||||
Kirigami.Theme.colorSet: Kirigami.Theme.Button
|
||||
Kirigami.Theme.inherit: false
|
||||
color: root.connection.directChatsHaveHighlightNotifications ? Kirigami.Theme.positiveTextColor : Kirigami.Theme.backgroundColor
|
||||
radius: height / 2
|
||||
}
|
||||
|
||||
TextMetrics {
|
||||
id: directChatNotificationCountTextMetrics
|
||||
text: directChatNotificationCountLabel.text
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
activeFocusOnTab: true
|
||||
@@ -143,33 +172,6 @@ QQC2.Control {
|
||||
RoomManager.currentSpace = "DM";
|
||||
root.selectionChanged();
|
||||
}
|
||||
|
||||
QQC2.Label {
|
||||
id: directChatNotificationCountLabel
|
||||
anchors.top: parent.top
|
||||
anchors.right: parent.right
|
||||
anchors.rightMargin: Kirigami.Units.smallSpacing / 2
|
||||
z: 1
|
||||
width: Math.max(directChatNotificationCountTextMetrics.advanceWidth + Kirigami.Units.smallSpacing * 2, height)
|
||||
height: Kirigami.Units.iconSizes.smallMedium
|
||||
|
||||
text: root.connection.directChatNotifications > 0 ? root.connection.directChatNotifications : ""
|
||||
visible: (root.connection.directChatNotifications > 0 || root.connection.directChatInvites) && RoomManager.currentSpace !== "DM"
|
||||
color: Kirigami.Theme.textColor
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
background: Rectangle {
|
||||
visible: true
|
||||
Kirigami.Theme.colorSet: Kirigami.Theme.Button
|
||||
Kirigami.Theme.inherit: false
|
||||
color: root.connection.directChatsHaveHighlightNotifications ? Kirigami.Theme.positiveTextColor : Kirigami.Theme.backgroundColor
|
||||
radius: height / 2
|
||||
}
|
||||
|
||||
TextMetrics {
|
||||
id: directChatNotificationCountTextMetrics
|
||||
text: directChatNotificationCountLabel.text
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Repeater {
|
||||
@@ -190,6 +192,10 @@ QQC2.Control {
|
||||
text: displayName
|
||||
source: avatar ? root.connection.makeMediaUrl("mxc://" + avatar) : ""
|
||||
|
||||
notificationCount: spaceDelegate.currentRoom.childrenNotificationCount
|
||||
notificationHighlight: spaceDelegate.currentRoom.childrenHaveHighlightNotifications
|
||||
showNotificationLabel: spaceDelegate.currentRoom.childrenNotificationCount > 0 && RoomManager.currentSpace != spaceDelegate.roomId
|
||||
|
||||
activeFocusOnTab: true
|
||||
|
||||
onSelected: {
|
||||
@@ -198,34 +204,6 @@ QQC2.Control {
|
||||
}
|
||||
checked: RoomManager.currentSpace === roomId
|
||||
onContextMenuRequested: root.createContextMenu(currentRoom)
|
||||
|
||||
QQC2.Label {
|
||||
id: notificationCountLabel
|
||||
anchors.top: parent.top
|
||||
anchors.right: parent.right
|
||||
anchors.rightMargin: Kirigami.Units.smallSpacing / 2
|
||||
z: 1
|
||||
width: Math.max(notificationCountTextMetrics.advanceWidth + Kirigami.Units.smallSpacing * 2, height)
|
||||
height: Kirigami.Units.iconSizes.smallMedium
|
||||
|
||||
text: spaceDelegate.currentRoom.childrenNotificationCount > 0 ? spaceDelegate.currentRoom.childrenNotificationCount : ""
|
||||
visible: spaceDelegate.currentRoom.childrenNotificationCount > 0 && RoomManager.currentSpace != spaceDelegate.roomId
|
||||
color: Kirigami.Theme.textColor
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
background: Rectangle {
|
||||
visible: true
|
||||
Kirigami.Theme.colorSet: Kirigami.Theme.Button
|
||||
Kirigami.Theme.inherit: false
|
||||
color: spaceDelegate.currentRoom.childrenHaveHighlightNotifications ? Kirigami.Theme.positiveTextColor : Kirigami.Theme.backgroundColor
|
||||
radius: height / 2
|
||||
}
|
||||
|
||||
TextMetrics {
|
||||
id: notificationCountTextMetrics
|
||||
text: notificationCountLabel.text
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -143,12 +143,12 @@ QQC2.ScrollView {
|
||||
footer: Item {
|
||||
z: 3
|
||||
width: root.width
|
||||
visible: !Config.blur
|
||||
visible: !NeoChatConfig.blur
|
||||
|
||||
SectionDelegate {
|
||||
id: sectionDelegate
|
||||
anchors.leftMargin: state === "alignLeft" ? Kirigami.Units.largeSpacing : 0
|
||||
state: Config.compactLayout ? "alignLeft" : "alignCenter"
|
||||
state: NeoChatConfig.compactLayout ? "alignLeft" : "alignCenter"
|
||||
// Align left when in compact mode and center when using bubbles
|
||||
states: [
|
||||
State {
|
||||
@@ -171,7 +171,7 @@ QQC2.ScrollView {
|
||||
|
||||
width: messageListView.sectionBannerItem ? messageListView.sectionBannerItem.contentItem.width : 0
|
||||
labelText: messageListView.sectionBannerItem ? messageListView.sectionBannerItem.ListView.section : ""
|
||||
colorSet: Config.compactLayout ? Kirigami.Theme.View : Kirigami.Theme.Window
|
||||
colorSet: NeoChatConfig.compactLayout ? Kirigami.Theme.View : Kirigami.Theme.Window
|
||||
}
|
||||
}
|
||||
footerPositioning: ListView.OverlayHeader
|
||||
@@ -183,17 +183,12 @@ QQC2.ScrollView {
|
||||
KirigamiComponents.FloatingButton {
|
||||
id: goReadMarkerFab
|
||||
|
||||
anchors {
|
||||
right: parent.right
|
||||
top: parent.top
|
||||
topMargin: Kirigami.Units.largeSpacing
|
||||
rightMargin: Kirigami.Units.largeSpacing
|
||||
}
|
||||
|
||||
implicitWidth: Kirigami.Settings.hasTransientTouchInput ? Kirigami.Units.gridUnit * 3 : Kirigami.Units.gridUnit * 2
|
||||
implicitHeight: Kirigami.Settings.hasTransientTouchInput ? Kirigami.Units.gridUnit * 3 : Kirigami.Units.gridUnit * 2
|
||||
|
||||
padding: Kirigami.Units.largeSpacing
|
||||
anchors.right: parent.right
|
||||
anchors.top: parent.top
|
||||
anchors.topMargin: Kirigami.Units.largeSpacing
|
||||
anchors.rightMargin: Kirigami.Units.largeSpacing
|
||||
implicitWidth: Kirigami.Units.gridUnit * 2
|
||||
implicitHeight: Kirigami.Units.gridUnit * 2
|
||||
|
||||
z: 2
|
||||
visible: (root.currentRoom?.hasUnreadMessages ?? false)
|
||||
@@ -220,16 +215,12 @@ QQC2.ScrollView {
|
||||
}
|
||||
KirigamiComponents.FloatingButton {
|
||||
id: goMarkAsReadFab
|
||||
anchors {
|
||||
right: parent.right
|
||||
bottom: parent.bottom
|
||||
bottomMargin: Kirigami.Units.largeSpacing
|
||||
rightMargin: Kirigami.Units.largeSpacing
|
||||
}
|
||||
implicitWidth: Kirigami.Settings.hasTransientTouchInput ? Kirigami.Units.gridUnit * 3 : Kirigami.Units.gridUnit * 2
|
||||
implicitHeight: Kirigami.Settings.hasTransientTouchInput ? Kirigami.Units.gridUnit * 3 : Kirigami.Units.gridUnit * 2
|
||||
|
||||
padding: Kirigami.Units.largeSpacing
|
||||
anchors.right: parent.right
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.bottomMargin: Kirigami.Units.largeSpacing
|
||||
anchors.rightMargin: Kirigami.Units.largeSpacing
|
||||
implicitWidth: Kirigami.Units.gridUnit * 2
|
||||
implicitHeight: Kirigami.Units.gridUnit * 2
|
||||
|
||||
z: 2
|
||||
visible: !messageListView.atYEnd
|
||||
|
||||
@@ -106,7 +106,9 @@ void Registration::registerAccount()
|
||||
account.setHomeserver(connection->homeserver());
|
||||
account.setDeviceId(connection->deviceId());
|
||||
account.setDeviceName(displayName);
|
||||
Controller::instance().saveAccessTokenToKeyChain(account.userId(), connection->accessToken());
|
||||
if (!Controller::instance().saveAccessTokenToKeyChain(account.userId(), connection->accessToken())) {
|
||||
qWarning() << "Couldn't save access token";
|
||||
}
|
||||
account.sync();
|
||||
Controller::instance().addConnection(connection);
|
||||
Controller::instance().setActiveConnection(connection);
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
#include "urlhelper.h"
|
||||
|
||||
#include <KLocalizedString>
|
||||
#include <KRuntimePlatform>
|
||||
#include <QDesktopServices>
|
||||
#include <QQuickTextDocument>
|
||||
#include <QStandardPaths>
|
||||
@@ -240,12 +239,6 @@ void RoomManager::loadInitialRoom()
|
||||
resolveResource(m_arg);
|
||||
}
|
||||
|
||||
const auto runtimePlatform = KRuntimePlatform::runtimePlatform();
|
||||
if (runtimePlatform.contains(QStringLiteral("phone")) || runtimePlatform.contains(QStringLiteral("handset"))) {
|
||||
// We don't want to open a room on startup on mobile
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_currentRoom) {
|
||||
// we opened a room with the arg parsing already
|
||||
return;
|
||||
@@ -357,11 +350,7 @@ void RoomManager::joinRoom(Quotient::Connection *account, const QString &roomAli
|
||||
|
||||
void RoomManager::knockRoom(NeoChatConnection *account, const QString &roomAliasOrId, const QString &reason, const QStringList &viaServers)
|
||||
{
|
||||
#if Quotient_VERSION_MINOR > 8
|
||||
auto job = account->callApi<KnockRoomJob>(roomAliasOrId, viaServers, viaServers, reason);
|
||||
#else
|
||||
auto job = account->callApi<KnockRoomJob>(roomAliasOrId, viaServers, reason);
|
||||
#endif
|
||||
// Upon completion, ensure a room object is created in case it hasn't come
|
||||
// with a sync yet. If the room object is not there, provideRoom() will
|
||||
// create it in Join state. finished() is used here instead of success()
|
||||
|
||||
@@ -98,23 +98,25 @@ FormCard.FormCardPage {
|
||||
}
|
||||
|
||||
FormCard.FormHeader {
|
||||
title: i18n("User information")
|
||||
title: i18n("User Information")
|
||||
}
|
||||
FormCard.FormCard {
|
||||
FormCard.FormTextFieldDelegate {
|
||||
id: name
|
||||
label: i18n("Name:")
|
||||
label: i18n("Display Name:")
|
||||
text: root.connection ? root.connection.localUser.displayName : ""
|
||||
}
|
||||
FormCard.FormDelegateSeparator {}
|
||||
FormCard.FormTextFieldDelegate {
|
||||
id: accountLabel
|
||||
label: i18n("Label:")
|
||||
placeholderText: i18n("Work")
|
||||
text: root.connection ? root.connection.label : ""
|
||||
}
|
||||
FormCard.FormDelegateSeparator {}
|
||||
FormCard.FormButtonDelegate {
|
||||
text: i18nc("@action:button", "QR code for account")
|
||||
text: i18nc("@action:button", "Show QR Code")
|
||||
icon.name: "view-barcode-qr-symbolic"
|
||||
onClicked: {
|
||||
let qrMax = Qt.createComponent('org.kde.neochat', 'QrCodeMaximizeComponent').createObject(QQC2.Overlay.overlay, {
|
||||
text: "https://matrix.to/#/" + root.connection.localUser.id,
|
||||
@@ -131,6 +133,7 @@ FormCard.FormCardPage {
|
||||
FormCard.FormDelegateSeparator {}
|
||||
FormCard.FormButtonDelegate {
|
||||
text: i18n("Save")
|
||||
icon.name: "document-save-symbolic"
|
||||
onClicked: {
|
||||
if (!root.connection.setAvatar(avatar.source)) {
|
||||
showPassiveNotification("The Avatar could not be set");
|
||||
@@ -186,6 +189,7 @@ FormCard.FormCardPage {
|
||||
FormCard.FormDelegateSeparator {}
|
||||
FormCard.FormButtonDelegate {
|
||||
text: i18n("Save")
|
||||
icon.name: "document-save-symbolic"
|
||||
enabled: currentPassword.text.length > 0 && newPassword.text.length > 0 && confirmPassword.text.length > 0
|
||||
onClicked: {
|
||||
if (newPassword.text === confirmPassword.text) {
|
||||
@@ -202,7 +206,7 @@ FormCard.FormCardPage {
|
||||
medium: "email"
|
||||
}
|
||||
ThreePIdCard {
|
||||
visible: Config.phone3PId
|
||||
visible: NeoChatConfig.phone3PId
|
||||
connection: root.connection
|
||||
title: i18n("Phone Numbers")
|
||||
medium: "msisdn"
|
||||
@@ -249,6 +253,7 @@ FormCard.FormCardPage {
|
||||
FormCard.FormButtonDelegate {
|
||||
id: deactivateAccountButton
|
||||
text: i18n("Deactivate Account")
|
||||
icon.name: "trash-empty-symbolic"
|
||||
onClicked: {
|
||||
const component = Qt.createComponent('org.kde.neochat', 'ConfirmDeactivateAccountDialog');
|
||||
const dialog = component.createObject(QQC2.ApplicationWindow.window, {
|
||||
|
||||
@@ -41,8 +41,8 @@ FormCard.FormCardPage {
|
||||
KirigamiComponents.Avatar {
|
||||
color: "#4a5bcc"
|
||||
Layout.alignment: Qt.AlignTop
|
||||
visible: Config.showAvatarInTimeline
|
||||
Layout.preferredWidth: Config.showAvatarInTimeline ? Kirigami.Units.largeSpacing * 2 : 0
|
||||
visible: NeoChatConfig.showAvatarInTimeline
|
||||
Layout.preferredWidth: NeoChatConfig.showAvatarInTimeline ? Kirigami.Units.largeSpacing * 2 : 0
|
||||
Layout.preferredHeight: Kirigami.Units.largeSpacing * 2
|
||||
}
|
||||
QQC2.Control {
|
||||
@@ -78,8 +78,8 @@ FormCard.FormCardPage {
|
||||
KirigamiComponents.Avatar {
|
||||
color: "#9f244b"
|
||||
Layout.alignment: Qt.AlignTop
|
||||
visible: Config.showAvatarInTimeline
|
||||
Layout.preferredWidth: Config.showAvatarInTimeline ? Kirigami.Units.largeSpacing * 2 : 0
|
||||
visible: NeoChatConfig.showAvatarInTimeline
|
||||
Layout.preferredWidth: NeoChatConfig.showAvatarInTimeline ? Kirigami.Units.largeSpacing * 2 : 0
|
||||
Layout.preferredHeight: Kirigami.Units.largeSpacing * 2
|
||||
}
|
||||
QQC2.Control {
|
||||
@@ -113,13 +113,13 @@ FormCard.FormCardPage {
|
||||
]
|
||||
|
||||
text: i18n("Bubbles")
|
||||
checked: !Config.compactLayout
|
||||
checked: !NeoChatConfig.compactLayout
|
||||
QQC2.ButtonGroup.group: themeGroup
|
||||
enabled: !Config.isCompactLayoutImmutable
|
||||
enabled: !NeoChatConfig.isCompactLayoutImmutable
|
||||
|
||||
onToggled: {
|
||||
Config.compactLayout = !checked;
|
||||
Config.save();
|
||||
NeoChatConfig.compactLayout = !checked;
|
||||
NeoChatConfig.save();
|
||||
}
|
||||
}
|
||||
ThemeRadioButton {
|
||||
@@ -131,8 +131,8 @@ FormCard.FormCardPage {
|
||||
KirigamiComponents.Avatar {
|
||||
color: "#4a5bcc"
|
||||
Layout.alignment: Qt.AlignTop
|
||||
visible: Config.showAvatarInTimeline
|
||||
Layout.preferredWidth: Config.showAvatarInTimeline ? Kirigami.Units.largeSpacing * 2 : 0
|
||||
visible: NeoChatConfig.showAvatarInTimeline
|
||||
Layout.preferredWidth: NeoChatConfig.showAvatarInTimeline ? Kirigami.Units.largeSpacing * 2 : 0
|
||||
Layout.preferredHeight: Kirigami.Units.largeSpacing * 2
|
||||
}
|
||||
ColumnLayout {
|
||||
@@ -158,8 +158,8 @@ FormCard.FormCardPage {
|
||||
KirigamiComponents.Avatar {
|
||||
color: "#9f244b"
|
||||
Layout.alignment: Qt.AlignTop
|
||||
visible: Config.showAvatarInTimeline
|
||||
Layout.preferredWidth: Config.showAvatarInTimeline ? Kirigami.Units.largeSpacing * 2 : 0
|
||||
visible: NeoChatConfig.showAvatarInTimeline
|
||||
Layout.preferredWidth: NeoChatConfig.showAvatarInTimeline ? Kirigami.Units.largeSpacing * 2 : 0
|
||||
Layout.preferredHeight: Kirigami.Units.largeSpacing * 2
|
||||
}
|
||||
ColumnLayout {
|
||||
@@ -182,13 +182,13 @@ FormCard.FormCardPage {
|
||||
}
|
||||
]
|
||||
text: i18n("Compact")
|
||||
checked: Config.compactLayout
|
||||
checked: NeoChatConfig.compactLayout
|
||||
QQC2.ButtonGroup.group: themeGroup
|
||||
enabled: !Config.isCompactLayoutImmutable
|
||||
enabled: !NeoChatConfig.isCompactLayoutImmutable
|
||||
|
||||
onToggled: {
|
||||
Config.compactLayout = checked;
|
||||
Config.save();
|
||||
NeoChatConfig.compactLayout = checked;
|
||||
NeoChatConfig.save();
|
||||
}
|
||||
}
|
||||
Item {
|
||||
@@ -204,10 +204,10 @@ FormCard.FormCardPage {
|
||||
FormCard.FormCheckDelegate {
|
||||
id: compactRoomListDelegate
|
||||
text: i18n("Use compact room list")
|
||||
checked: Config.compactRoomList
|
||||
checked: NeoChatConfig.compactRoomList
|
||||
onToggled: {
|
||||
Config.compactRoomList = checked;
|
||||
Config.save();
|
||||
NeoChatConfig.compactRoomList = checked;
|
||||
NeoChatConfig.save();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -231,11 +231,11 @@ FormCard.FormCardPage {
|
||||
id: hasWindowSystemDelegate
|
||||
visible: WindowController.hasWindowSystem
|
||||
text: i18n("Use transparent chat page")
|
||||
enabled: !Config.compactLayout && !Config.isBlurImmutable
|
||||
checked: Config.blur
|
||||
enabled: !NeoChatConfig.compactLayout && !NeoChatConfig.isBlurImmutable
|
||||
checked: NeoChatConfig.blur
|
||||
onToggled: {
|
||||
Config.blur = checked;
|
||||
Config.save();
|
||||
NeoChatConfig.blur = checked;
|
||||
NeoChatConfig.save();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -246,8 +246,8 @@ FormCard.FormCardPage {
|
||||
|
||||
FormCard.AbstractFormDelegate {
|
||||
id: transparencyDelegate
|
||||
visible: WindowController.hasWindowSystem && Config.blur
|
||||
enabled: !Config.isTransparancyImmutable
|
||||
visible: WindowController.hasWindowSystem && NeoChatConfig.blur
|
||||
enabled: !NeoChatConfig.isTransparancyImmutable
|
||||
background: Item {}
|
||||
contentItem: ColumnLayout {
|
||||
QQC2.Label {
|
||||
@@ -255,14 +255,14 @@ FormCard.FormCardPage {
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
QQC2.Slider {
|
||||
enabled: !Config.compactLayout && Config.blur
|
||||
enabled: !NeoChatConfig.compactLayout && NeoChatConfig.blur
|
||||
from: 0
|
||||
to: 1
|
||||
stepSize: 0.05
|
||||
value: Config.transparency
|
||||
value: NeoChatConfig.transparency
|
||||
onMoved: {
|
||||
Config.transparency = value;
|
||||
Config.save();
|
||||
NeoChatConfig.transparency = value;
|
||||
NeoChatConfig.save();
|
||||
}
|
||||
Layout.fillWidth: true
|
||||
|
||||
@@ -273,7 +273,7 @@ FormCard.FormCardPage {
|
||||
QQC2.ToolTip.text: i18n("Only enabled if the transparent chat page is enabled.")
|
||||
}
|
||||
QQC2.Label {
|
||||
text: Math.round(Config.transparency * 100) + "%"
|
||||
text: Math.round(NeoChatConfig.transparency * 100) + "%"
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
}
|
||||
@@ -288,11 +288,11 @@ FormCard.FormCardPage {
|
||||
FormCard.FormCheckDelegate {
|
||||
id: showLocalMessagesOnRightDelegate
|
||||
text: i18n("Show your messages on the right")
|
||||
checked: Config.showLocalMessagesOnRight
|
||||
enabled: !Config.isShowLocalMessagesOnRightImmutable && !Config.compactLayout
|
||||
checked: NeoChatConfig.showLocalMessagesOnRight
|
||||
enabled: !NeoChatConfig.isShowLocalMessagesOnRightImmutable && !NeoChatConfig.compactLayout
|
||||
onToggled: {
|
||||
Config.showLocalMessagesOnRight = checked;
|
||||
Config.save();
|
||||
NeoChatConfig.showLocalMessagesOnRight = checked;
|
||||
NeoChatConfig.save();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -304,10 +304,10 @@ FormCard.FormCardPage {
|
||||
FormCard.FormCheckDelegate {
|
||||
id: showLinkPreviewDelegate
|
||||
text: i18n("Show links preview in the chat messages")
|
||||
checked: Config.showLinkPreview
|
||||
checked: NeoChatConfig.showLinkPreview
|
||||
onToggled: {
|
||||
Config.showLinkPreview = checked;
|
||||
Config.save();
|
||||
NeoChatConfig.showLinkPreview = checked;
|
||||
NeoChatConfig.save();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -318,21 +318,21 @@ FormCard.FormCardPage {
|
||||
FormCard.FormCard {
|
||||
FormCard.FormCheckDelegate {
|
||||
text: i18n("In chat")
|
||||
checked: Config.showAvatarInTimeline
|
||||
checked: NeoChatConfig.showAvatarInTimeline
|
||||
onToggled: {
|
||||
Config.showAvatarInTimeline = checked;
|
||||
Config.save();
|
||||
NeoChatConfig.showAvatarInTimeline = checked;
|
||||
NeoChatConfig.save();
|
||||
}
|
||||
enabled: !Config.isShowAvatarInTimelineImmutable
|
||||
enabled: !NeoChatConfig.isShowAvatarInTimelineImmutable
|
||||
}
|
||||
|
||||
FormCard.FormCheckDelegate {
|
||||
text: i18n("In sidebar")
|
||||
checked: Config.showAvatarInRoomDrawer
|
||||
enabled: !Config.isShowAvatarInRoomDrawerImmutable
|
||||
checked: NeoChatConfig.showAvatarInRoomDrawer
|
||||
enabled: !NeoChatConfig.isShowAvatarInRoomDrawerImmutable
|
||||
onToggled: {
|
||||
Config.showAvatarInRoomDrawer = checked;
|
||||
Config.save();
|
||||
NeoChatConfig.showAvatarInRoomDrawer = checked;
|
||||
NeoChatConfig.save();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,4 +40,6 @@ ecm_add_qml_module(settings GENERATE_PLUGIN_SOURCE
|
||||
PasswordSheet.qml
|
||||
ThemeRadioButton.qml
|
||||
ThreePIdCard.qml
|
||||
ImportKeysDialog.qml
|
||||
ExportKeysDialog.qml
|
||||
)
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user