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.""")) |