From 18916ecb7f87ac50d9a498bdcbda9d367e955aae Mon Sep 17 00:00:00 2001 From: "Paul W. Frields" Date: Fri, 18 Mar 2011 18:19:36 -0400 Subject: Move strings from GtkBuilder file to Python code --- pulsecaster/data/pulsecaster.ui | 7 ------- pulsecaster/ui.py | 17 +++++++++++++++++ setup.py | 1 - 3 files changed, 17 insertions(+), 8 deletions(-) diff --git a/pulsecaster/data/pulsecaster.ui b/pulsecaster/data/pulsecaster.ui index 1041c74..e52e36e 100644 --- a/pulsecaster/data/pulsecaster.ui +++ b/pulsecaster/data/pulsecaster.ui @@ -35,7 +35,6 @@ True 0 - <big><big><b><i>Important notice</i></b></big></big> True @@ -48,7 +47,6 @@ True - This program can be used to record speech from remote locations. You are responsible for adhering to all applicable laws and regulations when using this program. In general you should not record other parties without their consent. True @@ -75,7 +73,6 @@ - _Do not show this again True True False @@ -97,7 +94,6 @@ end - I _understand. True True True @@ -172,7 +168,6 @@ 0 10 10 - <i>Select the audio sources to mix, and a destination file for saving the resulting audio.</i> True True @@ -194,7 +189,6 @@ True 0 10 - Your voice: right @@ -203,7 +197,6 @@ True 0 10 - Subject's voice: right diff --git a/pulsecaster/ui.py b/pulsecaster/ui.py index de6bea0..8ae4a6c 100644 --- a/pulsecaster/ui.py +++ b/pulsecaster/ui.py @@ -82,6 +82,23 @@ class PulseCasterUI: self.warning.connect('destroy', self.on_close) self.warning.set_title(NAME) + # Miscellaneous dialog strings + s = _('Important notice') + self.builder.get_object('warning-label2').set_label('' + + s + '') + s = _('This program can be used to record speech from remote locations. You are responsible for adhering to all applicable laws and regulations when using this program. In general you should not record other parties without their consent.') + self.builder.get_object('warning-label3').set_label(s) + s = _('Do not show this again') + self.builder.get_object('skip_warn_checkbox').set_label(s) + s = _('Select the audio sources to mix') + self.builder.get_object('label2').set_label(s) + s = _('I understand.') + self.builder.get_object('dismiss_warning').set_label(s) + s = _('Your voice') + self.builder.get_object('label3').set_label(s + ':') + s = _('Subject\'s voice') + self.builder.get_object('label4').set_label(s + ':') + # Main dialog basics self.main = self.builder.get_object('main_dialog') self.main.set_title(NAME) diff --git a/setup.py b/setup.py index 5df5d2b..184292f 100644 --- a/setup.py +++ b/setup.py @@ -46,7 +46,6 @@ setup( message_extractors = { 'pulsecaster': [('**.py', 'python', None), - ('**.glade', 'glade', None) ], }, packages = find_packages(), -- cgit