ProjectFlask/FlaskBabelExtension/PyBabelProjectExtension.py

branch
eric7
changeset 84
f39230b845e4
parent 83
d8788dc3442f
child 85
fcb5126077b1
equal deleted inserted replaced
83:d8788dc3442f 84:f39230b845e4
87 self, 87 self,
88 "flask_install_pybabel", 88 "flask_install_pybabel",
89 ) 89 )
90 self.pybabelInstallAct.setStatusTip( 90 self.pybabelInstallAct.setStatusTip(
91 self.tr( 91 self.tr(
92 "Installs the flask-babel extension into the configured" " environment" 92 "Installs the flask-babel extension into the configured environment"
93 ) 93 )
94 ) 94 )
95 self.pybabelInstallAct.setWhatsThis( 95 self.pybabelInstallAct.setWhatsThis(
96 self.tr( 96 self.tr(
97 """<b>Install flask-babel</b>""" 97 """<b>Install flask-babel</b>"""
444 if not started: 444 if not started:
445 EricMessageBox.critical( 445 EricMessageBox.critical(
446 None, 446 None,
447 self.tr("Process Generation Error"), 447 self.tr("Process Generation Error"),
448 self.tr( 448 self.tr(
449 "The translations editor process ({0}) could" " not be started." 449 "The translations editor process ({0}) could not be started."
450 ).format(os.path.basename(editor)), 450 ).format(os.path.basename(editor)),
451 ) 451 )
452 452
453 def extractMessages(self): 453 def extractMessages(self):
454 """ 454 """
521 if res: 521 if res:
522 dlg.exec() 522 dlg.exec()
523 523
524 self.__ericProject.appendFile(langFile) 524 self.__ericProject.appendFile(langFile)
525 525
526 def compileCatalogs(self, filenames): 526 def compileCatalogs(self, filenames): # noqa: U100
527 """ 527 """
528 Public method to compile the message catalogs. 528 Public method to compile the message catalogs.
529 529
530 @param filenames list of filenames (not used) 530 @param filenames list of filenames (not used)
531 @type list of str 531 @type list of str
615 for fileName in entry[2]: 615 for fileName in entry[2]:
616 fullName = os.path.join(entry[0], fileName) 616 fullName = os.path.join(entry[0], fileName)
617 if fullName.endswith(".mo"): 617 if fullName.endswith(".mo"):
618 self.__ericProject.appendFile(fullName) 618 self.__ericProject.appendFile(fullName)
619 619
620 def updateCatalogs(self, filenames, withObsolete=False): 620 def updateCatalogs(self, filenames, withObsolete=False): # noqa: U100
621 """ 621 """
622 Public method to update the message catalogs. 622 Public method to update the message catalogs.
623 623
624 @param filenames list of filenames (not used) 624 @param filenames list of filenames (not used)
625 @type list of str 625 @type list of str

eric ide

mercurial