From 4b1a4db3dbe39b9145b19dfc11e2cab7febf1431 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Cort=C3=A9z?= Date: Wed, 6 May 2015 13:33:53 -0500 Subject: [PATCH] Now buffer list contains translatable strings --- src/wxUI/dialogs/configuration.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/wxUI/dialogs/configuration.py b/src/wxUI/dialogs/configuration.py index 25572f25..675b9fcf 100644 --- a/src/wxUI/dialogs/configuration.py +++ b/src/wxUI/dialogs/configuration.py @@ -124,13 +124,13 @@ class other_buffers(wx.Panel): def move_up(self, *args, **kwargs): current = self.buffers.get_selected() if current == -1: - output.speak("Select a buffer first.",True) + output.speak(_(u"Select a buffer first."), True) return False - if self.buffers.get_text_column(current, 1) == 'Hide': - output.speak("The buffer is hidden, show it first.",True) + if self.buffers.get_text_column(current, 1) == _(u"Hide"): + output.speak(_(u"The buffer is hidden, show it first."), True) return False if current <= 0: - output.speak("The buffer is already at the top of the list.",True) + output.speak(_(u"The buffer is already at the top of the list."), True) return false current_text = self.buffers.get_text_column(self.buffers.get_selected(), 0) current_text_state = self.buffers.get_text_column(self.buffers.get_selected(), 1) @@ -144,13 +144,13 @@ class other_buffers(wx.Panel): def move_down(self, *args, **kwargs): current = self.buffers.get_selected() if current == -1: - output.speak("Select a buffer first.",True) + output.speak(_(u"Select a buffer first."), True) return False - if self.buffers.get_text_column(current, 1) == 'Hide': - output.speak("The buffer is hidden, show it first.",True) + if self.buffers.get_text_column(current, 1) == _(u"Hide"): + output.speak(_(u"The buffer is hidden, show it first."), True) return False if current >= self.buffers.get_count(): - output.speak("The buffer is already at the bottom of the list.",True) + output.speak(_(u"The buffer is already at the bottom of the list."), True) return false current_text = self.buffers.get_text_column(self.buffers.get_selected(), 0) current_text_state = self.buffers.get_text_column(self.buffers.get_selected(), 1)