summaryrefslogtreecommitdiff
path: root/qt-recordmydesktop/src
diff options
context:
space:
mode:
authoriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2007-05-12 04:17:58 +0000
committeriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2007-05-12 04:17:58 +0000
commit23bfc8bcf5a45e47b9fe45ca78439498fb222737 (patch)
tree96c8228b4ab1f20a9563ad64b596c685b915d494 /qt-recordmydesktop/src
parenta16047e8c85e1eace7c11f29d0edcbc74b195ddc (diff)
moved all translatable string to src/rmdStrings.py.
new file: src/rmdStrings.py (added to Makefile.am). New po template,merged all translations with it. git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@337 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'qt-recordmydesktop/src')
-rw-r--r--qt-recordmydesktop/src/Makefile.am1
-rw-r--r--qt-recordmydesktop/src/rmdConfig.py.in2
-rw-r--r--qt-recordmydesktop/src/rmdMonitor.py5
-rw-r--r--qt-recordmydesktop/src/rmdPrefsWidget.py85
-rw-r--r--qt-recordmydesktop/src/rmdSimple.py48
-rw-r--r--qt-recordmydesktop/src/rmdStrings.py107
-rw-r--r--qt-recordmydesktop/src/rmdTrayIcon.py35
-rw-r--r--qt-recordmydesktop/src/rmdTrayPopup.py7
8 files changed, 172 insertions, 118 deletions
diff --git a/qt-recordmydesktop/src/Makefile.am b/qt-recordmydesktop/src/Makefile.am
index 61bf785..a22f187 100644
--- a/qt-recordmydesktop/src/Makefile.am
+++ b/qt-recordmydesktop/src/Makefile.am
@@ -14,6 +14,7 @@ qt_recordMyDesktop_PYTHON = \
rmdConfig.py\
rmdMonitor.py\
rmdFrame.py\
+ rmdStrings.py\
__init__.py
desktopdir = $(datadir)/applications
diff --git a/qt-recordmydesktop/src/rmdConfig.py.in b/qt-recordmydesktop/src/rmdConfig.py.in
index cbd691a..c039a17 100644
--- a/qt-recordmydesktop/src/rmdConfig.py.in
+++ b/qt-recordmydesktop/src/rmdConfig.py.in
@@ -27,7 +27,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/qt-recordmydesktop/src/rmdMonitor.py b/qt-recordmydesktop/src/rmdMonitor.py
index 4df7eab..b35f5a0 100644
--- a/qt-recordmydesktop/src/rmdMonitor.py
+++ b/qt-recordmydesktop/src/rmdMonitor.py
@@ -35,9 +35,10 @@ gettext.textdomain('qt-recordMyDesktop')
gettext.bindtextdomain('qt-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
@@ -91,7 +92,7 @@ class rmdMonitor(object):
self.progressbar=QtGui.QProgressBar()
self.counter_fraction=0
self.progressbar.setValue(self.counter_fraction)
- self.stopbutton=QtGui.QPushButton("Cancel",self.window)
+ self.stopbutton=QtGui.QPushButton(monStrings['Cancel'],self.window)
self.stopbutton.connect(self.stopbutton,QtCore.SIGNAL("clicked()"),
self.stop_encoding)
self.box=QtGui.QVBoxLayout()
diff --git a/qt-recordmydesktop/src/rmdPrefsWidget.py b/qt-recordmydesktop/src/rmdPrefsWidget.py
index 4c9f5b7..75fe797 100644
--- a/qt-recordmydesktop/src/rmdPrefsWidget.py
+++ b/qt-recordmydesktop/src/rmdPrefsWidget.py
@@ -35,47 +35,20 @@ def htmlize(s):
gettext.textdomain('qt-recordMyDesktop')
gettext.bindtextdomain('qt-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):
for i in range(16):
- self.labels[i].setToolTip(htmlize(self.tooltipLabels[i]))
- self.jack_button.setToolTip(htmlize(self.jacktip))
- self.jack_lsp_label.setToolTip(htmlize(self.jacktip))
- self.jack_lss_label.setToolTip(htmlize(self.jacktip))
- self.jack_lsp_liststore.setToolTip(htmlize(self.jacktip))
- self.jack_lsp_listSave.setToolTip(htmlize(self.jacktip))
+ self.labels[i].setToolTip(htmlize(prefTooltipLabels[i]))
+ self.jack_button.setToolTip(htmlize(prefJacktip))
+ self.jack_lsp_label.setToolTip(htmlize(prefJacktip))
+ self.jack_lss_label.setToolTip(htmlize(prefJacktip))
+ self.jack_lsp_liststore.setToolTip(htmlize(prefJacktip))
+ self.jack_lsp_listSave.setToolTip(htmlize(prefJacktip))
def destroy(self,Event=None):
self.values[0]=self.fpsSpinButton.value()
@@ -124,10 +97,11 @@ class prefsWidget(object):
self.tabWidgets[i]=QtGui.QWidget()
#Files page
for i in range(2):
- self.labels[i]=QtGui.QLabel(self.labelStrings[i],self.tabWidgets[0])
+ self.labels[i]=QtGui.QLabel(prefLabelStrings[i],self.tabWidgets[0])
self.labels[i].setAlignment(QtCore.Qt.AlignLeft)
self.boxes[i]=QtGui.QHBoxLayout()
self.boxes[i].insertWidget(-1,self.labels[i])
+ self.boxes[i].insertStretch(-1,0)
self.labelbox[0].insertLayout(-1,self.boxes[i])
self.labelbox[0].insertSpacing(-1,20)
self.labelbox[0].setSizeConstraint(QtGui.QLayout.SetMaximumSize)
@@ -144,10 +118,11 @@ class prefsWidget(object):
#Performance page
for i in xrange(2,7):
- self.labels[i]=QtGui.QLabel(self.labelStrings[i],self.tabWidgets[1])
+ self.labels[i]=QtGui.QLabel(prefLabelStrings[i],self.tabWidgets[1])
self.labels[i].setAlignment(QtCore.Qt.AlignLeft)
self.boxes[i]=QtGui.QHBoxLayout()
self.boxes[i].insertWidget(-1,self.labels[i])
+ self.boxes[i].insertStretch(-1,0)
self.labelbox[1].insertLayout(-1,self.boxes[i])
self.labelbox[1].insertSpacing(-1,20)
self.labelbox[1].setSizeConstraint(QtGui.QLayout.SetMaximumSize)
@@ -159,49 +134,50 @@ class prefsWidget(object):
self.onTheFlyComboBox = QtGui.QComboBox(self.tabWidgets[1])
for i in range(2):
- self.onTheFlyComboBox.addItem(self.stateStrings[i])
+ self.onTheFlyComboBox.addItem(prefStateStrings[i])
self.onTheFlyComboBox.setCurrentIndex(self.values[18])
self.boxes[3].insertWidget(-1,self.onTheFlyComboBox)
self.zeroCmpComboBox = QtGui.QComboBox(self.tabWidgets[1])
for i in range(2):
- self.zeroCmpComboBox.addItem(self.stateStrings[i])
+ self.zeroCmpComboBox.addItem(prefStateStrings[i])
self.zeroCmpComboBox.setCurrentIndex(self.values[19])
self.boxes[4].insertWidget(-1,self.zeroCmpComboBox)
self.quickComboBox = QtGui.QComboBox(self.tabWidgets[1])
for i in range(2):
- self.quickComboBox.addItem(self.stateStrings[i])
+ self.quickComboBox.addItem(prefStateStrings[i])
self.quickComboBox.setCurrentIndex(self.values[16])
self.boxes[5].insertWidget(-1,self.quickComboBox)
self.fullComboBox = QtGui.QComboBox(self.tabWidgets[1])
for i in range(2):
- self.fullComboBox.addItem(self.stateStrings[i])
+ self.fullComboBox.addItem(prefStateStrings[i])
self.fullComboBox.setCurrentIndex(self.values[3])
self.boxes[6].insertWidget(-1,self.fullComboBox)
#sound page
for i in xrange(7,10):
- self.labels[i]=QtGui.QLabel(self.labelStrings[i],self.tabWidgets[2])
+ self.labels[i]=QtGui.QLabel(prefLabelStrings[i],self.tabWidgets[2])
self.labels[i].setAlignment(QtCore.Qt.AlignLeft)
self.boxes[i]=QtGui.QHBoxLayout()
self.boxes[i].insertWidget(-1,self.labels[i])
+ self.boxes[i].insertStretch(-1,0)
self.labelbox[2].insertLayout(-1,self.boxes[i])
self.labelbox[2].insertSpacing(-1,20)
self.labelbox[2].setSizeConstraint(QtGui.QLayout.SetMaximumSize)
self.labelbox[2].insertSpacing(-1,15)
- self.jack_button= QtGui.QCheckBox(_("Use Jack for audio capture."),self.tabWidgets[2])
- self.jack_lsp_label=QtGui.QLabel(_("Available ports (double click to add):"),self.tabWidgets[2])
- self.jack_lss_label=QtGui.QLabel(_("Selected ports (double click to remove):"),self.tabWidgets[2])
+ self.jack_button= QtGui.QCheckBox(prefStrings['UseJack'],self.tabWidgets[2])
+ self.jack_lsp_label=QtGui.QLabel(prefStrings['AvailablePortsAdd'],self.tabWidgets[2])
+ self.jack_lss_label=QtGui.QLabel(prefStrings['SelectedPortsRemove'],self.tabWidgets[2])
self.jack_lsp_liststore=QtGui.QListWidget(self.tabWidgets[2])
self.jack_lsp_liststore.setFixedHeight(100)
self.jack_lsp_listSave=QtGui.QListWidget(self.tabWidgets[2])
self.jack_lsp_listSave.setFixedHeight(100)
- self.jack_lsp_refresh=QtGui.QPushButton(_("Refresh"),self.tabWidgets[2])
+ self.jack_lsp_refresh=QtGui.QPushButton(prefStrings['Refresh'],self.tabWidgets[2])
self.jack_box=QtGui.QVBoxLayout()
self.jack_box.insertWidget(-1,self.jack_button)
self.jack_box.insertWidget(-1,self.jack_lsp_label)
@@ -234,10 +210,11 @@ class prefsWidget(object):
#misc page
for i in xrange(10,16):
- self.labels[i]=QtGui.QLabel(self.labelStrings[i],self.tabWidgets[3])
+ self.labels[i]=QtGui.QLabel(prefLabelStrings[i],self.tabWidgets[3])
self.labels[i].setAlignment(QtCore.Qt.AlignLeft)
self.boxes[i]=QtGui.QHBoxLayout()
self.boxes[i].insertWidget(-1,self.labels[i])
+ self.boxes[i].insertStretch(-1,0)
self.labelbox[3].insertLayout(-1,self.boxes[i])
self.labelbox[3].insertSpacing(-1,20)
self.labelbox[3].setSizeConstraint(QtGui.QLayout.SetMaximumSize)
@@ -247,40 +224,40 @@ class prefsWidget(object):
self.mouseComboBox = QtGui.QComboBox(self.tabWidgets[3])
for i in range(4):
- self.mouseComboBox.addItem(self.mouseStrings[i])
+ self.mouseComboBox.addItem(prefMouseStrings[i])
self.mouseComboBox.setCurrentIndex(self.values[1])
self.boxes[11].insertWidget(-1,self.mouseComboBox)
self.sharedComboBox = QtGui.QComboBox(self.tabWidgets[3])
for i in range(2):
- self.sharedComboBox.addItem(self.stateStrings[i])
+ self.sharedComboBox.addItem(prefStateStrings[i])
self.sharedComboBox.setCurrentIndex(self.values[13])
self.boxes[12].insertWidget(-1,self.sharedComboBox)
self.winDecoComboBox = QtGui.QComboBox(self.tabWidgets[3])
for i in range(2):
- self.winDecoComboBox.addItem(self.stateStrings[i])
+ self.winDecoComboBox.addItem(prefStateStrings[i])
self.winDecoComboBox.setCurrentIndex(self.values[21])
self.boxes[13].insertWidget(-1,self.winDecoComboBox)
self.tooltipsComboBox = QtGui.QComboBox(self.tabWidgets[3])
for i in range(2):
- self.tooltipsComboBox.addItem(self.stateStrings[i])
+ self.tooltipsComboBox.addItem(prefStateStrings[i])
self.tooltipsComboBox.setCurrentIndex(self.values[24])
self.boxes[14].insertWidget(-1,self.tooltipsComboBox)
self.rFrameComboBox = QtGui.QComboBox(self.tabWidgets[3])
for i in range(2):
- self.rFrameComboBox.addItem(self.stateStrings[i])
+ self.rFrameComboBox.addItem(prefStateStrings[i])
self.rFrameComboBox.setCurrentIndex(self.values[25])
self.boxes[15].insertWidget(-1,self.rFrameComboBox)
for i in range(4):
self.tabWidgets[i].setLayout(self.labelbox[i])
- self.notebook.insertTab(-1,self.tabWidgets[i],self.tabStrings[i])
+ self.notebook.insertTab(-1,self.tabWidgets[i],prefTabStrings[i])
self.notebook.show()
return
@@ -305,8 +282,8 @@ class prefsWidget(object):
self.jack_lsp_liststore.setEnabled(True)
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_liststore.setEnabled(False)
self.jack_lsp_listSave.setEnabled(False)
self.values[23]=[]
diff --git a/qt-recordmydesktop/src/rmdSimple.py b/qt-recordmydesktop/src/rmdSimple.py
index cd1a49e..db5f720 100644
--- a/qt-recordmydesktop/src/rmdSimple.py
+++ b/qt-recordmydesktop/src/rmdSimple.py
@@ -39,20 +39,10 @@ import os,sys
from rmdTrayIcon import *
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]
@@ -112,11 +102,11 @@ class simpleWidget(object):
self.s_quality.setOrientation(QtCore.Qt.Horizontal)
self.s_quality.setEnabled(self.values[2])
- self.v_label=QtGui.QLabel(" "+self.labelStrings[0],self.window)
- self.s_label=QtGui.QLabel(self.labelStrings[1],self.window)
+ self.v_label=QtGui.QLabel(" "+smplLabelStrings[0],self.window)
+ self.s_label=QtGui.QLabel(smplLabelStrings[1],self.window)
- self.advanced_button=QtGui.QPushButton(self.buttonStrings[0],self.window)
- self.tipLabel=QtGui.QLabel(self.tipLabelStrings[0],self.window)
+ self.advanced_button=QtGui.QPushButton(smplButtonStrings[0],self.window)
+ self.tipLabel=QtGui.QLabel(smplTipLabelStrings[0],self.window)
self.NEVQBox.insertWidget(-1,self.v_label)
self.NEVQBox.insertWidget(-1,self.v_quality)
@@ -128,10 +118,10 @@ class simpleWidget(object):
style=QtGui.QApplication.style()
icon_rec_pxm=QtGui.QPixmap(os.path.join(rmdConfig.pixmapdir,"qt-recordmydesktop_record.png"))
- self.win_button=QtGui.QPushButton(self.buttonStrings[1],self.window)
- self.start_button=QtGui.QPushButton(QtGui.QIcon(icon_rec_pxm),_("Record"),self.window)
- self.file_button=QtGui.QPushButton(QtGui.QIcon(style.standardPixmap(QtGui.QStyle.SP_DialogSaveButton)),_("Save As"),self.window)
- self.quit_button=QtGui.QPushButton(QtGui.QIcon(style.standardPixmap(QtGui.QStyle.SP_DialogCloseButton)),_("Quit"),self.window)
+ self.win_button=QtGui.QPushButton(smplButtonStrings[1],self.window)
+ self.start_button=QtGui.QPushButton(QtGui.QIcon(icon_rec_pxm),smplStrings['Record'],self.window)
+ self.file_button=QtGui.QPushButton(QtGui.QIcon(style.standardPixmap(QtGui.QStyle.SP_DialogSaveButton)),smplStrings['SaveAs'],self.window)
+ self.quit_button=QtGui.QPushButton(QtGui.QIcon(style.standardPixmap(QtGui.QStyle.SP_DialogCloseButton)),smplStrings['Quit'],self.window)
self.SWBox.insertWidget(-1,self.win_button)
self.SWBox.insertWidget(-1,self.start_button)
self.SEBox.insertWidget(-1,self.file_button)
@@ -153,16 +143,16 @@ class simpleWidget(object):
self.window.setLayout(self.labelbox)
def __tooltips__(self):
- self.win_button.setToolTip(htmlize(self.tooltipLabels[0]))
- self.start_button.setToolTip(htmlize(self.tooltipLabels[1]))
- self.file_button.setToolTip(htmlize(self.tooltipLabels[2]))
- self.quit_button.setToolTip(htmlize(self.tooltipLabels[3]))
- self.v_quality.setToolTip(htmlize(self.tooltipLabels[4]))
- self.v_label.setToolTip(htmlize(self.tooltipLabels[4]))
- self.s_button.setToolTip(htmlize(self.tooltipLabels[5]))
- self.s_quality.setToolTip(htmlize(self.tooltipLabels[6]))
- self.s_label.setToolTip(htmlize(self.tooltipLabels[6]))
- self.advanced_button.setToolTip(htmlize(self.tooltipLabels[7]))
+ self.win_button.setToolTip(htmlize(smplTooltipLabels[0]))
+ self.start_button.setToolTip(htmlize(smplTooltipLabels[1]))
+ self.file_button.setToolTip(htmlize(smplTooltipLabels[2]))
+ self.quit_button.setToolTip(htmlize(smplTooltipLabels[3]))
+ self.v_quality.setToolTip(htmlize(smplTooltipLabels[4]))
+ self.v_label.setToolTip(htmlize(smplTooltipLabels[4]))
+ self.s_button.setToolTip(htmlize(smplTooltipLabels[5]))
+ self.s_quality.setToolTip(htmlize(smplTooltipLabels[6]))
+ self.s_label.setToolTip(htmlize(smplTooltipLabels[6]))
+ self.advanced_button.setToolTip(htmlize(smplTooltipLabels[7]))
def __exit__(self,Event=None):
if self.exited==0:
diff --git a/qt-recordmydesktop/src/rmdStrings.py b/qt-recordmydesktop/src/rmdStrings.py
new file mode 100644
index 0000000..f140b21
--- /dev/null
+++ b/qt-recordmydesktop/src/rmdStrings.py
@@ -0,0 +1,107 @@
+from PyQt4 import QtGui,QtCore
+import rmdConfig
+import locale, gettext
+def _(s):
+ return QtCore.QString.fromUtf8(gettext.gettext(s))
+
+gettext.textdomain('qt-recordMyDesktop')
+gettext.bindtextdomain('qt-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/qt-recordmydesktop/src/rmdTrayIcon.py b/qt-recordmydesktop/src/rmdTrayIcon.py
index 1dda9bd..161f770 100644
--- a/qt-recordmydesktop/src/rmdTrayIcon.py
+++ b/qt-recordmydesktop/src/rmdTrayIcon.py
@@ -36,7 +36,7 @@ gettext.bindtextdomain('qt-recordMyDesktop',rmdConfig.locale_install_dir)
import rmdTrayPopup as iTP
import rmdMonitor as imon
import os,signal,popen2,fcntl
-
+from rmdStrings import *
#values struct:
#0 fps
@@ -61,29 +61,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]
@@ -198,8 +175,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:
@@ -238,10 +215,10 @@ class trayIcon(object):
self.dialog = QtGui.QWidget()
self.label1=None
try:
- self.label1 = QtGui.QLabel("\t\t"+_("Recording is finished.\nrecordMyDesktop has exited with status")+
- ": %d\n"%(status)+_("Description")+":%s\n"%(self.exit_status[int(status)]))
+ self.label1 = QtGui.QLabel("\t\t"+TrayIconStr['RecFinishedKnown']+
+ ": %d\n"%(status)+TrayIconStr['ErrDesc']+":%s\n"%(rmdErrStr[int(status)]))
except:
- self.label1 = QtGui.QLabel("\t\t"+_("Recording is finished.\nrecordMyDesktop has exited with uknown\nerror code")+": %d \n"%(status))
+ self.label1 = QtGui.QLabel("\t\t"+TrayIconStr['RecFinishedUnknown']+": %d \n"%(status))
self.label1.setAlignment(QtCore.Qt.AlignHCenter)
self.dialogbutton = QtGui.QPushButton("Ok",self.dialog)
self.dialogbutton.connect(self.dialogbutton,QtCore.SIGNAL("clicked()"),self.dialog.close )
diff --git a/qt-recordmydesktop/src/rmdTrayPopup.py b/qt-recordmydesktop/src/rmdTrayPopup.py
index 0c3b5c4..22dff89 100644
--- a/qt-recordmydesktop/src/rmdTrayPopup.py
+++ b/qt-recordmydesktop/src/rmdTrayPopup.py
@@ -33,6 +33,7 @@ gettext.textdomain('qt-recordMyDesktop')
gettext.bindtextdomain('qt-recordMyDesktop',rmdConfig.locale_install_dir)
import rmdSelect as iSel
+from rmdStrings import *
import sys
#import rmdPrefsWidget as pW
@@ -46,9 +47,9 @@ class TrayPopupMenu:
self.selector = None
def _setup_popup_menu(self):
self.popupmenu = QtGui.QMenu()
- self.popupmenu.addAction(_("Preferences"),self._prefs_widget)
- self.popupmenu.addAction(_("_Select Area On Screen").replace("_",""),self._select_area_cb)
- self.popupmenu.addAction(_("Quit"),self.parent.window.close)
+ self.popupmenu.addAction(TpmStr['ShowHide'],self._prefs_widget)
+ self.popupmenu.addAction(TpmStr['SelectOnScreen'].replace("_",""),self._select_area_cb)
+ self.popupmenu.addAction(TpmStr['Quit'],self.parent.window.close)
def _prefs_widget(self):
if self.optionsOpen[0] ==0:
© All Rights Reserved