Populate dropdown from list of systems

Julien LepillerSun Dec 13 02:44:26+0100 2020

2ee26f2

Populate dropdown from list of systems

offlate/ui/new.py

6565
        self.formLayout.addRow(QLabel(self.tr("Name:")), self.nameWidget)
6666
        self.formLayout.addRow(QLabel(self.tr("Target Language:")), self.langWidget)
6767
        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']))
7270
        self.combo.setCurrentIndex(self.system)
7371
        self.formLayout.addRow(self.combo)
7472