From 2ad78bc56d607a2f778814f8ff14e5c636dfb7e7 Mon Sep 17 00:00:00 2001 From: ingvar1995 Date: Wed, 29 Jun 2016 15:39:44 +0300 Subject: [PATCH] translation update and bug fixes --- src/menu.py | 26 +++--- src/profile.py | 2 - src/translations/en_GB.ts | 169 +++++++++++++++++++++----------------- src/translations/fr_FR.ts | 169 +++++++++++++++++++++----------------- src/translations/ru_RU.qm | Bin 14424 -> 14801 bytes src/translations/ru_RU.ts | 169 +++++++++++++++++++++----------------- 6 files changed, 289 insertions(+), 246 deletions(-) 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 5325e1e614436bfad9f9ec5dcede7998d285a5ef..64b1d3e1b88f540f4756cfec6572b0bdb0202179 100644 GIT binary patch delta 1501 zcmcanaItuT2;+l^qH6V$j0`NjoeT`dlNng%tYl!2bcN8yCm2|kRWdNJK4D-v&%(f9 z{GNg3<^%=?#(V~r=hGM%7`HL7cCTk(;1yzEopF?bfwz}|^~ib#27w?3PTPA73?_~Y z%6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*NQz>3=HybxYkbi%D^DJjO)boqYMmO=G-Rw z=NK5oa=Ei6#4<35`f=y~J;%VHrNTYM;3orvK0o*3KRgT!yoP!d*^-roeRB_wrTk_Oop)TDkDBu^0RT%DLrDMt 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 Занят