eric7/Plugins/UiExtensionPlugins/Translator/ConfigurationPage/TranslatorPage.py

branch
eric7
changeset 8356
68ec9c3d4de5
parent 8318
962bce857696
child 8358
144a6b854f70
equal deleted inserted replaced
8355:8a7677a63c8d 8356:68ec9c3d4de5
8 """ 8 """
9 9
10 from PyQt6.QtCore import pyqtSlot, Qt 10 from PyQt6.QtCore import pyqtSlot, Qt
11 from PyQt6.QtWidgets import QListWidgetItem 11 from PyQt6.QtWidgets import QListWidgetItem
12 12
13 from E5Gui import E5MessageBox 13 from E5Gui import EricMessageBox
14 14
15 from Preferences.ConfigurationPages.ConfigurationPageBase import ( 15 from Preferences.ConfigurationPages.ConfigurationPageBase import (
16 ConfigurationPageBase 16 ConfigurationPageBase
17 ) 17 )
18 from .Ui_TranslatorPage import Ui_TranslatorPage 18 from .Ui_TranslatorPage import Ui_TranslatorPage
195 """ 195 """
196 if ( 196 if (
197 self.__enableLanguageWarning and 197 self.__enableLanguageWarning and
198 len(self.__checkedLanguageItems()) < 2 198 len(self.__checkedLanguageItems()) < 2
199 ): 199 ):
200 E5MessageBox.warning( 200 EricMessageBox.warning(
201 self, 201 self,
202 self.tr("Enabled Languages"), 202 self.tr("Enabled Languages"),
203 self.tr("""At least two languages should be selected to""" 203 self.tr("""At least two languages should be selected to"""
204 """ work correctly.""")) 204 """ work correctly."""))

eric ide

mercurial