From 04f9c0e3c8313944b444ca7a2ca143dfb3d2c31b Mon Sep 17 00:00:00 2001 From: Laurent Monin Date: Mon, 22 Apr 2024 10:33:41 +0200 Subject: [PATCH] Regenerate ui_* files --- picard/ui/ui_aboutdialog.py | 10 ++++++---- picard/ui/ui_cdlookup.py | 10 ++++++---- picard/ui/ui_edittagdialog.py | 10 ++++++---- picard/ui/ui_exception_script_selector.py | 10 ++++++---- picard/ui/ui_infodialog.py | 10 ++++++---- picard/ui/ui_infostatus.py | 10 ++++++---- picard/ui/ui_multi_locale_selector.py | 10 ++++++---- picard/ui/ui_options.py | 10 ++++++---- picard/ui/ui_options_advanced.py | 10 ++++++---- picard/ui/ui_options_attached_profiles.py | 10 ++++++---- picard/ui/ui_options_cdlookup.py | 10 ++++++---- picard/ui/ui_options_cdlookup_select.py | 10 ++++++---- picard/ui/ui_options_cover.py | 10 ++++++---- picard/ui/ui_options_fingerprinting.py | 10 ++++++---- picard/ui/ui_options_general.py | 10 ++++++---- picard/ui/ui_options_genres.py | 10 ++++++---- picard/ui/ui_options_interface.py | 10 ++++++---- picard/ui/ui_options_interface_colors.py | 10 ++++++---- picard/ui/ui_options_interface_toolbar.py | 10 ++++++---- picard/ui/ui_options_interface_top_tags.py | 10 ++++++---- picard/ui/ui_options_maintenance.py | 10 ++++++---- picard/ui/ui_options_matching.py | 10 ++++++---- picard/ui/ui_options_metadata.py | 10 ++++++---- picard/ui/ui_options_network.py | 10 ++++++---- picard/ui/ui_options_plugins.py | 10 ++++++---- picard/ui/ui_options_profiles.py | 10 ++++++---- picard/ui/ui_options_ratings.py | 10 ++++++---- picard/ui/ui_options_releases.py | 10 ++++++---- picard/ui/ui_options_renaming.py | 10 ++++++---- picard/ui/ui_options_renaming_compat.py | 10 ++++++---- picard/ui/ui_options_script.py | 10 ++++++---- picard/ui/ui_options_tags.py | 10 ++++++---- picard/ui/ui_options_tags_compatibility_aac.py | 10 ++++++---- picard/ui/ui_options_tags_compatibility_ac3.py | 10 ++++++---- picard/ui/ui_options_tags_compatibility_id3.py | 10 ++++++---- picard/ui/ui_options_tags_compatibility_wave.py | 10 ++++++---- picard/ui/ui_passworddialog.py | 10 ++++++---- picard/ui/ui_provider_options_caa.py | 10 ++++++---- picard/ui/ui_provider_options_local.py | 10 ++++++---- picard/ui/ui_scripteditor.py | 10 ++++++---- picard/ui/ui_scripteditor_details.py | 10 ++++++---- picard/ui/ui_scripting_documentation_dialog.py | 10 ++++++---- picard/ui/ui_tagsfromfilenames.py | 10 ++++++---- picard/ui/ui_widget_taglisteditor.py | 10 ++++++---- picard/ui/ui_win_compat_dialog.py | 10 ++++++---- 45 files changed, 270 insertions(+), 180 deletions(-) diff --git a/picard/ui/ui_aboutdialog.py b/picard/ui/ui_aboutdialog.py index d770af22e21..f8d153545e3 100644 --- a/picard/ui/ui_aboutdialog.py +++ b/picard/ui/ui_aboutdialog.py @@ -5,10 +5,13 @@ # Automatically generated - do not edit. # Use `python setup.py build_ui` to update it. -from picard.i18n import gettext as _ - +from PyQt6 import ( + QtCore, + QtGui, + QtWidgets, +) -from PyQt6 import QtCore, QtGui, QtWidgets +from picard.i18n import gettext as _ class Ui_AboutDialog(object): @@ -83,6 +86,5 @@ def setupUi(self, AboutDialog): QtCore.QMetaObject.connectSlotsByName(AboutDialog) def retranslateUi(self, AboutDialog): - _translate = QtCore.QCoreApplication.translate AboutDialog.setWindowTitle(_("About Picard")) self.app_name.setText(_("MusicBrainz Picard")) diff --git a/picard/ui/ui_cdlookup.py b/picard/ui/ui_cdlookup.py index 8ebe57e064d..0afe731eb4b 100644 --- a/picard/ui/ui_cdlookup.py +++ b/picard/ui/ui_cdlookup.py @@ -5,10 +5,13 @@ # Automatically generated - do not edit. # Use `python setup.py build_ui` to update it. -from picard.i18n import gettext as _ - +from PyQt6 import ( + QtCore, + QtGui, + QtWidgets, +) -from PyQt6 import QtCore, QtGui, QtWidgets +from picard.i18n import gettext as _ class Ui_Dialog(object): @@ -85,7 +88,6 @@ def setupUi(self, Dialog): Dialog.setTabOrder(self.lookup_button, self.cancel_button) def retranslateUi(self, Dialog): - _translate = QtCore.QCoreApplication.translate Dialog.setWindowTitle(_("CD Lookup")) self.label.setText(_("The following releases on MusicBrainz match the CD:")) self.no_results_label.setText(_("No matching releases found for this disc.")) diff --git a/picard/ui/ui_edittagdialog.py b/picard/ui/ui_edittagdialog.py index eed87221491..58778666a05 100644 --- a/picard/ui/ui_edittagdialog.py +++ b/picard/ui/ui_edittagdialog.py @@ -5,10 +5,13 @@ # Automatically generated - do not edit. # Use `python setup.py build_ui` to update it. -from picard.i18n import gettext as _ - +from PyQt6 import ( + QtCore, + QtGui, + QtWidgets, +) -from PyQt6 import QtCore, QtGui, QtWidgets +from picard.i18n import gettext as _ class Ui_EditTagDialog(object): @@ -115,7 +118,6 @@ def setupUi(self, EditTagDialog): EditTagDialog.setTabOrder(self.remove_value, self.buttonbox) def retranslateUi(self, EditTagDialog): - _translate = QtCore.QCoreApplication.translate EditTagDialog.setWindowTitle(_("Edit Tag")) self.edit_value.setText(_("Edit value")) self.add_value.setText(_("Add value")) diff --git a/picard/ui/ui_exception_script_selector.py b/picard/ui/ui_exception_script_selector.py index 28c278d93a8..eec0d0c0df7 100644 --- a/picard/ui/ui_exception_script_selector.py +++ b/picard/ui/ui_exception_script_selector.py @@ -5,10 +5,13 @@ # Automatically generated - do not edit. # Use `python setup.py build_ui` to update it. -from picard.i18n import gettext as _ - +from PyQt6 import ( + QtCore, + QtGui, + QtWidgets, +) -from PyQt6 import QtCore, QtGui, QtWidgets +from picard.i18n import gettext as _ class Ui_ExceptionScriptSelector(object): @@ -105,7 +108,6 @@ def setupUi(self, ExceptionScriptSelector): QtCore.QMetaObject.connectSlotsByName(ExceptionScriptSelector) def retranslateUi(self, ExceptionScriptSelector): - _translate = QtCore.QCoreApplication.translate ExceptionScriptSelector.setWindowTitle(_("Exception Language Script Selector")) self.label.setText(_("Selected Scripts")) self.threshold_label.setText(_("Selected language script match threshold:")) diff --git a/picard/ui/ui_infodialog.py b/picard/ui/ui_infodialog.py index e4a462de45e..6cccc29007a 100644 --- a/picard/ui/ui_infodialog.py +++ b/picard/ui/ui_infodialog.py @@ -5,10 +5,13 @@ # Automatically generated - do not edit. # Use `python setup.py build_ui` to update it. -from picard.i18n import gettext as _ - +from PyQt6 import ( + QtCore, + QtGui, + QtWidgets, +) -from PyQt6 import QtCore, QtGui, QtWidgets +from picard.i18n import gettext as _ class Ui_InfoDialog(object): @@ -81,7 +84,6 @@ def setupUi(self, InfoDialog): InfoDialog.setTabOrder(self.tabWidget, self.buttonBox) def retranslateUi(self, InfoDialog): - _translate = QtCore.QCoreApplication.translate self.tabWidget.setTabText(self.tabWidget.indexOf(self.info_tab), _("&Info")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.error_tab), _("&Error")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.artwork_tab), _("A&rtwork")) diff --git a/picard/ui/ui_infostatus.py b/picard/ui/ui_infostatus.py index ab2ce22ae7f..70be8f63ffe 100644 --- a/picard/ui/ui_infostatus.py +++ b/picard/ui/ui_infostatus.py @@ -5,10 +5,13 @@ # Automatically generated - do not edit. # Use `python setup.py build_ui` to update it. -from picard.i18n import gettext as _ - +from PyQt6 import ( + QtCore, + QtGui, + QtWidgets, +) -from PyQt6 import QtCore, QtGui, QtWidgets +from picard.i18n import gettext as _ class Ui_InfoStatus(object): @@ -106,5 +109,4 @@ def setupUi(self, InfoStatus): QtCore.QMetaObject.connectSlotsByName(InfoStatus) def retranslateUi(self, InfoStatus): - _translate = QtCore.QCoreApplication.translate InfoStatus.setWindowTitle(_("Form")) diff --git a/picard/ui/ui_multi_locale_selector.py b/picard/ui/ui_multi_locale_selector.py index 83f87a64b0c..5020be7e111 100644 --- a/picard/ui/ui_multi_locale_selector.py +++ b/picard/ui/ui_multi_locale_selector.py @@ -5,10 +5,13 @@ # Automatically generated - do not edit. # Use `python setup.py build_ui` to update it. -from picard.i18n import gettext as _ - +from PyQt6 import ( + QtCore, + QtGui, + QtWidgets, +) -from PyQt6 import QtCore, QtGui, QtWidgets +from picard.i18n import gettext as _ class Ui_MultiLocaleSelector(object): @@ -85,7 +88,6 @@ def setupUi(self, MultiLocaleSelector): QtCore.QMetaObject.connectSlotsByName(MultiLocaleSelector) def retranslateUi(self, MultiLocaleSelector): - _translate = QtCore.QCoreApplication.translate MultiLocaleSelector.setWindowTitle(_("Locale Selector")) self.label.setText(_("Selected Locales")) self.move_up.setToolTip(_("Move selected locale up")) diff --git a/picard/ui/ui_options.py b/picard/ui/ui_options.py index d9fc95b7eaa..c0dd9c0af8d 100644 --- a/picard/ui/ui_options.py +++ b/picard/ui/ui_options.py @@ -5,10 +5,13 @@ # Automatically generated - do not edit. # Use `python setup.py build_ui` to update it. -from picard.i18n import gettext as _ - +from PyQt6 import ( + QtCore, + QtGui, + QtWidgets, +) -from PyQt6 import QtCore, QtGui, QtWidgets +from picard.i18n import gettext as _ class Ui_Dialog(object): @@ -50,5 +53,4 @@ def setupUi(self, Dialog): QtCore.QMetaObject.connectSlotsByName(Dialog) def retranslateUi(self, Dialog): - _translate = QtCore.QCoreApplication.translate Dialog.setWindowTitle(_("Options")) diff --git a/picard/ui/ui_options_advanced.py b/picard/ui/ui_options_advanced.py index b85c67e1b98..f64d3f67948 100644 --- a/picard/ui/ui_options_advanced.py +++ b/picard/ui/ui_options_advanced.py @@ -5,10 +5,13 @@ # Automatically generated - do not edit. # Use `python setup.py build_ui` to update it. -from picard.i18n import gettext as _ - +from PyQt6 import ( + QtCore, + QtGui, + QtWidgets, +) -from PyQt6 import QtCore, QtGui, QtWidgets +from picard.i18n import gettext as _ class Ui_AdvancedOptionsPage(object): @@ -138,7 +141,6 @@ def setupUi(self, AdvancedOptionsPage): AdvancedOptionsPage.setTabOrder(self.completeness_ignore_videos, self.completeness_ignore_data) def retranslateUi(self, AdvancedOptionsPage): - _translate = QtCore.QCoreApplication.translate self.groupBox.setTitle(_("Advanced options")) self.label_ignore_regex.setText(_("Ignore file paths matching the following regular expression:")) self.label_query_limit.setText(_("Maximum number of entities to return per MusicBrainz query")) diff --git a/picard/ui/ui_options_attached_profiles.py b/picard/ui/ui_options_attached_profiles.py index 221c1a490b4..b24cc5c969f 100644 --- a/picard/ui/ui_options_attached_profiles.py +++ b/picard/ui/ui_options_attached_profiles.py @@ -5,10 +5,13 @@ # Automatically generated - do not edit. # Use `python setup.py build_ui` to update it. -from picard.i18n import gettext as _ - +from PyQt6 import ( + QtCore, + QtGui, + QtWidgets, +) -from PyQt6 import QtCore, QtGui, QtWidgets +from picard.i18n import gettext as _ class Ui_AttachedProfilesDialog(object): @@ -34,5 +37,4 @@ def setupUi(self, AttachedProfilesDialog): QtCore.QMetaObject.connectSlotsByName(AttachedProfilesDialog) def retranslateUi(self, AttachedProfilesDialog): - _translate = QtCore.QCoreApplication.translate AttachedProfilesDialog.setWindowTitle(_("Profiles Attached to Options")) diff --git a/picard/ui/ui_options_cdlookup.py b/picard/ui/ui_options_cdlookup.py index 20fd5814d1e..64ea724956f 100644 --- a/picard/ui/ui_options_cdlookup.py +++ b/picard/ui/ui_options_cdlookup.py @@ -5,10 +5,13 @@ # Automatically generated - do not edit. # Use `python setup.py build_ui` to update it. -from picard.i18n import gettext as _ - +from PyQt6 import ( + QtCore, + QtGui, + QtWidgets, +) -from PyQt6 import QtCore, QtGui, QtWidgets +from picard.i18n import gettext as _ class Ui_CDLookupOptionsPage(object): @@ -40,6 +43,5 @@ def setupUi(self, CDLookupOptionsPage): QtCore.QMetaObject.connectSlotsByName(CDLookupOptionsPage) def retranslateUi(self, CDLookupOptionsPage): - _translate = QtCore.QCoreApplication.translate self.rename_files.setTitle(_("CD Lookup")) self.label_3.setText(_("CD-ROM device to use for lookups:")) diff --git a/picard/ui/ui_options_cdlookup_select.py b/picard/ui/ui_options_cdlookup_select.py index c2b8cb9d7e8..68d5bd53eb0 100644 --- a/picard/ui/ui_options_cdlookup_select.py +++ b/picard/ui/ui_options_cdlookup_select.py @@ -5,10 +5,13 @@ # Automatically generated - do not edit. # Use `python setup.py build_ui` to update it. -from picard.i18n import gettext as _ - +from PyQt6 import ( + QtCore, + QtGui, + QtWidgets, +) -from PyQt6 import QtCore, QtGui, QtWidgets +from picard.i18n import gettext as _ class Ui_CDLookupOptionsPage(object): @@ -47,6 +50,5 @@ def setupUi(self, CDLookupOptionsPage): QtCore.QMetaObject.connectSlotsByName(CDLookupOptionsPage) def retranslateUi(self, CDLookupOptionsPage): - _translate = QtCore.QCoreApplication.translate self.rename_files.setTitle(_("CD Lookup")) self.cd_lookup_.setText(_("Default CD-ROM drive to use for lookups:")) diff --git a/picard/ui/ui_options_cover.py b/picard/ui/ui_options_cover.py index 2e25ecd5fc8..6a57428959b 100644 --- a/picard/ui/ui_options_cover.py +++ b/picard/ui/ui_options_cover.py @@ -5,10 +5,13 @@ # Automatically generated - do not edit. # Use `python setup.py build_ui` to update it. -from picard.i18n import gettext as _ - +from PyQt6 import ( + QtCore, + QtGui, + QtWidgets, +) -from PyQt6 import QtCore, QtGui, QtWidgets +from picard.i18n import gettext as _ class Ui_CoverOptionsPage(object): @@ -95,7 +98,6 @@ def setupUi(self, CoverOptionsPage): QtCore.QMetaObject.connectSlotsByName(CoverOptionsPage) def retranslateUi(self, CoverOptionsPage): - _translate = QtCore.QCoreApplication.translate self.save_images_to_tags.setTitle(_("Embed cover images into tags")) self.cb_embed_front_only.setText(_("Embed only a single front image")) self.save_images_to_files.setTitle(_("Save cover images as separate files")) diff --git a/picard/ui/ui_options_fingerprinting.py b/picard/ui/ui_options_fingerprinting.py index 9ae0ed53f86..7978f781aa1 100644 --- a/picard/ui/ui_options_fingerprinting.py +++ b/picard/ui/ui_options_fingerprinting.py @@ -5,10 +5,13 @@ # Automatically generated - do not edit. # Use `python setup.py build_ui` to update it. -from picard.i18n import gettext as _ - +from PyQt6 import ( + QtCore, + QtGui, + QtWidgets, +) -from PyQt6 import QtCore, QtGui, QtWidgets +from picard.i18n import gettext as _ class Ui_FingerprintingOptionsPage(object): @@ -97,7 +100,6 @@ def setupUi(self, FingerprintingOptionsPage): QtCore.QMetaObject.connectSlotsByName(FingerprintingOptionsPage) def retranslateUi(self, FingerprintingOptionsPage): - _translate = QtCore.QCoreApplication.translate self.fingerprinting.setTitle(_("Audio Fingerprinting")) self.disable_fingerprinting.setText(_("Do not use audio fingerprinting")) self.use_acoustid.setText(_("Use AcoustID")) diff --git a/picard/ui/ui_options_general.py b/picard/ui/ui_options_general.py index 5eec8219781..2123045cc95 100644 --- a/picard/ui/ui_options_general.py +++ b/picard/ui/ui_options_general.py @@ -5,10 +5,13 @@ # Automatically generated - do not edit. # Use `python setup.py build_ui` to update it. -from picard.i18n import gettext as _ - +from PyQt6 import ( + QtCore, + QtGui, + QtWidgets, +) -from PyQt6 import QtCore, QtGui, QtWidgets +from picard.i18n import gettext as _ class Ui_GeneralOptionsPage(object): @@ -199,7 +202,6 @@ def setupUi(self, GeneralOptionsPage): GeneralOptionsPage.setTabOrder(self.update_check_days, self.update_level) def retranslateUi(self, GeneralOptionsPage): - _translate = QtCore.QCoreApplication.translate self.groupBox.setTitle(_("MusicBrainz Server")) self.label_4.setText(_("You have configured an unofficial MusicBrainz server. By default submissions of releases, recordings and disc IDs will go to the primary database on musicbrainz.org.")) self.use_server_for_submission.setText(_("Submit data to the configured server")) diff --git a/picard/ui/ui_options_genres.py b/picard/ui/ui_options_genres.py index 8f2badda686..9657bac0764 100644 --- a/picard/ui/ui_options_genres.py +++ b/picard/ui/ui_options_genres.py @@ -5,10 +5,13 @@ # Automatically generated - do not edit. # Use `python setup.py build_ui` to update it. -from picard.i18n import gettext as _ - +from PyQt6 import ( + QtCore, + QtGui, + QtWidgets, +) -from PyQt6 import QtCore, QtGui, QtWidgets +from picard.i18n import gettext as _ class Ui_GenresOptionsPage(object): @@ -119,7 +122,6 @@ def setupUi(self, GenresOptionsPage): QtCore.QMetaObject.connectSlotsByName(GenresOptionsPage) def retranslateUi(self, GenresOptionsPage): - _translate = QtCore.QCoreApplication.translate self.use_genres.setTitle(_("Use genres from MusicBrainz")) self.only_my_genres.setText(_("Use only my genres")) self.artists_genres.setText(_("Fall back on album\'s artists genres if no genres are found for the release or release group")) diff --git a/picard/ui/ui_options_interface.py b/picard/ui/ui_options_interface.py index 49c59014ee6..4c9c16a1d29 100644 --- a/picard/ui/ui_options_interface.py +++ b/picard/ui/ui_options_interface.py @@ -5,10 +5,13 @@ # Automatically generated - do not edit. # Use `python setup.py build_ui` to update it. -from picard.i18n import gettext as _ - +from PyQt6 import ( + QtCore, + QtGui, + QtWidgets, +) -from PyQt6 import QtCore, QtGui, QtWidgets +from picard.i18n import gettext as _ class Ui_InterfaceOptionsPage(object): @@ -118,7 +121,6 @@ def setupUi(self, InterfaceOptionsPage): InterfaceOptionsPage.setTabOrder(self.starting_directory_path, self.starting_directory_browse) def retranslateUi(self, InterfaceOptionsPage): - _translate = QtCore.QCoreApplication.translate self.groupBox.setTitle(_("Appearance")) self.toolbar_show_labels.setText(_("Show text labels under icons")) self.show_menu_icons.setText(_("Show icons in menus")) diff --git a/picard/ui/ui_options_interface_colors.py b/picard/ui/ui_options_interface_colors.py index 5ce3e9ec943..eff170bb0d1 100644 --- a/picard/ui/ui_options_interface_colors.py +++ b/picard/ui/ui_options_interface_colors.py @@ -5,10 +5,13 @@ # Automatically generated - do not edit. # Use `python setup.py build_ui` to update it. -from picard.i18n import gettext as _ - +from PyQt6 import ( + QtCore, + QtGui, + QtWidgets, +) -from PyQt6 import QtCore, QtGui, QtWidgets +from picard.i18n import gettext as _ class Ui_InterfaceColorsOptionsPage(object): @@ -49,5 +52,4 @@ def setupUi(self, InterfaceColorsOptionsPage): QtCore.QMetaObject.connectSlotsByName(InterfaceColorsOptionsPage) def retranslateUi(self, InterfaceColorsOptionsPage): - _translate = QtCore.QCoreApplication.translate self.colors.setTitle(_("Colors")) diff --git a/picard/ui/ui_options_interface_toolbar.py b/picard/ui/ui_options_interface_toolbar.py index 1f818f2fc9e..7902527db5b 100644 --- a/picard/ui/ui_options_interface_toolbar.py +++ b/picard/ui/ui_options_interface_toolbar.py @@ -5,10 +5,13 @@ # Automatically generated - do not edit. # Use `python setup.py build_ui` to update it. -from picard.i18n import gettext as _ - +from PyQt6 import ( + QtCore, + QtGui, + QtWidgets, +) -from PyQt6 import QtCore, QtGui, QtWidgets +from picard.i18n import gettext as _ class Ui_InterfaceToolbarOptionsPage(object): @@ -72,7 +75,6 @@ def setupUi(self, InterfaceToolbarOptionsPage): InterfaceToolbarOptionsPage.setTabOrder(self.down_button, self.remove_button) def retranslateUi(self, InterfaceToolbarOptionsPage): - _translate = QtCore.QCoreApplication.translate self.customize_toolbar_box.setTitle(_("Customize Action Toolbar")) self.add_button.setToolTip(_("Add a new button to Toolbar")) self.add_button.setText(_("Add Action")) diff --git a/picard/ui/ui_options_interface_top_tags.py b/picard/ui/ui_options_interface_top_tags.py index 1521a6a49a6..e79d5944ec9 100644 --- a/picard/ui/ui_options_interface_top_tags.py +++ b/picard/ui/ui_options_interface_top_tags.py @@ -5,10 +5,13 @@ # Automatically generated - do not edit. # Use `python setup.py build_ui` to update it. -from picard.i18n import gettext as _ - +from PyQt6 import ( + QtCore, + QtGui, + QtWidgets, +) -from PyQt6 import QtCore, QtGui, QtWidgets +from picard.i18n import gettext as _ class Ui_InterfaceTopTagsOptionsPage(object): @@ -37,6 +40,5 @@ def setupUi(self, InterfaceTopTagsOptionsPage): QtCore.QMetaObject.connectSlotsByName(InterfaceTopTagsOptionsPage) def retranslateUi(self, InterfaceTopTagsOptionsPage): - _translate = QtCore.QCoreApplication.translate self.top_tags_groupBox.setTitle(_("Show the below tags above all other tags in the metadata view")) from picard.ui.widgets.taglisteditor import TagListEditor diff --git a/picard/ui/ui_options_maintenance.py b/picard/ui/ui_options_maintenance.py index 3c5f5e71d6b..0bc5fcde695 100644 --- a/picard/ui/ui_options_maintenance.py +++ b/picard/ui/ui_options_maintenance.py @@ -5,10 +5,13 @@ # Automatically generated - do not edit. # Use `python setup.py build_ui` to update it. -from picard.i18n import gettext as _ - +from PyQt6 import ( + QtCore, + QtGui, + QtWidgets, +) -from PyQt6 import QtCore, QtGui, QtWidgets +from picard.i18n import gettext as _ class Ui_MaintenanceOptionsPage(object): @@ -86,7 +89,6 @@ def setupUi(self, MaintenanceOptionsPage): QtCore.QMetaObject.connectSlotsByName(MaintenanceOptionsPage) def retranslateUi(self, MaintenanceOptionsPage): - _translate = QtCore.QCoreApplication.translate self.label.setText(_("Configuration File:")) self.open_folder_button.setText(_("Open folder")) self.load_backup_button.setText(_("Load Backup")) diff --git a/picard/ui/ui_options_matching.py b/picard/ui/ui_options_matching.py index 1141ac6e65c..a98acdb18c6 100644 --- a/picard/ui/ui_options_matching.py +++ b/picard/ui/ui_options_matching.py @@ -5,10 +5,13 @@ # Automatically generated - do not edit. # Use `python setup.py build_ui` to update it. -from picard.i18n import gettext as _ - +from PyQt6 import ( + QtCore, + QtGui, + QtWidgets, +) -from PyQt6 import QtCore, QtGui, QtWidgets +from picard.i18n import gettext as _ class Ui_MatchingOptionsPage(object): @@ -71,7 +74,6 @@ def setupUi(self, MatchingOptionsPage): MatchingOptionsPage.setTabOrder(self.cluster_lookup_threshold, self.track_matching_threshold) def retranslateUi(self, MatchingOptionsPage): - _translate = QtCore.QCoreApplication.translate self.rename_files.setTitle(_("Thresholds")) self.label_6.setText(_("Minimal similarity for matching files to tracks:")) self.track_matching_threshold.setSuffix(_(" %")) diff --git a/picard/ui/ui_options_metadata.py b/picard/ui/ui_options_metadata.py index feba096dd00..5d98242eeca 100644 --- a/picard/ui/ui_options_metadata.py +++ b/picard/ui/ui_options_metadata.py @@ -5,10 +5,13 @@ # Automatically generated - do not edit. # Use `python setup.py build_ui` to update it. -from picard.i18n import gettext as _ - +from PyQt6 import ( + QtCore, + QtGui, + QtWidgets, +) -from PyQt6 import QtCore, QtGui, QtWidgets +from picard.i18n import gettext as _ class Ui_MetadataOptionsPage(object): @@ -129,7 +132,6 @@ def setupUi(self, MetadataOptionsPage): MetadataOptionsPage.setTabOrder(self.nat_name, self.nat_name_default) def retranslateUi(self, MetadataOptionsPage): - _translate = QtCore.QCoreApplication.translate self.metadata_groupbox.setTitle(_("Metadata")) self.translate_artist_names.setText(_("Translate artist names to these locales where possible:")) self.select_locales.setText(_("Select…")) diff --git a/picard/ui/ui_options_network.py b/picard/ui/ui_options_network.py index befd1a777ed..7369aae74e0 100644 --- a/picard/ui/ui_options_network.py +++ b/picard/ui/ui_options_network.py @@ -5,10 +5,13 @@ # Automatically generated - do not edit. # Use `python setup.py build_ui` to update it. -from picard.i18n import gettext as _ - +from PyQt6 import ( + QtCore, + QtGui, + QtWidgets, +) -from PyQt6 import QtCore, QtGui, QtWidgets +from picard.i18n import gettext as _ class Ui_NetworkOptionsPage(object): @@ -156,7 +159,6 @@ def setupUi(self, NetworkOptionsPage): NetworkOptionsPage.setTabOrder(self.browser_integration_port, self.browser_integration_localhost_only) def retranslateUi(self, NetworkOptionsPage): - _translate = QtCore.QCoreApplication.translate self.web_proxy.setTitle(_("Web Proxy")) self.proxy_type_http.setText(_("HTTP")) self.proxy_type_socks.setText(_("SOCKS")) diff --git a/picard/ui/ui_options_plugins.py b/picard/ui/ui_options_plugins.py index 6ecf847b2f7..0ec61bfe3e0 100644 --- a/picard/ui/ui_options_plugins.py +++ b/picard/ui/ui_options_plugins.py @@ -5,10 +5,13 @@ # Automatically generated - do not edit. # Use `python setup.py build_ui` to update it. -from picard.i18n import gettext as _ - +from PyQt6 import ( + QtCore, + QtGui, + QtWidgets, +) -from PyQt6 import QtCore, QtGui, QtWidgets +from picard.i18n import gettext as _ class Ui_PluginsOptionsPage(object): @@ -131,7 +134,6 @@ def setupUi(self, PluginsOptionsPage): PluginsOptionsPage.setTabOrder(self.reload_list_of_plugins, self.scrollArea) def retranslateUi(self, PluginsOptionsPage): - _translate = QtCore.QCoreApplication.translate self.groupBox_2.setTitle(_("Plugins")) self.plugins.headerItem().setText(0, _("Name")) self.plugins.headerItem().setText(1, _("Version")) diff --git a/picard/ui/ui_options_profiles.py b/picard/ui/ui_options_profiles.py index 42f3385f6a2..ac738285ea0 100644 --- a/picard/ui/ui_options_profiles.py +++ b/picard/ui/ui_options_profiles.py @@ -5,10 +5,13 @@ # Automatically generated - do not edit. # Use `python setup.py build_ui` to update it. -from picard.i18n import gettext as _ - +from PyQt6 import ( + QtCore, + QtGui, + QtWidgets, +) -from PyQt6 import QtCore, QtGui, QtWidgets +from picard.i18n import gettext as _ class Ui_ProfileEditorDialog(object): @@ -75,7 +78,6 @@ def setupUi(self, ProfileEditorDialog): QtCore.QMetaObject.connectSlotsByName(ProfileEditorDialog) def retranslateUi(self, ProfileEditorDialog): - _translate = QtCore.QCoreApplication.translate self.option_profiles_groupbox.setTitle(_("Option Profile(s)")) self.move_up_button.setToolTip(_("Move profile up")) self.move_down_button.setToolTip(_("Move profile down")) diff --git a/picard/ui/ui_options_ratings.py b/picard/ui/ui_options_ratings.py index 192d60aee5d..ed2aa1e5fb5 100644 --- a/picard/ui/ui_options_ratings.py +++ b/picard/ui/ui_options_ratings.py @@ -5,10 +5,13 @@ # Automatically generated - do not edit. # Use `python setup.py build_ui` to update it. -from picard.i18n import gettext as _ - +from PyQt6 import ( + QtCore, + QtGui, + QtWidgets, +) -from PyQt6 import QtCore, QtGui, QtWidgets +from picard.i18n import gettext as _ class Ui_RatingsOptionsPage(object): @@ -47,7 +50,6 @@ def setupUi(self, RatingsOptionsPage): QtCore.QMetaObject.connectSlotsByName(RatingsOptionsPage) def retranslateUi(self, RatingsOptionsPage): - _translate = QtCore.QCoreApplication.translate self.enable_ratings.setTitle(_("Enable track ratings")) self.label.setText(_("Picard saves the ratings together with an e-mail address identifying the user who did the rating. That way different ratings for different users can be stored in the files. Please specify the e-mail you want to use to save your ratings.")) self.ignore_tags_2.setText(_("E-mail:")) diff --git a/picard/ui/ui_options_releases.py b/picard/ui/ui_options_releases.py index aaa3d20cb82..7e49cb1ff7a 100644 --- a/picard/ui/ui_options_releases.py +++ b/picard/ui/ui_options_releases.py @@ -5,10 +5,13 @@ # Automatically generated - do not edit. # Use `python setup.py build_ui` to update it. -from picard.i18n import gettext as _ - +from PyQt6 import ( + QtCore, + QtGui, + QtWidgets, +) -from PyQt6 import QtCore, QtGui, QtWidgets +from picard.i18n import gettext as _ class Ui_ReleasesOptionsPage(object): @@ -110,7 +113,6 @@ def setupUi(self, ReleasesOptionsPage): QtCore.QMetaObject.connectSlotsByName(ReleasesOptionsPage) def retranslateUi(self, ReleasesOptionsPage): - _translate = QtCore.QCoreApplication.translate self.type_group.setTitle(_("Preferred release types")) self.country_group.setTitle(_("Preferred release countries")) self.add_countries.setToolTip(_("Add to preferred release countries")) diff --git a/picard/ui/ui_options_renaming.py b/picard/ui/ui_options_renaming.py index 57094e2ee9b..718931fed76 100644 --- a/picard/ui/ui_options_renaming.py +++ b/picard/ui/ui_options_renaming.py @@ -5,10 +5,13 @@ # Automatically generated - do not edit. # Use `python setup.py build_ui` to update it. -from picard.i18n import gettext as _ - +from PyQt6 import ( + QtCore, + QtGui, + QtWidgets, +) -from PyQt6 import QtCore, QtGui, QtWidgets +from picard.i18n import gettext as _ class Ui_RenamingOptionsPage(object): @@ -150,7 +153,6 @@ def setupUi(self, RenamingOptionsPage): RenamingOptionsPage.setTabOrder(self.example_filename_after, self.example_filename_sample_files_button) def retranslateUi(self, RenamingOptionsPage): - _translate = QtCore.QCoreApplication.translate self.move_files.setTitle(_("Move files when saving")) self.label.setText(_("Destination directory:")) self.move_files_to_browse.setText(_("Browse…")) diff --git a/picard/ui/ui_options_renaming_compat.py b/picard/ui/ui_options_renaming_compat.py index d592b05bc43..113586cd858 100644 --- a/picard/ui/ui_options_renaming_compat.py +++ b/picard/ui/ui_options_renaming_compat.py @@ -5,10 +5,13 @@ # Automatically generated - do not edit. # Use `python setup.py build_ui` to update it. -from picard.i18n import gettext as _ - +from PyQt6 import ( + QtCore, + QtGui, + QtWidgets, +) -from PyQt6 import QtCore, QtGui, QtWidgets +from picard.i18n import gettext as _ class Ui_RenamingCompatOptionsPage(object): @@ -89,7 +92,6 @@ def setupUi(self, RenamingCompatOptionsPage): RenamingCompatOptionsPage.setTabOrder(self.replace_spaces_with_underscores, self.replace_dir_separator) def retranslateUi(self, RenamingCompatOptionsPage): - _translate = QtCore.QCoreApplication.translate self.ascii_filenames.setText(_("Replace non-ASCII characters")) self.windows_compatibility.setText(_("Windows compatibility")) self.btn_windows_compatibility_change.setText(_("Customize…")) diff --git a/picard/ui/ui_options_script.py b/picard/ui/ui_options_script.py index c85525a3021..050a0058504 100644 --- a/picard/ui/ui_options_script.py +++ b/picard/ui/ui_options_script.py @@ -5,10 +5,13 @@ # Automatically generated - do not edit. # Use `python setup.py build_ui` to update it. -from picard.i18n import gettext as _ - +from PyQt6 import ( + QtCore, + QtGui, + QtWidgets, +) -from PyQt6 import QtCore, QtGui, QtWidgets +from picard.i18n import gettext as _ class Ui_ScriptingOptionsPage(object): @@ -119,7 +122,6 @@ def setupUi(self, ScriptingOptionsPage): ScriptingOptionsPage.setTabOrder(self.move_down_button, self.remove_button) def retranslateUi(self, ScriptingOptionsPage): - _translate = QtCore.QCoreApplication.translate self.enable_tagger_scripts.setTitle(_("Enable Tagger Script(s)")) self.label.setText(_("Tagger scripts that have been activated below will be executed automatically for each track of a release loaded from MusicBrainz.")) self.tagger_script.setPlaceholderText(_("Enter your tagger script here.")) diff --git a/picard/ui/ui_options_tags.py b/picard/ui/ui_options_tags.py index 2b1cc1e44e6..6110e69deed 100644 --- a/picard/ui/ui_options_tags.py +++ b/picard/ui/ui_options_tags.py @@ -5,10 +5,13 @@ # Automatically generated - do not edit. # Use `python setup.py build_ui` to update it. -from picard.i18n import gettext as _ - +from PyQt6 import ( + QtCore, + QtGui, + QtWidgets, +) -from PyQt6 import QtCore, QtGui, QtWidgets +from picard.i18n import gettext as _ class Ui_TagsOptionsPage(object): @@ -71,7 +74,6 @@ def setupUi(self, TagsOptionsPage): TagsOptionsPage.setTabOrder(self.remove_ape_from_mp3, self.fix_missing_seekpoints_flac) def retranslateUi(self, TagsOptionsPage): - _translate = QtCore.QCoreApplication.translate self.write_tags.setText(_("Write tags to files")) self.preserve_timestamps.setText(_("Preserve timestamps of tagged files")) self.before_tagging.setTitle(_("Before Tagging")) diff --git a/picard/ui/ui_options_tags_compatibility_aac.py b/picard/ui/ui_options_tags_compatibility_aac.py index 32d2ed42709..7a53682beb4 100644 --- a/picard/ui/ui_options_tags_compatibility_aac.py +++ b/picard/ui/ui_options_tags_compatibility_aac.py @@ -5,10 +5,13 @@ # Automatically generated - do not edit. # Use `python setup.py build_ui` to update it. -from picard.i18n import gettext as _ - +from PyQt6 import ( + QtCore, + QtGui, + QtWidgets, +) -from PyQt6 import QtCore, QtGui, QtWidgets +from picard.i18n import gettext as _ class Ui_TagsCompatibilityOptionsPage(object): @@ -45,7 +48,6 @@ def setupUi(self, TagsCompatibilityOptionsPage): QtCore.QMetaObject.connectSlotsByName(TagsCompatibilityOptionsPage) def retranslateUi(self, TagsCompatibilityOptionsPage): - _translate = QtCore.QCoreApplication.translate self.aac_tags.setTitle(_("AAC files")) self.info_label.setText(_("Picard can save APEv2 tags to pure AAC files, which by default do not support tagging. APEv2 tags in AAC are supported by some players, but players not supporting AAC files with APEv2 tags can have issues loading and playing those files. To deal with this you can choose whether to save tags to those files.")) self.aac_save_ape.setText(_("Save APEv2 tags")) diff --git a/picard/ui/ui_options_tags_compatibility_ac3.py b/picard/ui/ui_options_tags_compatibility_ac3.py index ddee75df79a..984c0679268 100644 --- a/picard/ui/ui_options_tags_compatibility_ac3.py +++ b/picard/ui/ui_options_tags_compatibility_ac3.py @@ -5,10 +5,13 @@ # Automatically generated - do not edit. # Use `python setup.py build_ui` to update it. -from picard.i18n import gettext as _ - +from PyQt6 import ( + QtCore, + QtGui, + QtWidgets, +) -from PyQt6 import QtCore, QtGui, QtWidgets +from picard.i18n import gettext as _ class Ui_TagsCompatibilityOptionsPage(object): @@ -45,7 +48,6 @@ def setupUi(self, TagsCompatibilityOptionsPage): QtCore.QMetaObject.connectSlotsByName(TagsCompatibilityOptionsPage) def retranslateUi(self, TagsCompatibilityOptionsPage): - _translate = QtCore.QCoreApplication.translate self.ac3_files.setTitle(_("AC3 files")) self.info_label.setText(_("Picard can save APEv2 tags to pure AC3 files, which by default do not support tagging. APEv2 tags in AC3 are supported by some players, but players not supporting AC3 files with APEv2 tags can have issues loading and playing those files. To deal with this you can choose whether to save tags to those files.")) self.ac3_save_ape.setText(_("Save APEv2 tags")) diff --git a/picard/ui/ui_options_tags_compatibility_id3.py b/picard/ui/ui_options_tags_compatibility_id3.py index 3ec9b55258b..414f9520919 100644 --- a/picard/ui/ui_options_tags_compatibility_id3.py +++ b/picard/ui/ui_options_tags_compatibility_id3.py @@ -5,10 +5,13 @@ # Automatically generated - do not edit. # Use `python setup.py build_ui` to update it. -from picard.i18n import gettext as _ - +from PyQt6 import ( + QtCore, + QtGui, + QtWidgets, +) -from PyQt6 import QtCore, QtGui, QtWidgets +from picard.i18n import gettext as _ class Ui_TagsCompatibilityOptionsPage(object): @@ -115,7 +118,6 @@ def setupUi(self, TagsCompatibilityOptionsPage): TagsCompatibilityOptionsPage.setTabOrder(self.itunes_compatible_grouping, self.write_id3v1) def retranslateUi(self, TagsCompatibilityOptionsPage): - _translate = QtCore.QCoreApplication.translate self.tag_compatibility.setTitle(_("ID3")) self.id3v2_version.setTitle(_("ID3v2 Version")) self.write_id3v24.setText(_("2.4")) diff --git a/picard/ui/ui_options_tags_compatibility_wave.py b/picard/ui/ui_options_tags_compatibility_wave.py index 4b484936a03..de53187fcfc 100644 --- a/picard/ui/ui_options_tags_compatibility_wave.py +++ b/picard/ui/ui_options_tags_compatibility_wave.py @@ -5,10 +5,13 @@ # Automatically generated - do not edit. # Use `python setup.py build_ui` to update it. -from picard.i18n import gettext as _ - +from PyQt6 import ( + QtCore, + QtGui, + QtWidgets, +) -from PyQt6 import QtCore, QtGui, QtWidgets +from picard.i18n import gettext as _ class Ui_TagsCompatibilityOptionsPage(object): @@ -56,7 +59,6 @@ def setupUi(self, TagsCompatibilityOptionsPage): QtCore.QMetaObject.connectSlotsByName(TagsCompatibilityOptionsPage) def retranslateUi(self, TagsCompatibilityOptionsPage): - _translate = QtCore.QCoreApplication.translate self.wave_files.setTitle(_("WAVE files")) self.label.setText(_("Picard will tag WAVE files using ID3v2 tags. This is not supported by all software. For compatibility with software which does not support ID3v2 tags in WAVE files additional RIFF INFO tags can be written to the files. RIFF INFO has only limited support for tags and character encodings.")) self.write_wave_riff_info.setText(_("Also include RIFF INFO tags in the files")) diff --git a/picard/ui/ui_passworddialog.py b/picard/ui/ui_passworddialog.py index d3423a66eae..5d8ba241d83 100644 --- a/picard/ui/ui_passworddialog.py +++ b/picard/ui/ui_passworddialog.py @@ -5,10 +5,13 @@ # Automatically generated - do not edit. # Use `python setup.py build_ui` to update it. -from picard.i18n import gettext as _ - +from PyQt6 import ( + QtCore, + QtGui, + QtWidgets, +) -from PyQt6 import QtCore, QtGui, QtWidgets +from picard.i18n import gettext as _ class Ui_PasswordDialog(object): @@ -62,7 +65,6 @@ def setupUi(self, PasswordDialog): QtCore.QMetaObject.connectSlotsByName(PasswordDialog) def retranslateUi(self, PasswordDialog): - _translate = QtCore.QCoreApplication.translate PasswordDialog.setWindowTitle(_("Authentication required")) self.label.setText(_("Username:")) self.label_2.setText(_("Password:")) diff --git a/picard/ui/ui_provider_options_caa.py b/picard/ui/ui_provider_options_caa.py index beeeb9a6047..0a6665b47ae 100644 --- a/picard/ui/ui_provider_options_caa.py +++ b/picard/ui/ui_provider_options_caa.py @@ -5,10 +5,13 @@ # Automatically generated - do not edit. # Use `python setup.py build_ui` to update it. -from picard.i18n import gettext as _ - +from PyQt6 import ( + QtCore, + QtGui, + QtWidgets, +) -from PyQt6 import QtCore, QtGui, QtWidgets +from picard.i18n import gettext as _ class Ui_CaaOptions(object): @@ -68,7 +71,6 @@ def setupUi(self, CaaOptions): CaaOptions.setTabOrder(self.cb_image_size, self.cb_approved_only) def retranslateUi(self, CaaOptions): - _translate = QtCore.QCoreApplication.translate CaaOptions.setWindowTitle(_("Form")) self.restrict_images_types.setText(_("Download only cover art images matching selected types")) self.select_caa_types.setText(_("Select types…")) diff --git a/picard/ui/ui_provider_options_local.py b/picard/ui/ui_provider_options_local.py index 065252a7b45..57fbbf20caa 100644 --- a/picard/ui/ui_provider_options_local.py +++ b/picard/ui/ui_provider_options_local.py @@ -5,10 +5,13 @@ # Automatically generated - do not edit. # Use `python setup.py build_ui` to update it. -from picard.i18n import gettext as _ - +from PyQt6 import ( + QtCore, + QtGui, + QtWidgets, +) -from PyQt6 import QtCore, QtGui, QtWidgets +from picard.i18n import gettext as _ class Ui_LocalOptions(object): @@ -52,7 +55,6 @@ def setupUi(self, LocalOptions): QtCore.QMetaObject.connectSlotsByName(LocalOptions) def retranslateUi(self, LocalOptions): - _translate = QtCore.QCoreApplication.translate LocalOptions.setWindowTitle(_("Form")) self.local_cover_regex_label.setText(_("Local cover art files match the following regular expression:")) self.local_cover_regex_default.setText(_("Default")) diff --git a/picard/ui/ui_scripteditor.py b/picard/ui/ui_scripteditor.py index 5b2aba08d16..a77738fb07c 100644 --- a/picard/ui/ui_scripteditor.py +++ b/picard/ui/ui_scripteditor.py @@ -5,10 +5,13 @@ # Automatically generated - do not edit. # Use `python setup.py build_ui` to update it. -from picard.i18n import gettext as _ - +from PyQt6 import ( + QtCore, + QtGui, + QtWidgets, +) -from PyQt6 import QtCore, QtGui, QtWidgets +from picard.i18n import gettext as _ class Ui_ScriptEditor(object): @@ -208,7 +211,6 @@ def setupUi(self, ScriptEditor): QtCore.QMetaObject.connectSlotsByName(ScriptEditor) def retranslateUi(self, ScriptEditor): - _translate = QtCore.QCoreApplication.translate self.label.setText(_("Selected file naming script:")) self.preset_naming_scripts.setToolTip(_("Select the file naming script to load into the editor")) self.label_2.setText(_("Title:")) diff --git a/picard/ui/ui_scripteditor_details.py b/picard/ui/ui_scripteditor_details.py index 2540682d614..74b4ad36280 100644 --- a/picard/ui/ui_scripteditor_details.py +++ b/picard/ui/ui_scripteditor_details.py @@ -5,10 +5,13 @@ # Automatically generated - do not edit. # Use `python setup.py build_ui` to update it. -from picard.i18n import gettext as _ - +from PyQt6 import ( + QtCore, + QtGui, + QtWidgets, +) -from PyQt6 import QtCore, QtGui, QtWidgets +from picard.i18n import gettext as _ class Ui_ScriptDetails(object): @@ -91,7 +94,6 @@ def setupUi(self, ScriptDetails): QtCore.QMetaObject.connectSlotsByName(ScriptDetails) def retranslateUi(self, ScriptDetails): - _translate = QtCore.QCoreApplication.translate ScriptDetails.setWindowTitle(_("File Naming Script Metadata")) self.script_version.setToolTip(_("Version number of the file naming script.")) self.label_4.setText(_("Last Updated:")) diff --git a/picard/ui/ui_scripting_documentation_dialog.py b/picard/ui/ui_scripting_documentation_dialog.py index 782300c0fc4..e1715c18bce 100644 --- a/picard/ui/ui_scripting_documentation_dialog.py +++ b/picard/ui/ui_scripting_documentation_dialog.py @@ -5,10 +5,13 @@ # Automatically generated - do not edit. # Use `python setup.py build_ui` to update it. -from picard.i18n import gettext as _ - +from PyQt6 import ( + QtCore, + QtGui, + QtWidgets, +) -from PyQt6 import QtCore, QtGui, QtWidgets +from picard.i18n import gettext as _ class Ui_ScriptingDocumentationDialog(object): @@ -36,5 +39,4 @@ def setupUi(self, ScriptingDocumentationDialog): QtCore.QMetaObject.connectSlotsByName(ScriptingDocumentationDialog) def retranslateUi(self, ScriptingDocumentationDialog): - _translate = QtCore.QCoreApplication.translate ScriptingDocumentationDialog.setWindowTitle(_("Scripting Documentation")) diff --git a/picard/ui/ui_tagsfromfilenames.py b/picard/ui/ui_tagsfromfilenames.py index e6ba5f1a1ca..bd0c7becdc5 100644 --- a/picard/ui/ui_tagsfromfilenames.py +++ b/picard/ui/ui_tagsfromfilenames.py @@ -5,10 +5,13 @@ # Automatically generated - do not edit. # Use `python setup.py build_ui` to update it. -from picard.i18n import gettext as _ - +from PyQt6 import ( + QtCore, + QtGui, + QtWidgets, +) -from PyQt6 import QtCore, QtGui, QtWidgets +from picard.i18n import gettext as _ class Ui_TagsFromFileNamesDialog(object): @@ -53,7 +56,6 @@ def setupUi(self, TagsFromFileNamesDialog): TagsFromFileNamesDialog.setTabOrder(self.replace_underscores, self.buttonbox) def retranslateUi(self, TagsFromFileNamesDialog): - _translate = QtCore.QCoreApplication.translate TagsFromFileNamesDialog.setWindowTitle(_("Convert File Names to Tags")) self.replace_underscores.setText(_("Replace underscores with spaces")) self.preview.setText(_("&Preview")) diff --git a/picard/ui/ui_widget_taglisteditor.py b/picard/ui/ui_widget_taglisteditor.py index f604389eeb4..07eb3ae76e4 100644 --- a/picard/ui/ui_widget_taglisteditor.py +++ b/picard/ui/ui_widget_taglisteditor.py @@ -5,10 +5,13 @@ # Automatically generated - do not edit. # Use `python setup.py build_ui` to update it. -from picard.i18n import gettext as _ - +from PyQt6 import ( + QtCore, + QtGui, + QtWidgets, +) -from PyQt6 import QtCore, QtGui, QtWidgets +from picard.i18n import gettext as _ class Ui_TagListEditor(object): @@ -68,7 +71,6 @@ def setupUi(self, TagListEditor): QtCore.QMetaObject.connectSlotsByName(TagListEditor) def retranslateUi(self, TagListEditor): - _translate = QtCore.QCoreApplication.translate TagListEditor.setWindowTitle(_("Form")) self.tags_add_btn.setText(_("Add new tag")) self.tags_move_up_btn.setToolTip(_("Move tag up")) diff --git a/picard/ui/ui_win_compat_dialog.py b/picard/ui/ui_win_compat_dialog.py index 6c22c53d001..0fc9efd81ee 100644 --- a/picard/ui/ui_win_compat_dialog.py +++ b/picard/ui/ui_win_compat_dialog.py @@ -5,10 +5,13 @@ # Automatically generated - do not edit. # Use `python setup.py build_ui` to update it. -from picard.i18n import gettext as _ - +from PyQt6 import ( + QtCore, + QtGui, + QtWidgets, +) -from PyQt6 import QtCore, QtGui, QtWidgets +from picard.i18n import gettext as _ class Ui_WinCompatDialog(object): @@ -191,7 +194,6 @@ def setupUi(self, WinCompatDialog): WinCompatDialog.setTabOrder(self.replace_pipe, self.replace_quotationmark) def retranslateUi(self, WinCompatDialog): - _translate = QtCore.QCoreApplication.translate WinCompatDialog.setWindowTitle(_("Windows compatibility")) self.label_header_character.setText(_("Character")) self.label_header_replace.setText(_("Replacement"))