Fix plural handling

Julien LepillerWed Jun 20 23:30:04+0200 2018

3737b67

Fix plural handling

offlate/systems/entry.py

2020
    def update(self, index, content):
2121
        self.msgstrs[index] = content
2222
23+
    def get(self, index):
24+
        return self.msgstrs[index]
25+
2326
class POEntry(Entry):
2427
    def __init__(self, entry):
2528
        msgids = [entry.msgid]

offlate/window.py

154154
            for msgstr in data.msgstrs:
155155
                data.update(i, self.msgstr.widget(i).toPlainText())
156156
                i=i+1
157-
            item.setText(1, data.msgstr_plural[0])
157+
            item.setText(1, data.get(0))
158158
159159
    def save(self):
160160
        self.project.save()