Fix plural handling
offlate/systems/entry.py
20 | 20 | def update(self, index, content): | |
21 | 21 | self.msgstrs[index] = content | |
22 | 22 | ||
23 | + | def get(self, index): | |
24 | + | return self.msgstrs[index] | |
25 | + | ||
23 | 26 | class POEntry(Entry): | |
24 | 27 | def __init__(self, entry): | |
25 | 28 | msgids = [entry.msgid] |
offlate/window.py
154 | 154 | for msgstr in data.msgstrs: | |
155 | 155 | data.update(i, self.msgstr.widget(i).toPlainText()) | |
156 | 156 | i=i+1 | |
157 | - | item.setText(1, data.msgstr_plural[0]) | |
157 | + | item.setText(1, data.get(0)) | |
158 | 158 | ||
159 | 159 | def save(self): | |
160 | 160 | self.project.save() |