diff options
Diffstat (limited to 'jfr_playoff/gui/frames')
-rw-r--r-- | jfr_playoff/gui/frames/translations.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/jfr_playoff/gui/frames/translations.py b/jfr_playoff/gui/frames/translations.py index 94af787..b705f59 100644 --- a/jfr_playoff/gui/frames/translations.py +++ b/jfr_playoff/gui/frames/translations.py @@ -24,10 +24,10 @@ class TranslationRow(RepeatableFrame): class TranslationConfigurationFrame(ScrollableFrame): def setTranslations(self, translations): - translations = copy.copy(PLAYOFF_I18N_DEFAULTS) - translations.update(translations) + default_translations = copy.copy(PLAYOFF_I18N_DEFAULTS) + default_translations.update(translations) values = [] - for value in translations.iteritems(): + for value in default_translations.iteritems(): values.append(value) self.repeater.setValue(values) @@ -35,6 +35,4 @@ class TranslationConfigurationFrame(ScrollableFrame): self.repeater = WidgetRepeater(container, TranslationRow) self.repeater.pack(side=tk.TOP, fill=tk.BOTH, expand=True) - self.setTranslations({}) - __all__ = ['TranslationConfigurationFrame'] |