Project/FiletypeAssociationDialog.py

branch
Py2 comp.
changeset 3484
645c12de6b0c
parent 3178
f25fc1364c88
parent 3190
a9a94491c4fd
child 3656
441956d8fce5
equal deleted inserted replaced
3456:96232974dcdb 3484:645c12de6b0c
35 0, Qt.AscendingOrder) 35 0, Qt.AscendingOrder)
36 36
37 # keep these lists in sync 37 # keep these lists in sync
38 self.filetypes = ["SOURCES", "FORMS", "TRANSLATIONS", "RESOURCES", 38 self.filetypes = ["SOURCES", "FORMS", "TRANSLATIONS", "RESOURCES",
39 "INTERFACES", "OTHERS", "__IGNORE__"] 39 "INTERFACES", "OTHERS", "__IGNORE__"]
40 self.filetypeStrings = [self.trUtf8("Sources"), self.trUtf8("Forms"), 40 self.filetypeStrings = [self.tr("Sources"), self.tr("Forms"),
41 self.trUtf8("Translations"), 41 self.tr("Translations"),
42 self.trUtf8("Resources"), 42 self.tr("Resources"),
43 self.trUtf8("Interfaces"), 43 self.tr("Interfaces"),
44 self.trUtf8("Others"), 44 self.tr("Others"),
45 self.trUtf8("Ignore")] 45 self.tr("Ignore")]
46 self.filetypeCombo.addItems(self.filetypeStrings) 46 self.filetypeCombo.addItems(self.filetypeStrings)
47 47
48 self.project = project 48 self.project = project
49 for pattern, filetype in list(self.project.pdata["FILETYPES"].items()): 49 for pattern, filetype in list(self.project.pdata["FILETYPES"].items()):
50 try: 50 try:

eric ide

mercurial