diff --git a/src/menu.py b/src/menu.py index bfcbccd..8db9505 100644 --- a/src/menu.py +++ b/src/menu.py @@ -360,16 +360,16 @@ class PrivacySettings(CenteredWidget): def initUI(self): self.setObjectName("privacySettings") - self.resize(350, 600) - self.setMinimumSize(QtCore.QSize(350, 600)) - self.setMaximumSize(QtCore.QSize(350, 600)) + self.resize(370, 600) + self.setMinimumSize(QtCore.QSize(370, 600)) + self.setMaximumSize(QtCore.QSize(370, 600)) self.saveHistory = QtGui.QCheckBox(self) - self.saveHistory.setGeometry(QtCore.QRect(10, 20, 291, 22)) + self.saveHistory.setGeometry(QtCore.QRect(10, 20, 350, 22)) self.saveUnsentOnly = QtGui.QCheckBox(self) - self.saveUnsentOnly.setGeometry(QtCore.QRect(10, 60, 291, 22)) + self.saveUnsentOnly.setGeometry(QtCore.QRect(10, 60, 350, 22)) self.fileautoaccept = QtGui.QCheckBox(self) - self.fileautoaccept.setGeometry(QtCore.QRect(10, 100, 271, 22)) + self.fileautoaccept.setGeometry(QtCore.QRect(10, 100, 350, 22)) self.typingNotifications = QtGui.QCheckBox(self) self.typingNotifications.setGeometry(QtCore.QRect(10, 140, 350, 30)) @@ -380,7 +380,7 @@ class PrivacySettings(CenteredWidget): self.path = QtGui.QPlainTextEdit(self) self.path.setGeometry(QtCore.QRect(10, 265, 330, 45)) self.change_path = QtGui.QPushButton(self) - self.change_path.setGeometry(QtCore.QRect(10, 320, 330, 30)) + self.change_path.setGeometry(QtCore.QRect(10, 320, 350, 30)) settings = Settings.get_instance() self.typingNotifications.setChecked(settings['typing_notifications']) self.fileautoaccept.setChecked(settings['allow_auto_accept']) @@ -392,19 +392,19 @@ class PrivacySettings(CenteredWidget): self.path.setPlainText(settings['auto_accept_path'] or curr_directory()) self.change_path.clicked.connect(self.new_path) self.block_user_label = QtGui.QLabel(self) - self.block_user_label.setGeometry(QtCore.QRect(10, 360, 330, 30)) + self.block_user_label.setGeometry(QtCore.QRect(10, 360, 350, 30)) self.block_id = QtGui.QPlainTextEdit(self) - self.block_id.setGeometry(QtCore.QRect(10, 390, 330, 30)) + self.block_id.setGeometry(QtCore.QRect(10, 390, 350, 30)) self.block = QtGui.QPushButton(self) - self.block.setGeometry(QtCore.QRect(10, 430, 330, 30)) + self.block.setGeometry(QtCore.QRect(10, 430, 350, 30)) self.block.clicked.connect(lambda: Profile.get_instance().block_user(self.block_id.toPlainText()) or self.close()) self.blocked_users_label = QtGui.QLabel(self) - self.blocked_users_label.setGeometry(QtCore.QRect(10, 470, 330, 30)) + self.blocked_users_label.setGeometry(QtCore.QRect(10, 470, 350, 30)) self.comboBox = QtGui.QComboBox(self) - self.comboBox.setGeometry(QtCore.QRect(10, 500, 330, 30)) + self.comboBox.setGeometry(QtCore.QRect(10, 500, 350, 30)) self.comboBox.addItems(settings['blocked']) self.unblock = QtGui.QPushButton(self) - self.unblock.setGeometry(QtCore.QRect(10, 540, 330, 30)) + self.unblock.setGeometry(QtCore.QRect(10, 540, 350, 30)) self.unblock.clicked.connect(lambda: self.unblock_user()) self.retranslateUi() QtCore.QMetaObject.connectSlotsByName(self) diff --git a/src/profile.py b/src/profile.py index 0e5a0f9..b078d14 100644 --- a/src/profile.py +++ b/src/profile.py @@ -47,8 +47,6 @@ class Profile(contact.Contact, Singleton): self._friends, self._active_friend = [], -1 for i in data: # creates list of friends tox_id = tox.friend_get_public_key(i) - if not self._history.friend_exists_in_db(tox_id): - self._history.add_friend_to_db(tox_id) try: alias = list(filter(lambda x: x[0] == tox_id, aliases))[0][1] except: diff --git a/src/translations/en_GB.ts b/src/translations/en_GB.ts index a63c4b6..e6df02a 100644 --- a/src/translations/en_GB.ts +++ b/src/translations/en_GB.ts @@ -26,7 +26,7 @@ Callback - + File from @@ -129,13 +129,13 @@ can produce IP leak - + User {} wants to add you to contact list. Message: {} - + Friend request @@ -175,7 +175,7 @@ can produce IP leak - + Enter new alias for friend {} or leave empty to use friend's name: Enter new alias for friend {} or leave empty to use friend's name: @@ -190,7 +190,7 @@ can produce IP leak Find contact - + Friend added Friend added @@ -202,12 +202,12 @@ Version: Version: - + Friend added without sending friend request Friend added without sending friend request - + Choose folder Choose folder @@ -267,55 +267,60 @@ Version: - + Copy link location - + Copy - + Select all - + Delete - + Paste - + Cut - + Undo - + Redo - + Save - + User {} is now known as {} + + + Delete message + + MenuWindow @@ -335,32 +340,32 @@ Version: - + Send screenshot Send screenshot - + Send file Send file - + Send audio message - + Send video message - + Add smiley - + Send sticker @@ -381,12 +386,12 @@ Version: PluginWindow - + List of commands for plugin {} - + No commands available @@ -394,42 +399,42 @@ Version: PluginsForm - + Plugins - + Open selected plugin - + No GUI found for this plugin - + No description available - + Disable plugin - + Enable plugin - + No plugins found - + Error @@ -555,17 +560,17 @@ Version: audioSettingsForm - + Audio settings Audio settings - + Input device: Input device: - + Output device: Output device: @@ -573,32 +578,32 @@ Version: incoming_call - + Incoming video call Incoming video call - + Incoming audio call Incoming audio call - + Outgoing video call - + Outgoing audio call - + Call declined - + Call finished @@ -606,50 +611,55 @@ Version: interfaceForm - + Interface settings - + Theme: - + Language: - + Smileys - + Smiley pack: - + Mirror mode - + Messages font size: - + Restart app to apply settings - + Restart required + + + Select unread messages notification color + + login @@ -694,7 +704,7 @@ Version: - + Looks like other instance of Toxygen uses this profile! Continue? @@ -707,22 +717,22 @@ Version: notificationsForm - + Notification settings - + Enable notifications - + Enable call's sound - + Enable sound notifications @@ -730,72 +740,72 @@ Version: privacySettings - + Privacy settings - + Save chat history - + Allow file auto accept - + Send typing notifications - + Auto accept default path: - + Change - + Allow inlines - + Chat history - + History will be cleaned! Continue? - + Blocked users: Blocked users: - + Unblock Unblock - + Block user Block user - + Add to friend list Add to friend list - + Do you want to add this user to friend list? Do you want to add this user to friend list? @@ -805,40 +815,45 @@ Version: Block by TOX ID: - + Block by public key: + + + Save unsent messages only + + tray - + Open Toxygen - + Exit - + Set status - + Online - + Away - + Busy diff --git a/src/translations/fr_FR.ts b/src/translations/fr_FR.ts index da66684..544d34b 100644 --- a/src/translations/fr_FR.ts +++ b/src/translations/fr_FR.ts @@ -26,7 +26,7 @@ Callback - + File from @@ -129,13 +129,13 @@ can produce IP leak À propos du programme - + User {} wants to add you to contact list. Message: {} L'Utilisateur {} veut vout rajouter à sa liste de contacts. Message : {} - + Friend request Demande d'amis @@ -180,7 +180,7 @@ can produce IP leak Retirer un ami - + Enter new alias for friend {} or leave empty to use friend's name: Entrez un nouvel alias pour l'ami {} ou laissez vide pour garder son nom de base : @@ -195,7 +195,7 @@ can produce IP leak Trouver le contact - + Friend added Ami rajouté @@ -207,12 +207,12 @@ Version: Version : - + Friend added without sending friend request Ami rajouté sans avoir envoyé de demande - + Choose folder Choisir le dossier @@ -272,55 +272,60 @@ Version : - + Copy link location - + Copy - + Select all - + Delete - + Paste - + Cut - + Undo - + Redo - + Save - + User {} is now known as {} + + + Delete message + + MenuWindow @@ -340,32 +345,32 @@ Version : - + Send screenshot Envoyer une capture d'écran - + Send file Envoyer le fichier - + Send audio message - + Send video message - + Add smiley - + Send sticker @@ -386,12 +391,12 @@ Version : PluginWindow - + List of commands for plugin {} - + No commands available @@ -399,42 +404,42 @@ Version : PluginsForm - + Plugins - + Open selected plugin - + No GUI found for this plugin - + No description available - + Disable plugin - + Enable plugin - + No plugins found - + Error @@ -560,17 +565,17 @@ Version : audioSettingsForm - + Audio settings Paramètres audio - + Input device: Péripherique d'entrée : - + Output device: Péripherique de sortie : @@ -578,32 +583,32 @@ Version : incoming_call - + Incoming video call Appel vidéo entrant - + Incoming audio call Appel audio entrant - + Outgoing video call - + Outgoing audio call - + Call declined - + Call finished @@ -611,50 +616,55 @@ Version : interfaceForm - + Interface settings Paramêtres de l'interface - + Theme: Thème : - + Language: Langue : - + Smileys - + Smiley pack: - + Mirror mode - + Messages font size: - + Restart app to apply settings - + Restart required + + + Select unread messages notification color + + login @@ -699,7 +709,7 @@ Version : toxygen - + Looks like other instance of Toxygen uses this profile! Continue? Il semble qu'une autre instance de Toxygen utilise ce profil ! Continuer ? @@ -712,22 +722,22 @@ Version : notificationsForm - + Notification settings Paramêtres de notification - + Enable notifications Activer les notifications - + Enable call's sound Activer les sons d'appel - + Enable sound notifications Activer les sons de notifications @@ -735,72 +745,72 @@ Version : privacySettings - + Privacy settings Paramêtres de confidentialité - + Save chat history Sauvegarder l'historique de chat - + Allow file auto accept Autoriser les fichier automatiquement - + Send typing notifications Notifier la frappe - + Auto accept default path: Chemin d'accès des fichiers acceptés automatiquement : - + Change Modifier - + Allow inlines Activer l'auto-réception - + Chat history Historique de chat - + History will be cleaned! Continue? L'Historique va être nettoyé ! Confirmer ? - + Blocked users: Utilisateurs bloqués : - + Unblock Débloquer - + Block user Bloquer l'utilisateur - + Add to friend list Ajouter à la liste des amis - + Do you want to add this user to friend list? Voulez vous rajouter cet utilisateur à votre liste d'amis ? @@ -810,40 +820,45 @@ Version : Bloquer l'ID TOX : - + Block by public key: + + + Save unsent messages only + + tray - + Open Toxygen Ouvrir Toxygen - + Exit Quitter - + Set status - + Online - + Away - + Busy diff --git a/src/translations/ru_RU.qm b/src/translations/ru_RU.qm index 5325e1e..64b1d3e 100644 Binary files a/src/translations/ru_RU.qm and b/src/translations/ru_RU.qm differ diff --git a/src/translations/ru_RU.ts b/src/translations/ru_RU.ts index ffa517a..d6e64a4 100644 --- a/src/translations/ru_RU.ts +++ b/src/translations/ru_RU.ts @@ -27,7 +27,7 @@ Callback - + File from Файл от @@ -132,14 +132,14 @@ can produce IP leak О программе - + User {} wants to add you to contact list. Message: {} Пользователь {} хочет добавить Вас в список контактов. Сообщение: {} - + Friend request Запрос на добавление в друзья @@ -179,7 +179,7 @@ can produce IP leak Удалить друга - + Enter new alias for friend {} or leave empty to use friend's name: Введите новый псевдоним для друга {} или оставьте пустым для использования его имени: @@ -194,7 +194,7 @@ can produce IP leak Найти контакт - + Friend added Друг добавлен @@ -205,12 +205,12 @@ Version: Toxygen - клиент для мессенджера Tox, написанный на Python. Версия: - + Friend added without sending friend request Друг добавлен без отправки запроса на добавление в друзья - + Choose folder Выбрать папку @@ -270,55 +270,60 @@ Version: Заметки о пользователе - + Copy link location Копировать адрес ссылки - + Copy Копировать - + Select all Выделить всё - + Delete Удалить - + Paste Вставить - + Cut Вырезать - + Undo Отменить - + Redo Повторить - + Save Сохранить - + User {} is now known as {} Пользователь {} сейчас известен как {} + + + Delete message + Удалить сообщение + MenuWindow @@ -338,32 +343,32 @@ Version: Остановить запись - + Send screenshot Отправить снимок экрана - + Send file Отправить файл - + Send audio message Отправить аудиосообщение - + Send video message Отправить видеосообщение - + Add smiley Добавить смайлик - + Send sticker Отправить стикер @@ -384,12 +389,12 @@ Version: PluginWindow - + List of commands for plugin {} Список команд для плагина {} - + No commands available Команды не найдены @@ -397,42 +402,42 @@ Version: PluginsForm - + Plugins Плагины - + Open selected plugin Открыть выбранный плагин - + No GUI found for this plugin GUI для данного плагина не найден - + No description available Описание недоступно - + Disable plugin Отключить плагин - + Enable plugin Включить плагин - + No plugins found Плагины не найдены - + Error Ошибка @@ -563,17 +568,17 @@ Version: audioSettingsForm - + Audio settings Настройки аудио - + Input device: Устройство ввода: - + Output device: Устройство вывода: @@ -581,32 +586,32 @@ Version: incoming_call - + Incoming video call Входящий видеозвонок - + Incoming audio call Входящий аудиозвонок - + Outgoing video call Исходящий видеозвонок - + Outgoing audio call Исходящий аудиозвонок - + Call declined Звонок отменен - + Call finished Звонок завершен @@ -614,50 +619,55 @@ Version: interfaceForm - + Interface settings Настройки интерфейса - + Theme: Тема: - + Language: Язык: - + Smileys Смайлики - + Smiley pack: Набор смайликов - + Mirror mode Зеркальный режим - + Messages font size: Размер шрифта сообщений: - + Restart app to apply settings Для применения настроек необходимо перезапустить приложение - + Restart required Требуется перезапуск + + + Select unread messages notification color + Цвет уведомления о сообщении + login @@ -702,7 +712,7 @@ Version: toxygen - + Looks like other instance of Toxygen uses this profile! Continue? Похоже, что этот профиль используется другим экземпляром Toxygen! Продолжить? @@ -715,22 +725,22 @@ Version: notificationsForm - + Notification settings Настройки уведомлений - + Enable notifications Включить уведомления - + Enable call's sound Включить звук звонка - + Enable sound notifications Включить звуковые уведомления @@ -739,72 +749,72 @@ Version: privacySettings - + Privacy settings Настройки приватности - + Save chat history Сохранять историю переписки - + Allow file auto accept Разрешить автополучение файлов - + Send typing notifications Посылать уведомления о наборе текста - + Auto accept default path: Путь автоприема файлов: - + Change Изменить - + Allow inlines Разрешать инлайны - + Chat history История чата - + History will be cleaned! Continue? История переписки будет очищена! Продолжить? - + Blocked users: Заблокированные пользователи: - + Unblock Разблокировать - + Block user Заблокировать пользователя - + Add to friend list Добавить в список друзей - + Do you want to add this user to friend list? Добавить этого пользователя в список друзей? @@ -814,40 +824,45 @@ Version: Блокировать по TOX ID: - + Block by public key: Блокировать по публичному ключу + + + Save unsent messages only + Сохранять только неотправленные сообщения + tray - + Open Toxygen Открыть Toxygen - + Exit Выход - + Set status Изменить статус - + Online Онлайн - + Away Нет на месте - + Busy Занят