# Form implementation generated from reading ui file 'ui/options_metadata.ui'
#
# Created by: PyQt6 UI code generator 6.9.1
#
# Automatically generated - do not edit.
# Use `python setup.py build_ui` to update it.

from PyQt6 import (
    QtCore,
    QtGui,
    QtWidgets,
)

from picard.i18n import gettext as _


class Ui_MetadataOptionsPage(object):
    def setupUi(self, MetadataOptionsPage):
        MetadataOptionsPage.setObjectName("MetadataOptionsPage")
        MetadataOptionsPage.resize(423, 655)
        self.verticalLayout = QtWidgets.QVBoxLayout(MetadataOptionsPage)
        self.verticalLayout.setObjectName("verticalLayout")
        self.metadata_groupbox = QtWidgets.QGroupBox(parent=MetadataOptionsPage)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.metadata_groupbox.sizePolicy().hasHeightForWidth())
        self.metadata_groupbox.setSizePolicy(sizePolicy)
        self.metadata_groupbox.setAlignment(QtCore.Qt.AlignmentFlag.AlignLeading|QtCore.Qt.AlignmentFlag.AlignLeft|QtCore.Qt.AlignmentFlag.AlignTop)
        self.metadata_groupbox.setObjectName("metadata_groupbox")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.metadata_groupbox)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.translation_prompt_label = QtWidgets.QLabel(parent=self.metadata_groupbox)
        self.translation_prompt_label.setObjectName("translation_prompt_label")
        self.verticalLayout_3.addWidget(self.translation_prompt_label)
        self.translation_options_layout = QtWidgets.QVBoxLayout()
        self.translation_options_layout.setContentsMargins(20, -1, -1, -1)
        self.translation_options_layout.setObjectName("translation_options_layout")
        self.translate_artist_names = QtWidgets.QCheckBox(parent=self.metadata_groupbox)
        self.translate_artist_names.setObjectName("translate_artist_names")
        self.translation_options_layout.addWidget(self.translate_artist_names)
        self.translate_album_titles = QtWidgets.QCheckBox(parent=self.metadata_groupbox)
        self.translate_album_titles.setObjectName("translate_album_titles")
        self.translation_options_layout.addWidget(self.translate_album_titles)
        self.translate_track_titles = QtWidgets.QCheckBox(parent=self.metadata_groupbox)
        self.translate_track_titles.setObjectName("translate_track_titles")
        self.translation_options_layout.addWidget(self.translate_track_titles)
        self.verticalLayout_3.addLayout(self.translation_options_layout)
        self.translation_language_containers = QtWidgets.QVBoxLayout()
        self.translation_language_containers.setSpacing(3)
        self.translation_language_containers.setObjectName("translation_language_containers")
        self.locales_container = QtWidgets.QVBoxLayout()
        self.locales_container.setSpacing(4)
        self.locales_container.setObjectName("locales_container")
        self.locales_prompt_label = QtWidgets.QLabel(parent=self.metadata_groupbox)
        self.locales_prompt_label.setObjectName("locales_prompt_label")
        self.locales_container.addWidget(self.locales_prompt_label)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setContentsMargins(-1, 0, -1, 0)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.selected_locales = QtWidgets.QLineEdit(parent=self.metadata_groupbox)
        self.selected_locales.setReadOnly(True)
        self.selected_locales.setObjectName("selected_locales")
        self.horizontalLayout.addWidget(self.selected_locales)
        self.select_locales = QtWidgets.QPushButton(parent=self.metadata_groupbox)
        self.select_locales.setObjectName("select_locales")
        self.horizontalLayout.addWidget(self.select_locales)
        self.locales_container.addLayout(self.horizontalLayout)
        self.translation_language_containers.addLayout(self.locales_container)
        self.scripts_container = QtWidgets.QVBoxLayout()
        self.scripts_container.setSpacing(4)
        self.scripts_container.setObjectName("scripts_container")
        self.translate_artist_names_script_exception = QtWidgets.QCheckBox(parent=self.metadata_groupbox)
        self.translate_artist_names_script_exception.setObjectName("translate_artist_names_script_exception")
        self.scripts_container.addWidget(self.translate_artist_names_script_exception)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setContentsMargins(-1, 0, -1, 0)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.selected_scripts = QtWidgets.QLineEdit(parent=self.metadata_groupbox)
        self.selected_scripts.setReadOnly(True)
        self.selected_scripts.setObjectName("selected_scripts")
        self.horizontalLayout_4.addWidget(self.selected_scripts)
        self.select_scripts = QtWidgets.QPushButton(parent=self.metadata_groupbox)
        self.select_scripts.setObjectName("select_scripts")
        self.horizontalLayout_4.addWidget(self.select_scripts)
        self.scripts_container.addLayout(self.horizontalLayout_4)
        self.translation_language_containers.addLayout(self.scripts_container)
        self.verticalLayout_3.addLayout(self.translation_language_containers)
        self.standardize_artists = QtWidgets.QCheckBox(parent=self.metadata_groupbox)
        self.standardize_artists.setObjectName("standardize_artists")
        self.verticalLayout_3.addWidget(self.standardize_artists)
        self.standardize_instruments = QtWidgets.QCheckBox(parent=self.metadata_groupbox)
        self.standardize_instruments.setObjectName("standardize_instruments")
        self.verticalLayout_3.addWidget(self.standardize_instruments)
        self.standardize_vocals = QtWidgets.QCheckBox(parent=self.metadata_groupbox)
        self.standardize_vocals.setObjectName("standardize_vocals")
        self.verticalLayout_3.addWidget(self.standardize_vocals)
        self.convert_punctuation = QtWidgets.QCheckBox(parent=self.metadata_groupbox)
        self.convert_punctuation.setObjectName("convert_punctuation")
        self.verticalLayout_3.addWidget(self.convert_punctuation)
        self.release_ars = QtWidgets.QCheckBox(parent=self.metadata_groupbox)
        self.release_ars.setObjectName("release_ars")
        self.verticalLayout_3.addWidget(self.release_ars)
        self.track_ars = QtWidgets.QCheckBox(parent=self.metadata_groupbox)
        self.track_ars.setObjectName("track_ars")
        self.verticalLayout_3.addWidget(self.track_ars)
        self.guess_tracknumber_and_title = QtWidgets.QCheckBox(parent=self.metadata_groupbox)
        self.guess_tracknumber_and_title.setObjectName("guess_tracknumber_and_title")
        self.verticalLayout_3.addWidget(self.guess_tracknumber_and_title)
        self.verticalLayout.addWidget(self.metadata_groupbox)
        self.custom_fields_groupbox = QtWidgets.QGroupBox(parent=MetadataOptionsPage)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.custom_fields_groupbox.sizePolicy().hasHeightForWidth())
        self.custom_fields_groupbox.setSizePolicy(sizePolicy)
        self.custom_fields_groupbox.setMinimumSize(QtCore.QSize(397, 0))
        self.custom_fields_groupbox.setObjectName("custom_fields_groupbox")
        self.gridlayout = QtWidgets.QGridLayout(self.custom_fields_groupbox)
        self.gridlayout.setSpacing(2)
        self.gridlayout.setObjectName("gridlayout")
        self.label_6 = QtWidgets.QLabel(parent=self.custom_fields_groupbox)
        self.label_6.setObjectName("label_6")
        self.gridlayout.addWidget(self.label_6, 0, 0, 1, 2)
        self.label_7 = QtWidgets.QLabel(parent=self.custom_fields_groupbox)
        self.label_7.setObjectName("label_7")
        self.gridlayout.addWidget(self.label_7, 2, 0, 1, 2)
        self.nat_name = QtWidgets.QLineEdit(parent=self.custom_fields_groupbox)
        self.nat_name.setObjectName("nat_name")
        self.gridlayout.addWidget(self.nat_name, 3, 0, 1, 1)
        self.nat_name_default = QtWidgets.QPushButton(parent=self.custom_fields_groupbox)
        self.nat_name_default.setObjectName("nat_name_default")
        self.gridlayout.addWidget(self.nat_name_default, 3, 1, 1, 1)
        self.va_name_default = QtWidgets.QPushButton(parent=self.custom_fields_groupbox)
        self.va_name_default.setObjectName("va_name_default")
        self.gridlayout.addWidget(self.va_name_default, 1, 1, 1, 1)
        self.va_name = QtWidgets.QLineEdit(parent=self.custom_fields_groupbox)
        self.va_name.setObjectName("va_name")
        self.gridlayout.addWidget(self.va_name, 1, 0, 1, 1)
        self.verticalLayout.addWidget(self.custom_fields_groupbox)
        spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
        self.verticalLayout.addItem(spacerItem)
        self.label_6.setBuddy(self.va_name_default)
        self.label_7.setBuddy(self.nat_name_default)

        self.retranslateUi(MetadataOptionsPage)
        QtCore.QMetaObject.connectSlotsByName(MetadataOptionsPage)
        MetadataOptionsPage.setTabOrder(self.translate_artist_names, self.translate_album_titles)
        MetadataOptionsPage.setTabOrder(self.translate_album_titles, self.translate_track_titles)
        MetadataOptionsPage.setTabOrder(self.translate_track_titles, self.selected_locales)
        MetadataOptionsPage.setTabOrder(self.selected_locales, self.select_locales)
        MetadataOptionsPage.setTabOrder(self.select_locales, self.translate_artist_names_script_exception)
        MetadataOptionsPage.setTabOrder(self.translate_artist_names_script_exception, self.selected_scripts)
        MetadataOptionsPage.setTabOrder(self.selected_scripts, self.select_scripts)
        MetadataOptionsPage.setTabOrder(self.select_scripts, self.standardize_artists)
        MetadataOptionsPage.setTabOrder(self.standardize_artists, self.standardize_instruments)
        MetadataOptionsPage.setTabOrder(self.standardize_instruments, self.standardize_vocals)
        MetadataOptionsPage.setTabOrder(self.standardize_vocals, self.convert_punctuation)
        MetadataOptionsPage.setTabOrder(self.convert_punctuation, self.release_ars)
        MetadataOptionsPage.setTabOrder(self.release_ars, self.track_ars)
        MetadataOptionsPage.setTabOrder(self.track_ars, self.guess_tracknumber_and_title)
        MetadataOptionsPage.setTabOrder(self.guess_tracknumber_and_title, self.va_name)
        MetadataOptionsPage.setTabOrder(self.va_name, self.va_name_default)
        MetadataOptionsPage.setTabOrder(self.va_name_default, self.nat_name)
        MetadataOptionsPage.setTabOrder(self.nat_name, self.nat_name_default)

    def retranslateUi(self, MetadataOptionsPage):
        self.metadata_groupbox.setTitle(_("Metadata"))
        self.translation_prompt_label.setText(_("Translate names when available:"))
        self.translate_artist_names.setText(_("Artist names"))
        self.translate_album_titles.setText(_("Album titles"))
        self.translate_track_titles.setText(_("Track titles"))
        self.locales_prompt_label.setText(_("Preferred locales:"))
        self.select_locales.setText(_("Select…"))
        self.translate_artist_names_script_exception.setText(_("Ignore name translation for these language scripts:"))
        self.select_scripts.setText(_("Select…"))
        self.standardize_artists.setText(_("Use standardized artist names"))
        self.standardize_instruments.setText(_("Use standardized instrument credits"))
        self.standardize_vocals.setText(_("Use standardized vocal credits"))
        self.convert_punctuation.setText(_("Convert Unicode punctuation characters to ASCII"))
        self.release_ars.setText(_("Use release relationships"))
        self.track_ars.setText(_("Use track relationships"))
        self.guess_tracknumber_and_title.setText(_("Guess track number and title from filename if empty"))
        self.custom_fields_groupbox.setTitle(_("Custom Fields"))
        self.label_6.setText(_("Various artists:"))
        self.label_7.setText(_("Standalone recordings:"))
        self.nat_name_default.setText(_("Default"))
        self.va_name_default.setText(_("Default"))
