Populate dropdown from list of systems
offlate/ui/new.py
65 | 65 | self.formLayout.addRow(QLabel(self.tr("Name:")), self.nameWidget) | |
66 | 66 | self.formLayout.addRow(QLabel(self.tr("Target Language:")), self.langWidget) | |
67 | 67 | self.combo = QComboBox() | |
68 | - | self.combo.addItem(self.tr("The Translation Project")) | |
69 | - | self.combo.addItem(self.tr("Transifex")) | |
70 | - | self.combo.addItem(self.tr("Gitlab")) | |
71 | - | self.combo.addItem(self.tr("Github")) | |
68 | + | for system in systems: | |
69 | + | self.combo.addItem(self.tr(system['name'])) | |
72 | 70 | self.combo.setCurrentIndex(self.system) | |
73 | 71 | self.formLayout.addRow(self.combo) | |
74 | 72 |