This commit is contained in:
Kovid Goyal 2008-06-08 19:09:20 -07:00
parent 38417a67a3
commit 4c4473a77d
2 changed files with 28 additions and 11 deletions

View File

@ -27,9 +27,9 @@
<property name="geometry" > <property name="geometry" >
<rect> <rect>
<x>0</x> <x>0</x>
<y>74</y> <y>86</y>
<width>865</width> <width>865</width>
<height>723</height> <height>712</height>
</rect> </rect>
</property> </property>
<layout class="QGridLayout" > <layout class="QGridLayout" >
@ -332,8 +332,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>857</width> <width>847</width>
<height>571</height> <height>553</height>
</rect> </rect>
</property> </property>
<layout class="QGridLayout" > <layout class="QGridLayout" >
@ -380,7 +380,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>865</width> <width>865</width>
<height>74</height> <height>86</height>
</rect> </rect>
</property> </property>
<property name="minimumSize" > <property name="minimumSize" >
@ -425,9 +425,9 @@
<property name="geometry" > <property name="geometry" >
<rect> <rect>
<x>0</x> <x>0</x>
<y>797</y> <y>798</y>
<width>865</width> <width>865</width>
<height>25</height> <height>24</height>
</rect> </rect>
</property> </property>
<property name="mouseTracking" > <property name="mouseTracking" >
@ -499,6 +499,9 @@
<property name="text" > <property name="text" >
<string>Save to disk</string> <string>Save to disk</string>
</property> </property>
<property name="shortcut" >
<string>S</string>
</property>
</action> </action>
<action name="action_news" > <action name="action_news" >
<property name="icon" > <property name="icon" >
@ -508,6 +511,9 @@
<property name="text" > <property name="text" >
<string>Fetch news</string> <string>Fetch news</string>
</property> </property>
<property name="shortcut" >
<string>F</string>
</property>
</action> </action>
<action name="action_convert" > <action name="action_convert" >
<property name="icon" > <property name="icon" >
@ -517,6 +523,9 @@
<property name="text" > <property name="text" >
<string>Convert E-books</string> <string>Convert E-books</string>
</property> </property>
<property name="shortcut" >
<string>C</string>
</property>
</action> </action>
<action name="action_view" > <action name="action_view" >
<property name="icon" > <property name="icon" >
@ -526,6 +535,9 @@
<property name="text" > <property name="text" >
<string>View</string> <string>View</string>
</property> </property>
<property name="shortcut" >
<string>V</string>
</property>
</action> </action>
</widget> </widget>
<customwidgets> <customwidgets>

View File

@ -3,7 +3,6 @@ __copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>'
''' '''
Manage translation of user visible strings. Manage translation of user visible strings.
''' '''
import sys, os, cStringIO, tempfile, subprocess, functools, tarfile, re, time, \ import sys, os, cStringIO, tempfile, subprocess, functools, tarfile, re, time, \
glob, urllib2, shutil glob, urllib2, shutil
check_call = functools.partial(subprocess.check_call, shell=True) check_call = functools.partial(subprocess.check_call, shell=True)
@ -12,7 +11,8 @@ try:
from calibre.translations.pygettext import main as pygettext from calibre.translations.pygettext import main as pygettext
from calibre.translations.msgfmt import main as msgfmt from calibre.translations.msgfmt import main as msgfmt
except ImportError: except ImportError:
sys.path.insert(1, os.path.abspath('..')) cwd = os.getcwd()
sys.path.insert(0, os.path.dirname(os.path.dirname(cwd)))
from calibre.translations.pygettext import main as pygettext from calibre.translations.pygettext import main as pygettext
from calibre.translations.msgfmt import main as msgfmt from calibre.translations.msgfmt import main as msgfmt
@ -83,4 +83,9 @@ def main(args=sys.argv):
return 0 return 0
if __name__ == '__main__': if __name__ == '__main__':
cwd = os.getcwd()
sys.path.insert(0, os.path.dirname(os.path.dirname(cwd)))
print sys.path[0]
sys.exit(main()) sys.exit(main())