QScintilla/Exporters/__init__.py

changeset 3656
441956d8fce5
parent 3178
f25fc1364c88
child 4021
195a471c327b
equal deleted inserted replaced
3654:ffeb85cdc72d 3656:441956d8fce5
7 Package implementing exporters for various file formats. 7 Package implementing exporters for various file formats.
8 """ 8 """
9 9
10 from __future__ import unicode_literals 10 from __future__ import unicode_literals
11 11
12 from PyQt4.QtGui import QApplication 12 from PyQt5.QtCore import QCoreApplication
13 13
14 14
15 def getSupportedFormats(): 15 def getSupportedFormats():
16 """ 16 """
17 Module function to get a dictionary of supported exporters. 17 Module function to get a dictionary of supported exporters.
19 @return dictionary of supported exporters. The keys are the 19 @return dictionary of supported exporters. The keys are the
20 internal format names. The items are the display strings 20 internal format names. The items are the display strings
21 for the exporters (string) 21 for the exporters (string)
22 """ 22 """
23 supportedFormats = { 23 supportedFormats = {
24 "HTML": QApplication.translate('Exporters', "HTML"), 24 "HTML": QCoreApplication.translate('Exporters', "HTML"),
25 "RTF": QApplication.translate('Exporters', "RTF"), 25 "RTF": QCoreApplication.translate('Exporters', "RTF"),
26 "PDF": QApplication.translate('Exporters', "PDF"), 26 "PDF": QCoreApplication.translate('Exporters', "PDF"),
27 "TeX": QApplication.translate('Exporters', "TeX"), 27 "TeX": QCoreApplication.translate('Exporters', "TeX"),
28 "ODT": QApplication.translate('Exporters', "ODT"), 28 "ODT": QCoreApplication.translate('Exporters', "ODT"),
29 } 29 }
30 30
31 return supportedFormats 31 return supportedFormats
32 32
33 33

eric ide

mercurial