# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'translator_dlg.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again.  Do not edit this file unless you know what you are doing.


from mnemosyne.libmnemosyne.gui_translator import _
from PyQt5 import QtCore, QtGui, QtWidgets


class Ui_TranslatorDlg(object):
    def setupUi(self, TranslatorDlg):
        TranslatorDlg.setObjectName("TranslatorDlg")
        TranslatorDlg.resize(455, 311)
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(TranslatorDlg)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.label = QtWidgets.QLabel(TranslatorDlg)
        self.label.setObjectName("label")
        self.verticalLayout.addWidget(self.label)
        self.foreign_text = QtWidgets.QTextEdit(TranslatorDlg)
        self.foreign_text.setAcceptRichText(False)
        self.foreign_text.setObjectName("foreign_text")
        self.verticalLayout.addWidget(self.foreign_text)
        self.target_label = QtWidgets.QLabel(TranslatorDlg)
        self.target_label.setObjectName("target_label")
        self.verticalLayout.addWidget(self.target_label)
        self.target_languages = QtWidgets.QComboBox(TranslatorDlg)
        self.target_languages.setObjectName("target_languages")
        self.verticalLayout.addWidget(self.target_languages)
        self.label_2 = QtWidgets.QLabel(TranslatorDlg)
        self.label_2.setObjectName("label_2")
        self.verticalLayout.addWidget(self.label_2)
        self.translated_text = QtWidgets.QTextEdit(TranslatorDlg)
        self.translated_text.setObjectName("translated_text")
        self.verticalLayout.addWidget(self.translated_text)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.preview_button = QtWidgets.QPushButton(TranslatorDlg)
        self.preview_button.setObjectName("preview_button")
        self.horizontalLayout_2.addWidget(self.preview_button)
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem)
        self.insert_button = QtWidgets.QPushButton(TranslatorDlg)
        self.insert_button.setDefault(True)
        self.insert_button.setObjectName("insert_button")
        self.horizontalLayout_2.addWidget(self.insert_button)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem1)
        self.cancel_button = QtWidgets.QPushButton(TranslatorDlg)
        self.cancel_button.setObjectName("cancel_button")
        self.horizontalLayout_2.addWidget(self.cancel_button)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.verticalLayout_2.addLayout(self.verticalLayout)

        self.retranslateUi(TranslatorDlg)
        self.insert_button.clicked.connect(TranslatorDlg.accept)
        self.cancel_button.clicked.connect(TranslatorDlg.reject)
        self.preview_button.clicked.connect(TranslatorDlg.preview)
        self.foreign_text.textChanged.connect(TranslatorDlg.foreign_text_changed)
        QtCore.QMetaObject.connectSlotsByName(TranslatorDlg)

    def retranslateUi(self, TranslatorDlg):
        _translate = QtCore.QCoreApplication.translate
        TranslatorDlg.setWindowTitle(_('Translate'))
        self.label.setText(_('Foreign text to translate:'))
        self.target_label.setText(_('Target language:'))
        self.label_2.setText(_('Translation:'))
        self.preview_button.setText(_('Preview'))
        self.insert_button.setText(_('Insert'))
        self.cancel_button.setText(_('Cancel'))
