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

View File

@ -3,7 +3,6 @@ __copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>'
'''
Manage translation of user visible strings.
'''
import sys, os, cStringIO, tempfile, subprocess, functools, tarfile, re, time, \
glob, urllib2, shutil
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.msgfmt import main as msgfmt
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.msgfmt import main as msgfmt
@ -83,4 +83,9 @@ def main(args=sys.argv):
return 0
if __name__ == '__main__':
cwd = os.getcwd()
sys.path.insert(0, os.path.dirname(os.path.dirname(cwd)))
print sys.path[0]
sys.exit(main())