summaryrefslogtreecommitdiff
path: root/gtk-recordmydesktop/src/rmdTrayIcon.py
diff options
context:
space:
mode:
authoriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2006-11-15 11:18:06 +0000
committeriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2006-11-15 11:18:06 +0000
commit3d8b0e59dfcf6277d2504db1949966be57d8f1cb (patch)
tree9ccb24c6e0efcae9dba5d18b677497c6835f298b /gtk-recordmydesktop/src/rmdTrayIcon.py
parentf25b0538b2cf4c5b7220b97f254fdfd8bdb17ab6 (diff)
prepared strings for gettextsizing
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@170 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'gtk-recordmydesktop/src/rmdTrayIcon.py')
-rw-r--r--gtk-recordmydesktop/src/rmdTrayIcon.py35
1 files changed, 20 insertions, 15 deletions
diff --git a/gtk-recordmydesktop/src/rmdTrayIcon.py b/gtk-recordmydesktop/src/rmdTrayIcon.py
index 3069ae3..7744f75 100644
--- a/gtk-recordmydesktop/src/rmdTrayIcon.py
+++ b/gtk-recordmydesktop/src/rmdTrayIcon.py
@@ -28,6 +28,11 @@
import pygtk
pygtk.require('2.0')
import gtk,gobject
+import locale, gettext
+import rmdConfig
+_ = gettext.gettext
+gettext.textdomain('gtk-recordMyDesktop')
+gettext.bindtextdomain('gtk-recordMyDesktop',rmdConfig.locale_install_dir)
USE_EGG=1
if gtk.pygtk_version[0]==2 and gtk.pygtk_version[1]>=10:
USE_EGG=0
@@ -63,21 +68,21 @@ 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.',
- 11:'Segmentation Fault'
+ 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.'),
+ 11:('Segmentation Fault')
}
© All Rights Reserved