diff --git a/src/filetransferinstance.cpp b/src/filetransferinstance.cpp index 1706ccdd8..1001e4525 100644 --- a/src/filetransferinstance.cpp +++ b/src/filetransferinstance.cpp @@ -239,7 +239,9 @@ void FileTransferInstance::acceptRecvRequest() if (isFileWritable(path)) break; else - QMessageBox::warning(0, tr("Location not writable","Title of permissions popup"), tr("You do not have permission to write that location. Choose another, or cancel the save dialog.", "text of permissions popup")); + QMessageBox::warning(0, + tr("Location not writable","Title of permissions popup"), + tr("You do not have permission to write that location. Choose another, or cancel the save dialog.", "text of permissions popup")); } } } @@ -263,9 +265,7 @@ void FileTransferInstance::pauseResumeRecv() return; Core::getInstance()->pauseResumeFileRecv(friendId, fileNum); -// if (state == tsProcessing) -// state = tsPaused; -// else state = tsProcessing; + if (state == tsPaused) { effStartTime = QDateTime::currentDateTime(); @@ -284,9 +284,7 @@ void FileTransferInstance::pauseResumeSend() return; Core::getInstance()->pauseResumeFileSend(friendId, fileNum); -// if (state == tsProcessing) -// state = tsPaused; -// else state = tsProcessing; + if (state == tsPaused) { effStartTime = QDateTime::currentDateTime(); @@ -307,7 +305,6 @@ QString FileTransferInstance::QImage2base64(const QImage &img) QString FileTransferInstance::getHtmlImage() { - //qDebug() << "QString FileTransferInstance::getHtmlImage() " << state; QString res; if (state == tsPending || state == tsProcessing || state == tsPaused) diff --git a/src/widget/form/chatform.cpp b/src/widget/form/chatform.cpp index 6e21cdced..91fef98a7 100644 --- a/src/widget/form/chatform.cpp +++ b/src/widget/form/chatform.cpp @@ -231,6 +231,7 @@ void ChatForm::onAvInvite(int FriendId, int CallId, bool video) videoButton->style()->polish(videoButton); connect(callButton, SIGNAL(clicked()), this, SLOT(onAnswerCallTriggered())); } + addSystemInfoMessage(tr("%1 calling").arg(f->getName()), "white", QDateTime::currentDateTime()); Widget* w = Widget::getInstance(); @@ -299,7 +300,8 @@ void ChatForm::onAvCancel(int FriendId, int) connect(videoButton, SIGNAL(clicked()), this, SLOT(onVideoCallTriggered())); netcam->hide(); - + + addSystemInfoMessage(tr("%1 stopped calling").arg(f->getName()), "white", QDateTime::currentDateTime()); } void ChatForm::onAvEnd(int FriendId, int) @@ -331,6 +333,7 @@ void ChatForm::onAvEnd(int FriendId, int) void ChatForm::onAvRinging(int FriendId, int CallId, bool video) { + qDebug() << "onAvRinging"; if (FriendId != f->friendId) return; @@ -353,7 +356,8 @@ void ChatForm::onAvRinging(int FriendId, int CallId, bool video) videoButton->style()->polish(videoButton); connect(callButton, SIGNAL(clicked()), this, SLOT(onCancelCallTriggered())); } - addSystemInfoMessage(tr("%1 calling").arg(f->getName()), "white", QDateTime::currentDateTime()); + + addSystemInfoMessage(tr("Calling to %1").arg(f->getName()), "white", QDateTime::currentDateTime()); } void ChatForm::onAvStarting(int FriendId, int CallId, bool video) @@ -748,9 +752,11 @@ void ChatForm::stopCounter() { if(timer) { - addSystemInfoMessage(tr("Call with %1 ended. %2").arg(f->getName(), secondsToDHMS(timeElapsed.elapsed()/1000)), + addSystemInfoMessage(tr("Call with %1 ended. %2").arg(f->getName(), + secondsToDHMS(timeElapsed.elapsed()/1000)), "white", QDateTime::currentDateTime()); timer->stop(); + callDuration->setText(""); callDuration->hide(); timer = nullptr; delete timer; diff --git a/src/widget/form/settings/identityform.cpp b/src/widget/form/settings/identityform.cpp index 805bb91e1..ffa0495b4 100644 --- a/src/widget/form/settings/identityform.cpp +++ b/src/widget/form/settings/identityform.cpp @@ -183,7 +183,10 @@ void IdentityForm::onDeleteClicked() void IdentityForm::onImportClicked() { - QString path = QFileDialog::getOpenFileName(this, tr("Import profile", "import dialog title"), QDir::homePath(), tr("Tox save file (*.tox)", "import dialog filter")); + QString path = QFileDialog::getOpenFileName(this, + tr("Import profile", "import dialog title"), + QDir::homePath(), + tr("Tox save file (*.tox)", "import dialog filter")); if (path.isEmpty()) return; @@ -192,7 +195,9 @@ void IdentityForm::onImportClicked() if (info.suffix() != "tox") { - QMessageBox::warning(this, tr("Ignoring non-Tox file", "popup title"), tr("Warning: you've chosen a file that is not a Tox save file; ignoring.", "popup text")); + QMessageBox::warning(this, + tr("Ignoring non-Tox file", "popup title"), + tr("Warning: you've chosen a file that is not a Tox save file; ignoring.", "popup text")); return; } diff --git a/translations/pl.qm b/translations/pl.qm index ead1a4271..f6e5017ad 100644 Binary files a/translations/pl.qm and b/translations/pl.qm differ diff --git a/translations/pl.ts b/translations/pl.ts index 821031ff2..8e28678f9 100644 --- a/translations/pl.ts +++ b/translations/pl.ts @@ -11,10 +11,6 @@ AVSettings - - Form - Ustawienia - Audio Settings @@ -176,23 +172,34 @@ Nie można przesłać tego pliku! - - + %1 calling %1 dzwoni - + + %1 stopped calling + ? + Nieodebrana rozmowa od %1 + + + + Calling to %1 + at least gender neutral... + Dzwonisz do %1 + + + Call rejected - Połączenie odrzucone + Połączenie zostało odrzucone - + Call with %1 ended. %2 Rozmowa z %1 została zakończona. %2 - + Call duration: Czas trwania rozmowy: @@ -291,7 +298,7 @@ Czy chcesz spróbować z innym hasłem? Loggin pasuje do kontekstu - Błąd + Błąd @@ -320,19 +327,19 @@ Czy chcesz spróbować z innym hasłem? Zapisz plik - + Location not writable Title of permissions popup Nie można zapisać w lokacji - + You do not have permission to write that location. Choose another, or cancel the save dialog. text of permissions popup Nie masz uprawnienia by zapisać w tej lokacji. Wybierz inną lub anuluj zapis. - + ETA ETA @@ -473,10 +480,6 @@ Czy chcesz spróbować z innym hasłem? GeneralSettings - - Form - Ustawienia - General Settings @@ -573,26 +576,6 @@ Czy chcesz spróbować z innym hasłem? Theme Motyw - - :) - :) - - - ;) - ;) - - - :p - :p - - - :O - :O - - - :'( - :'( - Connection Settings @@ -610,11 +593,6 @@ Czy chcesz spróbować z innym hasłem? force tcp checkbox tooltip To pozwala np. na toxowanie przez Tora. Niestety obciąża to sieć Tox, więc używaj tylko w razie potrzeby. - - Disable UDP (not recommended) - Text on checkbox to disable UDP - Wyłącz UDP (nie zalecane) - Use proxy (SOCKS5) @@ -796,37 +774,37 @@ Czy chcesz spróbować z innym hasłem? Czy na pewno chcesz usunąć ten profil? - + Import profile import dialog title Importuj profil - + Tox save file (*.tox) import dialog filter Plik zapisu Tox (*.tox) - + Ignoring non-Tox file popup title Zignorowano niepoprawny plik profilu - + Warning: you've chosen a file that is not a Tox save file; ignoring. popup text Ostrzeżenie: Wybrano plik który nie jest plikiem zapisu Tox; zignorowano. - + Profile already exists import confirm title Profil już istnieje - + A profile named "%1" already exists. Do you want to erase it? import confirm text Profil pod nazwą "%1" już istnieje. Czy chcesz go usunąć? @@ -834,10 +812,6 @@ Czy chcesz spróbować z innym hasłem? IdentitySettings - - Form - Ustawienia - Public Information @@ -951,10 +925,6 @@ Czy chcesz spróbować z innym hasłem? MainWindow - - qTox - qTox - Your name @@ -991,17 +961,13 @@ Czy chcesz spróbować z innym hasłem? Close Zamknij - - Ctrl+Q - Ctrl+Q - NetCamView Tox video - Tox video + Tox video @@ -1026,10 +992,6 @@ Czy chcesz usunąć stary plik historii? PrivacySettings - - Form - Ustawienia - Typing Notification