diff options
Diffstat (limited to 'gtk-recordmydesktop/src')
-rw-r--r-- | gtk-recordmydesktop/src/Makefile.am | 1 | ||||
-rw-r--r-- | gtk-recordmydesktop/src/rmdConfig.py.in | 2 | ||||
-rw-r--r-- | gtk-recordmydesktop/src/rmdMonitor.py | 7 | ||||
-rw-r--r-- | gtk-recordmydesktop/src/rmdPrefsWidget.py | 72 | ||||
-rw-r--r-- | gtk-recordmydesktop/src/rmdSimple.py | 43 | ||||
-rw-r--r-- | gtk-recordmydesktop/src/rmdStrings.py | 107 | ||||
-rw-r--r-- | gtk-recordmydesktop/src/rmdTrayIcon.py | 37 | ||||
-rw-r--r-- | gtk-recordmydesktop/src/rmdTrayPopup.py | 13 |
8 files changed, 164 insertions, 118 deletions
diff --git a/gtk-recordmydesktop/src/Makefile.am b/gtk-recordmydesktop/src/Makefile.am index 1ddf07a..d0d2057 100644 --- a/gtk-recordmydesktop/src/Makefile.am +++ b/gtk-recordmydesktop/src/Makefile.am @@ -14,6 +14,7 @@ gtk_recordMyDesktop_PYTHON = \ rmdConfig.py\ rmdMonitor.py\ rmdFrame.py\ + rmdStrings.py\ __init__.py desktopdir = $(datadir)/applications diff --git a/gtk-recordmydesktop/src/rmdConfig.py.in b/gtk-recordmydesktop/src/rmdConfig.py.in index f3194c5..98f2a37 100644 --- a/gtk-recordmydesktop/src/rmdConfig.py.in +++ b/gtk-recordmydesktop/src/rmdConfig.py.in @@ -26,7 +26,7 @@ default_values=[15, #framerate 1, #quick subsampling,0 on 1 off "/tmp", #working directory 1, #on the fly encoding,0 on 1 off - 1, #zero compression,0 on 1 off + 0, #zero compression,0 on 1 off False, #overwrite existing files 0, #include window decorations, 0 on 1 off False, #Use jack diff --git a/gtk-recordmydesktop/src/rmdMonitor.py b/gtk-recordmydesktop/src/rmdMonitor.py index 37f49e9..f6c20dd 100644 --- a/gtk-recordmydesktop/src/rmdMonitor.py +++ b/gtk-recordmydesktop/src/rmdMonitor.py @@ -9,9 +9,10 @@ gettext.textdomain('gtk-recordMyDesktop') gettext.bindtextdomain('gtk-recordMyDesktop',rmdConfig.locale_install_dir) import popen2 import os,fcntl,signal +from rmdStrings import * class rmdMonitor(object): - labeString=_("Please wait while your recording is being encoded\nWARNING!!!\nIf you press Cancel or close this window,\nthis proccess cannot be resumed!") + labeString=monStrings['PleaseWait'] counter_fraction=0.0 def destroy_and_kill(self,Event=None): @@ -35,7 +36,7 @@ class rmdMonitor(object): if percentage>1.0: percentage=1.0 self.progressbar.set_fraction(percentage) - self.progressbar.set_text("%.2f%% "%(self.counter_fraction)+_("complete")) + self.progressbar.set_text("%.2f%% "%(self.counter_fraction)+monStrings['complete']) except: self.counter_fraction=0.0 @@ -56,7 +57,7 @@ class rmdMonitor(object): self.label.show() self.progressbar=gtk.ProgressBar(adjustment=None) self.progressbar.set_fraction(self.counter_fraction) - self.progressbar.set_text("0% "+_("complete")) + self.progressbar.set_text("0% "+monStrings['complete']) self.progressbar.show() self.stopbutton=gtk.Button(None,gtk.STOCK_CANCEL) self.stopbutton.connect("clicked",self.stop_encoding) diff --git a/gtk-recordmydesktop/src/rmdPrefsWidget.py b/gtk-recordmydesktop/src/rmdPrefsWidget.py index a5e6b0c..de0e414 100644 --- a/gtk-recordmydesktop/src/rmdPrefsWidget.py +++ b/gtk-recordmydesktop/src/rmdPrefsWidget.py @@ -34,44 +34,17 @@ _ = gettext.gettext gettext.textdomain('gtk-recordMyDesktop') gettext.bindtextdomain('gtk-recordMyDesktop',rmdConfig.locale_install_dir) import os +from rmdStrings import * class prefsWidget(object): - labelStrings=[_('Overwite Existing Files'),_('Working Directory'), - _('Frames Per Second'),_('Encode On the Fly'),_('Zero Compression'), - _('Quick Subsampling'),_('Full shots at every frame'), - _('Channels'),_('Frequency'),_('Device'),_('Display'),_('Mouse Cursor'), - _('MIT-Shm extension'),_('Include Window Decorations'),_('Tooltips'), - _('Outline Capture Area On Screen'), - _('Video Quality'),_('Sound Quality'), - _('Drop Frames(encoder)'),_('Startup Delay(secs)'),] - mouseStrings=[_('Normal'),_('White'),_('Black'),_('None')] - stateStrings=[_('Enabled'),_('Disabled')]#0,1 - tabStrings=[_('Files'),_('Performance'),_('Sound'),_('Misc')] - tooltipLabels=[_('By default, if you try to save under a filename that already\nexists, the new file will be renamed\n(for example if you try to save as out.ogg and that file exists, your file will be named out.ogg.1).\nBy checking this box, this behavior is disabled and the old file is overwritten.\n'), - _('Directory where temporary files will be saved.'), - _('Frames Per Second'), - _('Encode simultaneously with the recording.\nThis will require a lot more processing power.\n'), - _('Do not apply compression on the temporary files.\nIf enabled, the program will need less processing power,\nin the expense of hard disk space.\nThis option is valid only when encoding on the fly is disabled.'), - _('This option, if enabled, will cause the program to require less\nprocessing power, but it might make the colors look a bit more blurry.'), - _('This option should be enabled when recording 3d windows.\nIt is also auto-enabled when recording a\nknown 3d compositing window manager.\n '), - _('Number of audio channels.'), - _('Sound frequency.'), - _('ALSA sound device, that is used for sound recording.'), - _('Connection to the Xserver.'), - _('The mouse cursor that will be drawn.\nNormal is for the real cursor that you see while recording,\nwhile black and white are fake cursors, drawn by the program.\nYou can also disable cursor drawing.'), - _('Use the MIT-Shared memory extension, whenever appropriate,\n depending on the rest of the program settings.\nDisabling this option is not recommended,\nas it may severely slow down the program.'), - _('When selecting a window via the "Select Window" button,\ninclude that window\'s decorations in the recording area.'), - _('Enable or disable tooltips, like this one.\n(Requires restart)'), - _('Draw a frame on the screen, around the area\nthat will get captured.\n(This frame will remain throughout the recording.)')] - jacktip=_("Enable this option to record audio through\nJACK. The Jack server must be running in order to\nobtain the ports that will be recorded.\nThe audio recorded from each one\nwill be written on a channel of its own.\nrecordMyDesktop must be compiled with JACK\nsupport for this option to work.") def __tooltips__(self): self.tooltips=gtk.Tooltips() for i in range(16): - self.tooltips.set_tip(self.eboxes[i],self.tooltipLabels[i]) - self.tooltips.set_tip(self.jack_ebox,self.jacktip) + self.tooltips.set_tip(self.eboxes[i],prefTooltipLabels[i]) + self.tooltips.set_tip(self.jack_ebox,prefJacktip) def destroy(self,Event=None): self.values[0]=self.fpsSpinButton.get_value_as_int() @@ -122,7 +95,7 @@ class prefsWidget(object): #Files page for i in range(2): - self.labels[i]=gtk.Label(self.labelStrings[i]) + self.labels[i]=gtk.Label(prefLabelStrings[i]) self.labels[i].set_justify(gtk.JUSTIFY_LEFT) self.boxes[i]=gtk.HBox(homogeneous=False, spacing=40) self.boxes[i].pack_start(self.labels[i],expand=False,fill=False) @@ -143,7 +116,7 @@ class prefsWidget(object): #Performance page for i in xrange(2,7): - self.labels[i]=gtk.Label(self.labelStrings[i]) + self.labels[i]=gtk.Label(prefLabelStrings[i]) self.labels[i].set_justify(gtk.JUSTIFY_LEFT) self.boxes[i]=gtk.HBox(homogeneous=False, spacing=40) self.boxes[i].pack_start(self.labels[i],expand=False,fill=False) @@ -159,28 +132,28 @@ class prefsWidget(object): self.onTheFlyComboBox = gtk.combo_box_new_text() for i in range(2): - self.onTheFlyComboBox.append_text(self.stateStrings[i]) + self.onTheFlyComboBox.append_text(prefStateStrings[i]) self.onTheFlyComboBox.set_active(self.values[18]) self.onTheFlyComboBox.show() self.boxes[3].pack_end(self.onTheFlyComboBox,expand=False,fill=False) self.zeroCmpComboBox = gtk.combo_box_new_text() for i in range(2): - self.zeroCmpComboBox.append_text(self.stateStrings[i]) + self.zeroCmpComboBox.append_text(prefStateStrings[i]) self.zeroCmpComboBox.set_active(self.values[19]) self.zeroCmpComboBox.show() self.boxes[4].pack_end(self.zeroCmpComboBox,expand=False,fill=False) self.quickComboBox = gtk.combo_box_new_text() for i in range(2): - self.quickComboBox.append_text(self.stateStrings[i]) + self.quickComboBox.append_text(prefStateStrings[i]) self.quickComboBox.set_active(self.values[16]) self.quickComboBox.show() self.boxes[5].pack_end(self.quickComboBox,expand=False,fill=False) self.fullComboBox = gtk.combo_box_new_text() for i in range(2): - self.fullComboBox.append_text(self.stateStrings[i]) + self.fullComboBox.append_text(prefStateStrings[i]) self.fullComboBox.set_active(self.values[3]) self.fullComboBox.show() self.boxes[6].pack_end(self.fullComboBox,expand=False,fill=False) @@ -188,7 +161,7 @@ class prefsWidget(object): #sound page for i in xrange(7,10): - self.labels[i]=gtk.Label(self.labelStrings[i]) + self.labels[i]=gtk.Label(prefLabelStrings[i]) self.labels[i].set_justify(gtk.JUSTIFY_LEFT) self.boxes[i]=gtk.HBox(homogeneous=False, spacing=0) self.boxes[i].pack_start(self.labels[i],expand=False,fill=False) @@ -197,14 +170,13 @@ class prefsWidget(object): self.eboxes[i].add(self.boxes[i]) self.labelbox[2].pack_start(self.eboxes[i],expand=False,fill=False) - self.jack_button= gtk.CheckButton(_("Use Jack for audio capture.")) - self.jack_lsp_label=gtk.Label(_("Select the ports you want to record from\n" - "(hold Ctrl to select multiple entries):")) + self.jack_button= gtk.CheckButton(prefStrings['UseJack']) + self.jack_lsp_label=gtk.Label(prefStrings['SelectPorts']) self.jack_lsp_liststore=gtk.ListStore(str) self.jack_lsp_listview=gtk.TreeView(self.jack_lsp_liststore) - self.jack_lsp_tvc = gtk.TreeViewColumn(_("Available Ports")) + self.jack_lsp_tvc = gtk.TreeViewColumn(prefStrings['AvailablePorts']) self.jack_lsp_listview.append_column(self.jack_lsp_tvc) self.cell = gtk.CellRendererText() self.jack_lsp_tvc.pack_start(self.cell, True) @@ -263,7 +235,7 @@ class prefsWidget(object): #misc page for i in xrange(10,16): - self.labels[i]=gtk.Label(self.labelStrings[i]) + self.labels[i]=gtk.Label(prefLabelStrings[i]) self.labels[i].set_justify(gtk.JUSTIFY_LEFT) self.boxes[i]=gtk.HBox(homogeneous=False, spacing=0) self.boxes[i].pack_start(self.labels[i],expand=False,fill=False) @@ -280,7 +252,7 @@ class prefsWidget(object): self.mouseComboBox = gtk.combo_box_new_text() for i in range(4): - self.mouseComboBox.append_text(self.mouseStrings[i]) + self.mouseComboBox.append_text(prefMouseStrings[i]) self.mouseComboBox.set_active(self.values[1]) self.mouseComboBox.show() self.boxes[11].pack_end(self.mouseComboBox,expand=False,fill=False) @@ -288,21 +260,21 @@ class prefsWidget(object): self.sharedComboBox = gtk.combo_box_new_text() for i in range(2): - self.sharedComboBox.append_text(self.stateStrings[i]) + self.sharedComboBox.append_text(prefStateStrings[i]) self.sharedComboBox.set_active(self.values[13]) self.sharedComboBox.show() self.boxes[12].pack_end(self.sharedComboBox,expand=False,fill=False) self.winDecoComboBox = gtk.combo_box_new_text() for i in range(2): - self.winDecoComboBox.append_text(self.stateStrings[i]) + self.winDecoComboBox.append_text(prefStateStrings[i]) self.winDecoComboBox.set_active(self.values[21]) self.winDecoComboBox.show() self.boxes[13].pack_end(self.winDecoComboBox,expand=False,fill=False) self.tooltipsComboBox = gtk.combo_box_new_text() for i in range(2): - self.tooltipsComboBox.append_text(self.stateStrings[i]) + self.tooltipsComboBox.append_text(prefStateStrings[i]) self.tooltipsComboBox.set_active(self.values[24]) self.tooltipsComboBox.show() self.boxes[14].pack_end(self.tooltipsComboBox,expand=False,fill=False) @@ -310,7 +282,7 @@ class prefsWidget(object): self.rFrameComboBox = gtk.combo_box_new_text() for i in range(2): - self.rFrameComboBox.append_text(self.stateStrings[i]) + self.rFrameComboBox.append_text(prefStateStrings[i]) self.rFrameComboBox.set_active(self.values[25]) self.rFrameComboBox.show() self.boxes[15].pack_end(self.rFrameComboBox,expand=False,fill=False) @@ -321,7 +293,7 @@ class prefsWidget(object): #append and show for i in range(4): - self.notebook.append_page(self.labelbox[i],gtk.Label(self.tabStrings[i])) + self.notebook.append_page(self.labelbox[i],gtk.Label(prefTabStrings[i])) self.window.add(self.notebook) for i in range(4): self.labelbox[i].show() @@ -344,8 +316,8 @@ class prefsWidget(object): self.jack_lsp_listview.get_selection().set_mode(gtk.SELECTION_MULTIPLE) else: failed=1 - self.ports.append(_("jack_lsp returned no ports.")) - self.ports.append(_("Make sure that jackd is running.")) + self.ports.append(prefStrings['JackLspS1']) + self.ports.append(prefStrings['JackLspS2']) self.jack_lsp_listview.get_selection().set_mode(gtk.SELECTION_NONE) self.values[23]=[] k=0 diff --git a/gtk-recordmydesktop/src/rmdSimple.py b/gtk-recordmydesktop/src/rmdSimple.py index de40479..97cd004 100644 --- a/gtk-recordmydesktop/src/rmdSimple.py +++ b/gtk-recordmydesktop/src/rmdSimple.py @@ -42,21 +42,10 @@ import gc import re import rmdPrefsWidget as pW import rmdSelectThumb as sT +from rmdStrings import * class simpleWidget(object): hidden=[0] - labelStrings=[_('Video Quality'),_('Sound Quality')] - buttonStrings=[_('Advanced'),_('Select Window')] - tooltipLabels=[_('Click here to select a window to record'), - _('Click to start the recording.\nThis window will hide itself.'), - _('Click to choose a filename and location.\nDefault is out.ogg in your home folder.\nIf the file already exists, the new one\nwill have a number attached on its name\n(this behavior can be changed )'), - _('Click to exit the program.'), - _('Select the video quality of your recording.\n(Lower quality will require more proccessing power,\nso it\'s recommended, when encoding on the fly,\nto leave at 100)'), - _('Enable/Disable sound recording.'), - _('Select the audio quality of your recording.'), - _('Click here to access more options.')] - tipLabelStrings=[_('\nLeft click and drag, on the preview image,\nto select an area for recording.\nRight click on it, to reset the area.')] - options=None optionsOpen=[0] def __subWidgets__(self): @@ -109,11 +98,11 @@ class simpleWidget(object): self.s_quality=gtk.HScale(self.s_adj) self.s_quality.set_value_pos(gtk.POS_LEFT) self.s_quality.set_digits(0) - self.v_label=gtk.Label(" "+self.labelStrings[0]) - self.s_label=gtk.Label(self.labelStrings[1]) + self.v_label=gtk.Label(" "+smplLabelStrings[0]) + self.s_label=gtk.Label(smplLabelStrings[1]) - self.advanced_button=gtk.Button(self.buttonStrings[0]) - self.tipLabel=gtk.Label(self.tipLabelStrings[0]) + self.advanced_button=gtk.Button(smplButtonStrings[0]) + self.tipLabel=gtk.Label(smplTipLabelStrings[0]) self.NEVQBox.pack_start(self.v_label,expand=False,fill=False) self.NEVQBox.pack_start(self.v_quality,expand=True,fill=True) self.NESQBox.pack_start(self.s_button,expand=False,fill=False) @@ -122,7 +111,7 @@ class simpleWidget(object): self.NETABox.pack_start(self.advanced_button,expand=False,fill=False) self.NETABox.pack_start(self.tipLabel,expand=False,fill=False) - self.win_button=gtk.Button(self.buttonStrings[1]) + self.win_button=gtk.Button(smplButtonStrings[1]) self.start_button=gtk.Button(None,gtk.STOCK_MEDIA_RECORD) self.file_button=gtk.Button(None,gtk.STOCK_SAVE_AS) self.quit_button=gtk.Button(None,gtk.STOCK_QUIT) @@ -157,16 +146,16 @@ class simpleWidget(object): self.window.add(self.labelbox) def __tooltips__(self): self.tooltips=gtk.Tooltips() - self.tooltips.set_tip(self.win_button,self.tooltipLabels[0]) - self.tooltips.set_tip(self.start_button,self.tooltipLabels[1]) - self.tooltips.set_tip(self.file_button,self.tooltipLabels[2]) - self.tooltips.set_tip(self.quit_button,self.tooltipLabels[3]) - self.tooltips.set_tip(self.v_quality,self.tooltipLabels[4]) - self.tooltips.set_tip(self.v_label,self.tooltipLabels[4]) - self.tooltips.set_tip(self.s_button,self.tooltipLabels[5]) - self.tooltips.set_tip(self.s_quality,self.tooltipLabels[6]) - self.tooltips.set_tip(self.s_label,self.tooltipLabels[6]) - self.tooltips.set_tip(self.advanced_button,self.tooltipLabels[7]) + self.tooltips.set_tip(self.win_button,smplTooltipLabels[0]) + self.tooltips.set_tip(self.start_button,smplTooltipLabels[1]) + self.tooltips.set_tip(self.file_button,smplTooltipLabels[2]) + self.tooltips.set_tip(self.quit_button,smplTooltipLabels[3]) + self.tooltips.set_tip(self.v_quality,smplTooltipLabels[4]) + self.tooltips.set_tip(self.v_label,smplTooltipLabels[4]) + self.tooltips.set_tip(self.s_button,smplTooltipLabels[5]) + self.tooltips.set_tip(self.s_quality,smplTooltipLabels[6]) + self.tooltips.set_tip(self.s_label,smplTooltipLabels[6]) + self.tooltips.set_tip(self.advanced_button,smplTooltipLabels[7]) def __exit__(self,Event=None): if self.exited==0: diff --git a/gtk-recordmydesktop/src/rmdStrings.py b/gtk-recordmydesktop/src/rmdStrings.py new file mode 100644 index 0000000..bffede0 --- /dev/null +++ b/gtk-recordmydesktop/src/rmdStrings.py @@ -0,0 +1,107 @@ +import locale, gettext +import rmdConfig +_ = gettext.gettext + + +gettext.textdomain('gtk-recordMyDesktop') +gettext.bindtextdomain('gtk-recordMyDesktop',rmdConfig.locale_install_dir) + + +TpmStr={'ShowHide':_("Show/hide Main Window"), + 'SelectOnScreen':_("_Select Area On Screen"), + 'Quit':_("Quit"), + 'ProgDesc':_('a graphical frontend for recordMyDesktop'), + 'Copyright': _('Copyright (C) John Varouhakis\nPortions Copyright (C) 2005-6 Zaheer Abbas Merali, John N. Laliberte\nPortions Copyright (C) Fluendo S.L.'), + 'TranslatorCredits': _('Translator Credits And Information(Replace with your info)') + } + +rmdErrStr={ + 0:_('Success'), + 1*256:_('Error while parsing the arguments.'), + 2*256:_('Initializing the encoder failed(either vorbis or theora)'), + 3*256:_('Could not open/configure sound card.'), + 4*256:_('Xdamage extension not present.'), + 5*256:_('Shared memory extension not present.'), + 6*256:_('Xfixes extension not present.'), + 7*256:_('XInitThreads failed.'), + 8*256:_('No $DISPLAY environment variable and none specified as argument.'), + 9*256:_('Cannot connect to Xserver.'), + 10*256:_('Color depth is not 24bpp.'), + 11*256:_('Improper window specification.'), + 12*256:_('Cannot attach shared memory to proccess.'), + 13*256:_('Cannot open file for writting.'), + 14*256:_('Cannot load the Jack library (dlopen/dlsym error on libjack.so).'), + 15*256:_('Cannot create new client.'), + 16*256:_('Cannot activate client.'), + 17*256:_('Port registration/connection failure.'), + 11:_('Segmentation Fault') + } +TrayIconStr={ + 'RecFinishedKnown':_("Recording is finished.\nrecordMyDesktop has exited with status"), + 'ErrDesc':_("Description"), + 'RecFinishedUnknown':_("Recording is finished.\nrecordMyDesktop has exited with uknown\nerror code") + } + + +smplLabelStrings=[_('Video Quality'),_('Sound Quality')] +smplButtonStrings=[_('Advanced'),_('Select Window')] +smplTooltipLabels=[_('Click here to select a window to record'), + _('Click to start the recording.\nThis window will hide itself.'), + _('Click to choose a filename and location.\nDefault is out.ogg in your home folder.\nIf the file already exists, the new one\nwill have a number attached on its name\n(this behavior can be changed )'), + _('Click to exit the program.'), + _('Select the video quality of your recording.\n(Lower quality will require more proccessing power,\nso it\'s recommended, when encoding on the fly,\nto leave at 100)'), + _('Enable/Disable sound recording.'), + _('Select the audio quality of your recording.'), + _('Click here to access more options.')] +smplTipLabelStrings=[_('\nLeft click and drag, on the preview image,\nto select an area for recording.\nRight click on it, to reset the area.')] + +smplStrings={ 'Record':_("Record"), + 'SaveAs':_("Save As"), + 'Quit':_("Quit") + } + +monStrings={'Cancel':_("Cancel"), + 'PleaseWait':_("Please wait while your recording is being encoded\nWARNING!!!\nIf you press Cancel or close this window,\nthis proccess cannot be resumed!"), + 'complete':_("complete") + } + +prefLabelStrings=[_('Overwite Existing Files'),_('Working Directory'), + _('Frames Per Second'),_('Encode On the Fly'),_('Zero Compression'), + _('Quick Subsampling'),_('Full shots at every frame'), + _('Channels'),_('Frequency'),_('Device'),_('Display'),_('Mouse Cursor'), + _('MIT-Shm extension'),_('Include Window Decorations'),_('Tooltips'), + _('Outline Capture Area On Screen'), + _('Video Quality'),_('Sound Quality'), + _('Drop Frames(encoder)'),_('Startup Delay(secs)'),] +prefMouseStrings=[_('Normal'),_('White'),_('Black'),_('None')] +prefStateStrings=[_('Enabled'),_('Disabled')]#0,1 +prefTabStrings=[_('Files'),_('Performance'),_('Sound'),_('Misc')] +prefTooltipLabels=[_('By default, if you try to save under a filename that already\nexists, the new file will be renamed\n(for example if you try to save as out.ogg and that file exists, your file will be named out.ogg.1).\nBy checking this box, this behavior is disabled and the old file is overwritten.\n'), + _('Directory where temporary files will be saved.'), + _('Frames Per Second'), + _('Encode simultaneously with the recording.\nThis will require a lot more processing power.\n'), + _('Do not apply compression on the temporary files.\nIf enabled, the program will need less processing power,\nin the expense of hard disk space.\nThis option is valid only when encoding on the fly is disabled.'), + _('This option, if enabled, will cause the program to require less\nprocessing power, but it might make the colors look a bit more blurry.'), + _('This option should be enabled when recording 3d windows.\nIt is also auto-enabled when recording a\nknown 3d compositing window manager.\n '), + _('Number of audio channels.'), + _('Sound frequency.'), + _('ALSA sound device, that is used for sound recording.'), + _('Connection to the Xserver.'), + _('The mouse cursor that will be drawn.\nNormal is for the real cursor that you see while recording,\nwhile black and white are fake cursors, drawn by the program.\nYou can also disable cursor drawing.'), + _('Use the MIT-Shared memory extension, whenever appropriate,\n depending on the rest of the program settings.\nDisabling this option is not recommended,\nas it may severely slow down the program.'), + _('When selecting a window via the "Select Window" button,\ninclude that window\'s decorations in the recording area.'), + _('Enable or disable tooltips, like this one.\n(Requires restart)'), + _('Draw a frame on the screen, around the area\nthat will get captured.\n(This frame will remain throughout the recording.)')] +prefJacktip=_("Enable this option to record audio through\nJACK. The Jack server must be running in order to\nobtain the ports that will be recorded.\nThe audio recorded from each one\nwill be written on a channel of its own.\nrecordMyDesktop must be compiled with JACK\nsupport for this option to work.") + +prefStrings={ 'UseJack':_("Use Jack for audio capture."), + 'SelectPorts':_("Select the ports you want to record from\n" + "(hold Ctrl to select multiple entries):"), + 'AvailablePorts':_("Available Ports"), + 'JackLspS1':_("jack_lsp returned no ports."), + 'JackLspS2':_("Make sure that jackd is running."), + 'AvailablePortsAdd':_("Available ports (double click to add):"), + 'SelectedPortsRemove':_("Selected ports (double click to remove):"), + 'Refresh':_("Refresh") +} + diff --git a/gtk-recordmydesktop/src/rmdTrayIcon.py b/gtk-recordmydesktop/src/rmdTrayIcon.py index 120712e..63ab198 100644 --- a/gtk-recordmydesktop/src/rmdTrayIcon.py +++ b/gtk-recordmydesktop/src/rmdTrayIcon.py @@ -42,7 +42,7 @@ import rmdSelect as isel import rmdTrayPopup as iTP import rmdMonitor as imon import os,signal,popen2,fcntl - +from rmdStrings import * #values struct: #0 fps @@ -65,31 +65,6 @@ import os,signal,popen2,fcntl class trayIcon(object): - #values=[15,0,0,1,os.path.join(os.getenv('HOME'),'out.ogg'),[-1,-1,-1,-1],0, - #1,22050,'hw:0,0',63,10,"$DISPLAY",0,1,75,1] - exit_status={ - 0:_('Success'), - 1*256:_('Error while parsing the arguments.'), - 2*256:_('Initializing the encoder failed(either vorbis or theora)'), - 3*256:_('Could not open/configure sound card.'), - 4*256:_('Xdamage extension not present.'), - 5*256:_('Shared memory extension not present.'), - 6*256:_('Xfixes extension not present.'), - 7*256:_('XInitThreads failed.'), - 8*256:_('No $DISPLAY environment variable and none specified as argument.'), - 9*256:_('Cannot connect to Xserver.'), - 10*256:_('Color depth is not 24bpp.'), - 11*256:_('Improper window specification.'), - 12*256:_('Cannot attach shared memory to proccess.'), - 13*256:_('Cannot open file for writting.'), - 14*256:_('Cannot load the Jack library (dlopen/dlsym error on libjack.so).'), - 15*256:_('Cannot create new client.'), - 16*256:_('Cannot activate client.'), - 17*256:_('Port registration/connection failure.'), - 11:_('Segmentation Fault') - } - - state=0#0 stopped,1 recording,2 paused rmdPid=None optionsOpen=[1] @@ -211,8 +186,8 @@ class trayIcon(object): self.execargs.append('%s'%self.parent.values[17]) if self.parent.values[18] == 0: self.execargs.append('--on-the-fly-encoding') - if self.parent.values[19] == 0: - self.execargs.append('--zero-compression') + if self.parent.values[19] == 1: + self.execargs.append('--compress-cache') if self.parent.values[20] == True: self.execargs.append('--overwrite') if self.parent.values[22] == True: @@ -249,10 +224,10 @@ class trayIcon(object): dialog = gtk.Dialog(title=None, parent=None, flags=0, buttons=None) label1=None try: - label1 = gtk.Label("\t\t"+_("Recording is finished.\nrecordMyDesktop has exited with status")+ - ": %d\n"%(status)+_("Description")+":%s\n"%(self.exit_status[int(status)])) + label1 = gtk.Label("\t\t"+TrayIconStr['RecFinishedKnown']+ + ": %d\n"%(status)+TrayIconStr['ErrDesc']+":%s\n"%(rmdErrStr[int(status)])) except: - label1 = gtk.Label("\t\t"+_("Recording is finished.\nrecordMyDesktop has exited with uknown\nerror code")+": %d \n"%(status)) + label1 = gtk.Label("\t\t"+TrayIconStr['RecFinishedUnknown']+": %d \n"%(status)) dialog.vbox.pack_start(label1, True, True, 0) label1.show() button = gtk.Button(label=None, stock=gtk.STOCK_OK) diff --git a/gtk-recordmydesktop/src/rmdTrayPopup.py b/gtk-recordmydesktop/src/rmdTrayPopup.py index ba4928e..6ac2932 100644 --- a/gtk-recordmydesktop/src/rmdTrayPopup.py +++ b/gtk-recordmydesktop/src/rmdTrayPopup.py @@ -31,6 +31,7 @@ gettext.textdomain('gtk-recordMyDesktop') gettext.bindtextdomain('gtk-recordMyDesktop',rmdConfig.locale_install_dir) import rmdSelect as iSel import rmdPrefsWidget as pW +from rmdStrings import * class TrayPopupMenu: options=None @@ -59,7 +60,7 @@ class TrayPopupMenu: self.optionsOpen[0]=0 def _setup_prefs_widget(self): self.popupmenu_prefs_widget = gtk.ImageMenuItem( - gtk.STOCK_PREFERENCES) + TpmStr['ShowHide']) self.popupmenu_prefs_widget.connect('activate', self._prefs_widget) self.popupmenu.add(self.popupmenu_prefs_widget) @@ -70,20 +71,20 @@ class TrayPopupMenu: def _about(self, button): aboutdialog = gtk.AboutDialog() - aboutdialog.set_name(_('gtk-recordMyDesktop')) + aboutdialog.set_name('gtk-recordMyDesktop') aboutdialog.set_version(rmdConfig.VERSION) - aboutdialog.set_comments(_('a graphical frontend for recordMyDesktop')) - aboutdialog.set_copyright(_('Copyright (C) John Varouhakis\nPortions Copyright (C) 2005-6 Zaheer Abbas Merali, John N. Laliberte\nPortions Copyright (C) Fluendo S.L.')) + aboutdialog.set_comments(TpmStr['ProgDesc']) + aboutdialog.set_copyright(TpmStr['Copyright']) aboutdialog.set_authors(['recordMyDesktop and gtk-recordMyDesktop\nis written by John Varouhakis','Portions of gtk-recordMyDesktop\nare taken from Istanbul\n(http://live.gnome.org/Istanbul)\nwritten by\nZaheer Abbas Merali and John N. Laliberte']) aboutdialog.set_website('http://recordmydesktop.sourceforge.net') aboutdialog.set_license('GPL-2') - aboutdialog.set_translator_credits(_('Translator Credits And Information(Replace with your info)')) + aboutdialog.set_translator_credits(TpmStr['TranslatorCredits']) aboutdialog.connect('response', lambda widget, response: widget.destroy()) aboutdialog.show_all() def _setup_select_area(self): self.popupmenu_selectarea = gtk.ImageMenuItem( - _("_Select Area On Screen")) + TpmStr['SelectOnScreen']) self.popupmenu.add(self.popupmenu_selectarea) self.popupmenu_selectarea.connect("activate", self._select_area_cb) |